diff --git a/rest/private/fills/fills.go b/rest/private/fills/fills.go index 711fc0a..d2a26f8 100644 --- a/rest/private/fills/fills.go +++ b/rest/private/fills/fills.go @@ -35,9 +35,9 @@ type Fill struct { Time time.Time `json:"time"` - ID int `json:"id"` - OrderID int `json:"orderId"` - TradeID int `json:"tradeId"` + ID int64 `json:"id"` + OrderID int64 `json:"orderId"` + TradeID int64 `json:"tradeId"` } func (req *Request) Path() string { diff --git a/rest/private/funding/funding.go b/rest/private/funding/funding.go index 9e0fef3..65a2d7c 100644 --- a/rest/private/funding/funding.go +++ b/rest/private/funding/funding.go @@ -22,7 +22,7 @@ type Funding struct { Rate float64 `json:"rate"` Time time.Time `json:"time"` - ID int `json:"id"` + ID int64 `json:"id"` } func (req *Request) Path() string { diff --git a/rest/private/leveraged/created.go b/rest/private/leveraged/created.go index 5e0e3d3..2729418 100644 --- a/rest/private/leveraged/created.go +++ b/rest/private/leveraged/created.go @@ -22,8 +22,8 @@ type ResponseForCreatedLvToken struct { Cost float64 `json:"cost"` RequestedAt time.Time `json:"requestedAt"` - Pending bool `json:"pending"` - ID int `json:"id"` + Pending bool `json:"pending"` + ID int64 `json:"id"` } func (req *RequestForCreatedLvToken) Path() string { diff --git a/rest/private/leveraged/list-created-tokens.go b/rest/private/leveraged/list-created-tokens.go index 4a351a8..bcb918b 100644 --- a/rest/private/leveraged/list-created-tokens.go +++ b/rest/private/leveraged/list-created-tokens.go @@ -11,7 +11,7 @@ type RequestForCreatedLvTokens struct { type ResponseForCreatedLvTokens []Creation type Creation struct { - ID int `json:"id"` + ID int64 `json:"id"` Token string `json:"token"` Price float64 `json:"price"` diff --git a/rest/private/leveraged/list-redemption-tokens.go b/rest/private/leveraged/list-redemption-tokens.go index 1b231ec..78e01be 100644 --- a/rest/private/leveraged/list-redemption-tokens.go +++ b/rest/private/leveraged/list-redemption-tokens.go @@ -11,7 +11,7 @@ type RequestForRedemptionLvTokens struct { type ResponseForRedemptionLvTokens []Redemption type Redemption struct { - ID int `json:"id"` + ID int64 `json:"id"` Token string `json:"token"` Size float64 `json:"size"` Price float64 `json:"price"` diff --git a/rest/private/leveraged/redemption.go b/rest/private/leveraged/redemption.go index 6ae86a1..3be2389 100644 --- a/rest/private/leveraged/redemption.go +++ b/rest/private/leveraged/redemption.go @@ -19,7 +19,7 @@ type ResponseForRedemptionLvToken struct { Pending bool `json:"pending"` RequestedAt time.Time `json:"requestedAt"` - ID int `json:"id"` + ID int64 `json:"id"` } func (req *RequestForRedemptionLvToken) Path() string { diff --git a/rest/private/options/cancel-request.go b/rest/private/options/cancel-request.go index b0fa6e2..7aa5c8e 100644 --- a/rest/private/options/cancel-request.go +++ b/rest/private/options/cancel-request.go @@ -11,7 +11,7 @@ type RequestForCancelOpQuoteRequest struct { } type ResponseForCancelOpQuoteRequest struct { - ID int `json:"id"` + ID int64 `json:"id"` Option struct { Expiry time.Time `json:"expiry"` Strike float64 `json:"strike"` diff --git a/rest/private/options/common.go b/rest/private/options/common.go index 28f4470..648faf5 100644 --- a/rest/private/options/common.go +++ b/rest/private/options/common.go @@ -3,8 +3,8 @@ package options import "time" type Quote struct { - ID int `json:"id"` - RequestID int `json:"requestId"` + ID int64 `json:"id"` + RequestID int64 `json:"requestId"` Status string `json:"status"` QuoterSide string `json:"quoterSide"` RequestSide string `json:"requestSide"` diff --git a/rest/private/options/create-request.go b/rest/private/options/create-request.go index 604412c..dfd52d4 100644 --- a/rest/private/options/create-request.go +++ b/rest/private/options/create-request.go @@ -20,11 +20,11 @@ type RequestForCreateOpQuoteRequest struct { LimitPrice float64 `json:"limitPrice,omitempty"` HideLimitPrice bool `json:"hideLimitPrice,omitempty"` RequestExpiry int64 `json:"requestExpiry,omitempty"` - CounterpartyID int `json:"counterpartyId,omitempty"` + CounterpartyID int64 `json:"counterpartyId,omitempty"` } type ResponseForCreateOpQuoteRequest struct { - ID int `json:"id"` + ID int64 `json:"id"` Option struct { Strike float64 `json:"strike"` Type string `json:"type"` diff --git a/rest/private/options/fills.go b/rest/private/options/fills.go index 7ed38a2..490e9f3 100644 --- a/rest/private/options/fills.go +++ b/rest/private/options/fills.go @@ -16,7 +16,7 @@ type RequestForOpFills struct { type ResponseForOpFills []OpTrade type OpFill struct { - ID int `json:"id"` + ID int64 `json:"id"` Liquidity string `json:"liquidity"` Side string `json:"side"` Price float64 `json:"price"` diff --git a/rest/private/options/my-quote-requests.go b/rest/private/options/my-quote-requests.go index 5577994..70d7cf3 100644 --- a/rest/private/options/my-quote-requests.go +++ b/rest/private/options/my-quote-requests.go @@ -11,7 +11,7 @@ type RequestForMyOpQuoteRequests struct { type ResponseForMyOpQuoteRequests []MyOpQuote type MyOpQuote struct { - ID int `json:"id"` + ID int64 `json:"id"` Option struct { Underlying string `json:"underlying"` Type string `json:"type"` @@ -24,7 +24,7 @@ type MyOpQuote struct { LimitPrice float64 `json:"limitPrice"` HideLimitPrice bool `json:"hideLimitPrice"` Quotes []struct { - ID int `json:"id"` + ID int64 `json:"id"` Collateral float64 `json:"collateral"` Price float64 `json:"price"` Status string `json:"status"` diff --git a/rest/private/options/requests.go b/rest/private/options/requests.go index 2fa9a15..9fcd971 100644 --- a/rest/private/options/requests.go +++ b/rest/private/options/requests.go @@ -11,7 +11,7 @@ type RequestForOpQuoteRequests struct { type ResponseForOpQuoteRequests []OpQuote type OpQuote struct { - ID int `json:"id"` + ID int64 `json:"id"` Option struct { Underlying string `json:"underlying"` Type string `json:"type"` diff --git a/rest/private/options/trades.go b/rest/private/options/trades.go index a51e27e..fef7a69 100644 --- a/rest/private/options/trades.go +++ b/rest/private/options/trades.go @@ -16,7 +16,7 @@ type RequestForOpTrades struct { type ResponseForOpTrades []OpTrade type OpTrade struct { - ID int `json:"id"` + ID int64 `json:"id"` Price float64 `json:"price"` Size float64 `json:"size"` Option Option `json:"option"` diff --git a/rest/private/orders/get-open-order-histories.go b/rest/private/orders/get-open-order-histories.go index db3a91a..bceff2e 100644 --- a/rest/private/orders/get-open-order-histories.go +++ b/rest/private/orders/get-open-order-histories.go @@ -30,10 +30,10 @@ type Histories struct { Size float64 `json:"size"` RemainingSize float64 `json:"remainingSize"` - ID int `json:"id"` - Ioc bool `json:"ioc"` - PostOnly bool `json:"postOnly"` - ReduceOnly bool `json:"reduceOnly"` + ID int64 `json:"id"` + Ioc bool `json:"ioc"` + PostOnly bool `json:"postOnly"` + ReduceOnly bool `json:"reduceOnly"` CreatedAt time.Time `json:"createdAt"` } diff --git a/rest/private/orders/get-open-trigger-orders.go b/rest/private/orders/get-open-trigger-orders.go index 85e6b79..3361603 100644 --- a/rest/private/orders/get-open-trigger-orders.go +++ b/rest/private/orders/get-open-trigger-orders.go @@ -38,7 +38,7 @@ type OpenTriggerOrder struct { ReduceOnly bool `json:"reduceOnly"` RetryUntilFilled bool `json:"retryUntilFilled"` FilledSize float64 `json:"filledSize"` - ID int `json:"id"` + ID int64 `json:"id"` } func (req *RequestForOpenTriggerOrders) Path() string { diff --git a/rest/private/orders/get-order-trigger-histories.go b/rest/private/orders/get-order-trigger-histories.go index 9dab722..688ce62 100644 --- a/rest/private/orders/get-order-trigger-histories.go +++ b/rest/private/orders/get-order-trigger-histories.go @@ -35,8 +35,8 @@ type TriggerHistory struct { TrailStart float64 `json:"trailStart"` TrailValue float64 `json:"trailValue"` - ID int `json:"id"` - OrderID int `json:"orderId"` + ID int64 `json:"id"` + OrderID int64 `json:"orderId"` Size int `json:"size"` FilledSize int `json:"filledSize"` RetryUntilFilled bool `json:"retryUntilFilled"` diff --git a/rest/private/orders/modify-order.go b/rest/private/orders/modify-order.go index b4f7819..9d0e9b1 100644 --- a/rest/private/orders/modify-order.go +++ b/rest/private/orders/modify-order.go @@ -26,7 +26,7 @@ type ResponseForModifyOrder struct { FilledSize float64 `json:"filledSize"` RemainingSize float64 `json:"remainingSize"` - ID int `json:"id"` + ID int64 `json:"id"` ReduceOnly bool `json:"reduceOnly"` Ioc bool `json:"ioc"` PostOnly bool `json:"postOnly"` diff --git a/rest/private/orders/modify-trigger-order.go b/rest/private/orders/modify-trigger-order.go index f334c95..2909017 100644 --- a/rest/private/orders/modify-trigger-order.go +++ b/rest/private/orders/modify-trigger-order.go @@ -32,9 +32,9 @@ type ResponseForModifyTriggerOrder struct { Size float64 `json:"size"` FilledSize float64 `json:"filledSize"` - ID int `json:"id"` - RetryUntilFilled bool `json:"retryUntilFilled"` - ReduceOnly bool `json:"reduceOnly"` + ID int64 `json:"id"` + RetryUntilFilled bool `json:"retryUntilFilled"` + ReduceOnly bool `json:"reduceOnly"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` diff --git a/rest/private/orders/order-status.go b/rest/private/orders/order-status.go index 049f23d..dac7dcd 100644 --- a/rest/private/orders/order-status.go +++ b/rest/private/orders/order-status.go @@ -25,10 +25,10 @@ type ResponseForOrderStatus struct { Size float64 `json:"size"` RemainingSize float64 `json:"remainingSize"` - ID int `json:"id"` - Ioc bool `json:"ioc"` - ReduceOnly bool `json:"reduceOnly"` - PostOnly bool `json:"postOnly"` + ID int64 `json:"id"` + Ioc bool `json:"ioc"` + ReduceOnly bool `json:"reduceOnly"` + PostOnly bool `json:"postOnly"` CreatedAt time.Time `json:"createdAt"` } diff --git a/rest/private/orders/place-order.go b/rest/private/orders/place-order.go index d7db1b9..70c5fa5 100644 --- a/rest/private/orders/place-order.go +++ b/rest/private/orders/place-order.go @@ -34,10 +34,10 @@ type ResponseForPlaceOrder struct { RemainingSize float64 `json:"remainingSize"` FilledSize float64 `json:"filledSize"` - ID int `json:"id"` - Ioc bool `json:"ioc"` - PostOnly bool `json:"postOnly"` - ReduceOnly bool `json:"reduceOnly"` + ID int64 `json:"id"` + Ioc bool `json:"ioc"` + PostOnly bool `json:"postOnly"` + ReduceOnly bool `json:"reduceOnly"` CreatedAt time.Time `json:"createdAt"` } diff --git a/rest/private/orders/place-trigger-order.go b/rest/private/orders/place-trigger-order.go index 9add619..4250e4f 100644 --- a/rest/private/orders/place-trigger-order.go +++ b/rest/private/orders/place-trigger-order.go @@ -31,9 +31,9 @@ type ResponseForPlaceTriggerOrder struct { OrderPrice float64 `json:"orderPrice"` - ID int `json:"id"` - ReduceOnly bool `json:"reduceOnly"` - RetryUntilFilled bool `json:"retryUntilFilled"` + ID int64 `json:"id"` + ReduceOnly bool `json:"reduceOnly"` + RetryUntilFilled bool `json:"retryUntilFilled"` TriggeredAt time.Time `json:"triggeredAt"` CreatedAt time.Time `json:"createdAt"` diff --git a/rest/private/subaccount/transfer.go b/rest/private/subaccount/transfer.go index 328e05a..076ae27 100644 --- a/rest/private/subaccount/transfer.go +++ b/rest/private/subaccount/transfer.go @@ -15,7 +15,7 @@ type RequestForTransferSubAccount struct { } type ResponseForTransferSubAccount struct { - ID int `json:"id"` + ID int64 `json:"id"` Coin string `json:"coin"` Status string `json:"status"` Notes string `json:"notes"` diff --git a/rest/private/wallet/deposit-histories.go b/rest/private/wallet/deposit-histories.go index 209efb1..e03ac7b 100644 --- a/rest/private/wallet/deposit-histories.go +++ b/rest/private/wallet/deposit-histories.go @@ -18,8 +18,8 @@ type History struct { Size float64 `json:"size,string"` Fee float64 `json:"fee"` - Confirmations int `json:"confirmations"` - ID int `json:"id"` + Confirmations int `json:"confirmations"` + ID int64 `json:"id"` ConfirmedTime time.Time `json:"confirmedTime"` SentTime time.Time `json:"sentTime"` diff --git a/rest/private/wallet/withdraw-histories.go b/rest/private/wallet/withdraw-histories.go index d2130f8..73a8b55 100644 --- a/rest/private/wallet/withdraw-histories.go +++ b/rest/private/wallet/withdraw-histories.go @@ -22,7 +22,7 @@ type Withdraw struct { Time time.Time `json:"time"` - ID int `json:"id"` + ID int64 `json:"id"` } func (req *RequestForWithdrawHistories) Path() string { diff --git a/rest/public/markets/trades.go b/rest/public/markets/trades.go index 301367e..200a2da 100644 --- a/rest/public/markets/trades.go +++ b/rest/public/markets/trades.go @@ -21,7 +21,7 @@ type RequestForTrades struct { type ResponseForTrades []Trade type Trade struct { - ID int `json:"id"` + ID int64 `json:"id"` Liquidation bool `json:"liquidation"` Price float64 `json:"price"` Side string `json:"side"`