From 2982918615c4d04492e4da77a06391c44296e783 Mon Sep 17 00:00:00 2001 From: if1live Date: Sat, 24 Jun 2017 18:01:21 +0900 Subject: [PATCH] In PoloniexDepositsWithdrawals, use int64 instead of time.Time + fix typo --- exchanges/poloniex/poloniex_types.go | 36 +++++++++++++--------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/exchanges/poloniex/poloniex_types.go b/exchanges/poloniex/poloniex_types.go index a293124e..76c6e71c 100644 --- a/exchanges/poloniex/poloniex_types.go +++ b/exchanges/poloniex/poloniex_types.go @@ -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"` }