From 84734dbeb7cdbb9d35b6ffe0d852471424c6656f Mon Sep 17 00:00:00 2001 From: Adrian Gallagher Date: Thu, 31 Oct 2019 11:59:42 +1100 Subject: [PATCH] Add in types for order fields (#373) --- exchanges/order/order_types.go | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/exchanges/order/order_types.go b/exchanges/order/order_types.go index 43eeb5c4..02eb6d8e 100644 --- a/exchanges/order/order_types.go +++ b/exchanges/order/order_types.go @@ -106,14 +106,14 @@ const ( // Detail holds order detail data type Detail struct { - Exchange string - AccountID string - ID string - CurrencyPair currency.Pair - OrderSide Side - OrderType Type - OrderDate time.Time - Status + Exchange string + AccountID string + ID string + CurrencyPair currency.Pair + OrderSide Side + OrderType Type + OrderDate time.Time + Status Status Price float64 Amount float64 ExecutedAmount float64 @@ -124,13 +124,13 @@ type Detail struct { // TradeHistory holds exchange history data type TradeHistory struct { - Timestamp time.Time - TID int64 - Price float64 - Amount float64 - Exchange string - Type - Side + Timestamp time.Time + TID int64 + Price float64 + Amount float64 + Exchange string + Type Type + Side Side Fee float64 Description string } @@ -142,7 +142,7 @@ type Cancel struct { CurrencyPair currency.Pair AssetType asset.Item WalletAddress string - Side + Side Side } // GetOrdersRequest used for GetOrderHistory and GetOpenOrders wrapper functions