In PoloniexDepositsWithdrawals, use int64 instead of time.Time + fix
typo
package poloniex
-import (
- "time"
-)
-
type PoloniexTicker struct {
Last float64 `json:"last,string"`
LowestAsk float64 `json:"lowestAsk,string"`
@@ -97,8 +93,8 @@ type PoloniexDepositsWithdrawals struct {
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
- Timestamp time.Time `json:"timestamp"`
- Status string `json:"string"`
+ Timestamp int64 `json:"timestamp"`
+ Status string `json:"status"`
} `json:"deposits"`
Withdrawals []struct {
WithdrawalNumber int64 `json:"withdrawalNumber"`
@@ -107,8 +103,8 @@ type PoloniexDepositsWithdrawals struct {
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
- Timestamp time.Time `json:"timestamp"`
- Status string `json:"string"`
+ Timestamp int64 `json:"timestamp"`
+ Status string `json:"status"`
IPAddress string `json:"ipAddress"`
} `json:"withdrawals"`
}
