Merge pull request #31 from if1live/hotfix/poloniex-deposit-withdrawals

Fix typo and type error in PoloniexDepositsWithdrawals
This commit is contained in:
Adrian Gallagher
2017-06-26 12:57:35 +10:00
committed by GitHub

View File

@@ -1,9 +1,5 @@
package poloniex
import (
"time"
)
type PoloniexTicker struct {
Last float64 `json:"last,string"`
LowestAsk float64 `json:"lowestAsk,string"`
@@ -92,24 +88,24 @@ type PoloniexDepositAddresses struct {
type PoloniexDepositsWithdrawals struct {
Deposits []struct {
Currency string `json:"currency"`
Address string `json:"address"`
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
Timestamp time.Time `json:"timestamp"`
Status string `json:"string"`
Currency string `json:"currency"`
Address string `json:"address"`
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
Timestamp int64 `json:"timestamp"`
Status string `json:"status"`
} `json:"deposits"`
Withdrawals []struct {
WithdrawalNumber int64 `json:"withdrawalNumber"`
Currency string `json:"currency"`
Address string `json:"address"`
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
Timestamp time.Time `json:"timestamp"`
Status string `json:"string"`
IPAddress string `json:"ipAddress"`
WithdrawalNumber int64 `json:"withdrawalNumber"`
Currency string `json:"currency"`
Address string `json:"address"`
Amount float64 `json:"amount,string"`
Confirmations int `json:"confirmations"`
TransactionID string `json:"txid"`
Timestamp int64 `json:"timestamp"`
Status string `json:"status"`
IPAddress string `json:"ipAddress"`
} `json:"withdrawals"`
}