Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace int with int64 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions rest/private/fills/fills.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/private/funding/funding.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rest/private/leveraged/created.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/private/leveraged/list-created-tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/leveraged/list-redemption-tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/leveraged/redemption.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/private/options/cancel-request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions rest/private/options/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions rest/private/options/create-request.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/options/fills.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions rest/private/options/my-quote-requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/options/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/options/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
8 changes: 4 additions & 4 deletions rest/private/orders/get-open-order-histories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
2 changes: 1 addition & 1 deletion rest/private/orders/get-open-trigger-orders.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions rest/private/orders/get-order-trigger-histories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/orders/modify-order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
6 changes: 3 additions & 3 deletions rest/private/orders/modify-trigger-order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
8 changes: 4 additions & 4 deletions rest/private/orders/order-status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
8 changes: 4 additions & 4 deletions rest/private/orders/place-order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down
6 changes: 3 additions & 3 deletions rest/private/orders/place-trigger-order.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/subaccount/transfer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
4 changes: 2 additions & 2 deletions rest/private/wallet/deposit-histories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion rest/private/wallet/withdraw-histories.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/public/markets/trades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down