Skip to content

Commit

Permalink
Timestamp fields changed: 'float32' -> 'int64'
Browse files Browse the repository at this point in the history
  • Loading branch information
aliereno committed Apr 30, 2020
1 parent b1759bd commit 98921a7
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion btcturk/ohcl.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package btcturk
//TODO: ohcl
//type Ohcl struct {
// Pair string `json:"pair"`
// TimeStamp float64 `json:"time"`
// TimeStamp int64 `json:"time"`
// Open float64 `json:"open"`
// High float64 `json:"high"`
// Low float64 `json:"low"`
Expand Down
2 changes: 1 addition & 1 deletion btcturk/order_book.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import "fmt"

// https://docs.btcturk.com/#order-book
type OrderBook struct {
TimeStamp float64 `json:"timestamp"`
TimeStamp int64 `json:"timestamp"`
Bids [][]string `json:"bids"`
Asks [][]string `json:"asks"`
}
Expand Down
2 changes: 1 addition & 1 deletion btcturk/ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package btcturk
type Ticker struct {
Pair string `json:"pair"`
PairNormalized string `json:"pairNormalized"`
Timestamp float32 `json:"timestamp"`
Timestamp int64 `json:"timestamp"`
Last float64 `json:"last"`
High float64 `json:"high"`
Low float64 `json:"low"`
Expand Down
18 changes: 9 additions & 9 deletions btcturk/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import "fmt"

// https://docs.btcturk.com/#trades
type Trade struct {
Pair string `json:"pair"`
PairNormalized string `json:"pairNormalized"`
Numerator string `json:"numerator"`
Denominator string `json:"denominator"`
TimeStamp float64 `json:"date"`
TID string `json:"tid"`
Price string `json:"price"`
Amount string `json:"amount"`
Side string `json:"side"`
Pair string `json:"pair"`
PairNormalized string `json:"pairNormalized"`
Numerator string `json:"numerator"`
Denominator string `json:"denominator"`
TimeStamp int64 `json:"date"`
TID string `json:"tid"`
Price string `json:"price"`
Amount string `json:"amount"`
Side string `json:"side"`
}

// GET ?pairSymbol=BTC_TRY
Expand Down
2 changes: 1 addition & 1 deletion btcturk/user_transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type UserTransactions struct {
DenominatorSymbol string `json:"denominatorSymbol"`
OrderType string `json:"orderType"`
ID string `json:"id"`
Timestamp float64 `json:"timestamp"`
Timestamp int64 `json:"timestamp"`
Amount float64 `json:"amount"`
Fee float64 `json:"fee"`
Tax float64 `json:"tax"`
Expand Down

0 comments on commit 98921a7

Please sign in to comment.