Documentation
¶
Index ¶
- type BuyRequest
- type BuyResponse
- type CancelAllByCurrencyRequest
- type CancelAllByCurrencyResponse
- type CancelAllByInstrumentRequest
- type CancelAllByInstrumentResponse
- type CancelAllRequest
- type CancelAllResponse
- type CancelRequest
- type CancelResponse
- type CancelTransferByIdRequest
- type CancelTransferByIdResponse
- type CancelWithdrawalRequest
- type CancelWithdrawalResponse
- type ChangeSubaccountNameRequest
- type ChangeSubaccountNameResponse
- type ClosePositionRequest
- type ClosePositionResponse
- type CreateDepositAddressRequest
- type CreateDepositAddressResponse
- type CreateSubaccountRequest
- type CreateSubaccountResponse
- type DisableCancelOnDisconnectRequest
- type DisableCancelOnDisconnectResponse
- type DisableTfaForSubaccountRequest
- type DisableTfaForSubaccountResponse
- type EditRequest
- type EditResponse
- type EnableCancelOnDisconnectRequest
- type EnableCancelOnDisconnectResponse
- type GetAccountSummaryRequest
- type GetAccountSummaryResponse
- type GetCurrentDepositAddressRequest
- type GetCurrentDepositAddressResponse
- type GetDepositsRequest
- type GetDepositsResponse
- type GetEmailLanguageRequest
- type GetEmailLanguageResponse
- type GetMarginsRequest
- type GetMarginsResponse
- type GetNewAnnouncementsRequest
- type GetNewAnnouncementsResponse
- type GetOpenOrdersByCurrencyRequest
- type GetOpenOrdersByCurrencyResponse
- type GetOpenOrdersByInstrumentRequest
- type GetOpenOrdersByInstrumentResponse
- type GetOrderHistoryByCurrencyRequest
- type GetOrderHistoryByCurrencyResponse
- type GetOrderHistoryByInstrumentRequest
- type GetOrderHistoryByInstrumentResponse
- type GetOrderMarginByIdsRequest
- type GetOrderMarginByIdsResponse
- type GetOrderStateRequest
- type GetOrderStateResponse
- type GetPositionRequest
- type GetPositionResponse
- type GetPositionsRequest
- type GetPositionsResponse
- type GetSettlementHistoryByCurrencyRequest
- type GetSettlementHistoryByCurrencyResponse
- type GetSettlementHistoryByInstrumentRequest
- type GetSettlementHistoryByInstrumentResponse
- type GetSubaccountsRequest
- type GetSubaccountsResponse
- type GetTransfersRequest
- type GetTransfersResponse
- type GetUserTradesByCurrencyAndTimeRequest
- type GetUserTradesByCurrencyAndTimeResponse
- type GetUserTradesByCurrencyRequest
- type GetUserTradesByCurrencyResponse
- type GetUserTradesByInstrumentAndTimeRequest
- type GetUserTradesByInstrumentAndTimeResponse
- type GetUserTradesByInstrumentRequest
- type GetUserTradesByInstrumentResponse
- type GetUserTradesByOrderRequest
- type GetUserTradesByOrderResponse
- type GetWithdrawalsRequest
- type GetWithdrawalsResponse
- type SellRequest
- type SellResponse
- type SetAnnouncementAsReadRequest
- type SetAnnouncementAsReadResponse
- type SetEmailForSubaccountRequest
- type SetEmailForSubaccountResponse
- type SetEmailLanguageRequest
- type SetEmailLanguageResponse
- type SetPasswordForSubaccountRequest
- type SetPasswordForSubaccountResponse
- type SubmitTransferToSubaccountRequest
- type SubmitTransferToSubaccountResponse
- type SubmitTransferToUserRequest
- type SubmitTransferToUserResponse
- type SubscribeRequest
- type SubscribeResponse
- type ToggleNotificationsFromSubaccountRequest
- type ToggleNotificationsFromSubaccountResponse
- type ToggleSubaccountLoginRequest
- type ToggleSubaccountLoginResponse
- type UnsubscribeRequest
- type UnsubscribeResponse
- type WithdrawRequest
- type WithdrawResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuyRequest ¶
type BuyResponse ¶
type BuyResponse struct {
Order struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice float64 `json:"average_price" mapstructure:"average_price"`
Commission float64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price string `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
} `json:"order" mapstructure:"order"`
Trades []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee float64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Label string `json:"label" mapstructure:"label"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type CancelAllByCurrencyResponse ¶
type CancelAllByCurrencyResponse string
type CancelAllByInstrumentResponse ¶
type CancelAllByInstrumentResponse string
type CancelAllRequest ¶
type CancelAllRequest struct{}
type CancelAllResponse ¶
type CancelAllResponse string
type CancelRequest ¶
type CancelRequest struct {
OrderID string `json:"order_id" mapstructure:"order_id"`
}
type CancelResponse ¶
type CancelResponse struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price string `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
StopPrice float64 `json:"stop_price" mapstructure:"stop_price"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
Trigger string `json:"trigger" mapstructure:"trigger"`
Triggered bool `json:"triggered" mapstructure:"triggered"`
}
type CancelTransferByIdResponse ¶
type CancelTransferByIdResponse struct {
Amount float64 `json:"amount" mapstructure:"amount"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Direction string `json:"direction" mapstructure:"direction"`
ID int64 `json:"id" mapstructure:"id"`
OtherSide string `json:"other_side" mapstructure:"other_side"`
State string `json:"state" mapstructure:"state"`
Type string `json:"type" mapstructure:"type"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}
type CancelWithdrawalRequest ¶
type CancelWithdrawalResponse ¶
type CancelWithdrawalResponse struct {
Address string `json:"address" mapstructure:"address"`
Amount float64 `json:"amount" mapstructure:"amount"`
ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Fee float64 `json:"fee" mapstructure:"fee"`
ID int64 `json:"id" mapstructure:"id"`
Priority float64 `json:"priority" mapstructure:"priority"`
State string `json:"state" mapstructure:"state"`
TransactionID interface{} `json:"transaction_id" mapstructure:"transaction_id"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}
type ChangeSubaccountNameResponse ¶
type ChangeSubaccountNameResponse string
type ClosePositionRequest ¶
type ClosePositionResponse ¶
type ClosePositionResponse struct {
Order struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice float64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
} `json:"order" mapstructure:"order"`
Trades []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee int64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type CreateDepositAddressRequest ¶
type CreateDepositAddressRequest struct {
Currency string `json:"currency" mapstructure:"currency"`
}
type CreateSubaccountRequest ¶
type CreateSubaccountRequest struct{}
type CreateSubaccountResponse ¶
type CreateSubaccountResponse struct {
Email string `json:"email" mapstructure:"email"`
ID int64 `json:"id" mapstructure:"id"`
IsPassword bool `json:"is_password" mapstructure:"is_password"`
LoginEnabled bool `json:"login_enabled" mapstructure:"login_enabled"`
Portfolio struct {
Btc struct {
AvailableFunds int64 `json:"available_funds" mapstructure:"available_funds"`
AvailableWithdrawalFunds int64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
Balance int64 `json:"balance" mapstructure:"balance"`
Currency string `json:"currency" mapstructure:"currency"`
Equity int64 `json:"equity" mapstructure:"equity"`
InitialMargin int64 `json:"initial_margin" mapstructure:"initial_margin"`
MaintenanceMargin int64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarginBalance int64 `json:"margin_balance" mapstructure:"margin_balance"`
} `json:"btc" mapstructure:"btc"`
Eth struct {
AvailableFunds int64 `json:"available_funds" mapstructure:"available_funds"`
AvailableWithdrawalFunds int64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
Balance int64 `json:"balance" mapstructure:"balance"`
Currency string `json:"currency" mapstructure:"currency"`
Equity int64 `json:"equity" mapstructure:"equity"`
InitialMargin int64 `json:"initial_margin" mapstructure:"initial_margin"`
MaintenanceMargin int64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarginBalance int64 `json:"margin_balance" mapstructure:"margin_balance"`
} `json:"eth" mapstructure:"eth"`
} `json:"portfolio" mapstructure:"portfolio"`
ReceiveNotifications bool `json:"receive_notifications" mapstructure:"receive_notifications"`
SystemName string `json:"system_name" mapstructure:"system_name"`
TfaEnabled bool `json:"tfa_enabled" mapstructure:"tfa_enabled"`
Type string `json:"type" mapstructure:"type"`
Username string `json:"username" mapstructure:"username"`
}
type DisableCancelOnDisconnectRequest ¶
type DisableCancelOnDisconnectRequest struct{}
type DisableCancelOnDisconnectResponse ¶
type DisableCancelOnDisconnectResponse string
type DisableTfaForSubaccountRequest ¶
type DisableTfaForSubaccountRequest struct {
Sid int64 `json:"sid" mapstructure:"sid"`
}
type DisableTfaForSubaccountResponse ¶
type DisableTfaForSubaccountResponse string
type EditRequest ¶
type EditResponse ¶
type EditResponse struct {
Order struct {
Advanced string `json:"advanced" mapstructure:"advanced"`
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice int64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
Implv int64 `json:"implv" mapstructure:"implv"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
} `json:"order" mapstructure:"order"`
Trades []interface{} `json:"trades" mapstructure:"trades"`
}
type EnableCancelOnDisconnectRequest ¶
type EnableCancelOnDisconnectRequest struct{}
type EnableCancelOnDisconnectResponse ¶
type EnableCancelOnDisconnectResponse string
type GetAccountSummaryResponse ¶
type GetAccountSummaryResponse struct {
AvailableFunds float64 `json:"available_funds" mapstructure:"available_funds"`
AvailableWithdrawalFunds float64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
Balance float64 `json:"balance" mapstructure:"balance"`
Currency string `json:"currency" mapstructure:"currency"`
DeltaTotal float64 `json:"delta_total" mapstructure:"delta_total"`
DepositAddress string `json:"deposit_address" mapstructure:"deposit_address"`
Email string `json:"email" mapstructure:"email"`
Equity float64 `json:"equity" mapstructure:"equity"`
FuturesPl int64 `json:"futures_pl" mapstructure:"futures_pl"`
FuturesSessionRpl int64 `json:"futures_session_rpl" mapstructure:"futures_session_rpl"`
FuturesSessionUpl int64 `json:"futures_session_upl" mapstructure:"futures_session_upl"`
ID int64 `json:"id" mapstructure:"id"`
InitialMargin float64 `json:"initial_margin" mapstructure:"initial_margin"`
MaintenanceMargin float64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarginBalance float64 `json:"margin_balance" mapstructure:"margin_balance"`
OptionsDelta int64 `json:"options_delta" mapstructure:"options_delta"`
OptionsGamma int64 `json:"options_gamma" mapstructure:"options_gamma"`
OptionsPl int64 `json:"options_pl" mapstructure:"options_pl"`
OptionsSessionRpl int64 `json:"options_session_rpl" mapstructure:"options_session_rpl"`
OptionsSessionUpl int64 `json:"options_session_upl" mapstructure:"options_session_upl"`
OptionsTheta int64 `json:"options_theta" mapstructure:"options_theta"`
OptionsVega int64 `json:"options_vega" mapstructure:"options_vega"`
PortfolioMarginingEnabled bool `json:"portfolio_margining_enabled" mapstructure:"portfolio_margining_enabled"`
SessionFunding int64 `json:"session_funding" mapstructure:"session_funding"`
SessionRpl int64 `json:"session_rpl" mapstructure:"session_rpl"`
SessionUpl int64 `json:"session_upl" mapstructure:"session_upl"`
SystemName string `json:"system_name" mapstructure:"system_name"`
TfaEnabled bool `json:"tfa_enabled" mapstructure:"tfa_enabled"`
TotalPl int64 `json:"total_pl" mapstructure:"total_pl"`
Type string `json:"type" mapstructure:"type"`
Username string `json:"username" mapstructure:"username"`
}
type GetCurrentDepositAddressRequest ¶
type GetCurrentDepositAddressRequest struct {
Currency string `json:"currency" mapstructure:"currency"`
}
type GetDepositsRequest ¶
type GetDepositsResponse ¶
type GetDepositsResponse struct {
Count int64 `json:"count" mapstructure:"count"`
Data []struct {
Address string `json:"address" mapstructure:"address"`
Amount int64 `json:"amount" mapstructure:"amount"`
Currency string `json:"currency" mapstructure:"currency"`
ReceivedTimestamp int64 `json:"received_timestamp" mapstructure:"received_timestamp"`
State string `json:"state" mapstructure:"state"`
TransactionID string `json:"transaction_id" mapstructure:"transaction_id"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
} `json:"data" mapstructure:"data"`
}
type GetEmailLanguageRequest ¶
type GetEmailLanguageRequest struct{}
type GetEmailLanguageResponse ¶
type GetEmailLanguageResponse string
type GetMarginsRequest ¶
type GetMarginsResponse ¶
type GetNewAnnouncementsRequest ¶
type GetNewAnnouncementsRequest struct{}
type GetNewAnnouncementsResponse ¶
type GetNewAnnouncementsResponse []struct {
Body string `json:"body" mapstructure:"body"`
ID int64 `json:"id" mapstructure:"id"`
Important bool `json:"important" mapstructure:"important"`
PublicationTime int64 `json:"publication_time" mapstructure:"publication_time"`
Title string `json:"title" mapstructure:"title"`
}
type GetOpenOrdersByCurrencyRequest ¶
type GetOpenOrdersByCurrencyRequest struct {
Currency string `json:"currency" mapstructure:"currency"`
}
type GetOpenOrdersByCurrencyResponse ¶
type GetOpenOrdersByCurrencyResponse []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice int64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
}
type GetOpenOrdersByInstrumentRequest ¶
type GetOpenOrdersByInstrumentRequest struct {
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
}
type GetOpenOrdersByInstrumentResponse ¶
type GetOpenOrdersByInstrumentResponse []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice int64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
}
type GetOrderHistoryByCurrencyResponse ¶
type GetOrderHistoryByCurrencyResponse []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice float64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
}
type GetOrderHistoryByInstrumentResponse ¶
type GetOrderHistoryByInstrumentResponse []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice float64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
}
type GetOrderMarginByIdsRequest ¶
type GetOrderMarginByIdsRequest struct {
Ids []string `json:"ids" mapstructure:"ids"`
}
type GetOrderStateRequest ¶
type GetOrderStateRequest struct {
OrderID string `json:"order_id" mapstructure:"order_id"`
}
type GetOrderStateResponse ¶
type GetOrderStateResponse struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
AveragePrice float64 `json:"average_price" mapstructure:"average_price"`
Commission int64 `json:"commission" mapstructure:"commission"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
FilledAmount int64 `json:"filled_amount" mapstructure:"filled_amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss float64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
}
type GetPositionRequest ¶
type GetPositionRequest struct {
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
}
type GetPositionResponse ¶
type GetPositionResponse struct {
AveragePrice int64 `json:"average_price" mapstructure:"average_price"`
Delta int64 `json:"delta" mapstructure:"delta"`
Direction string `json:"direction" mapstructure:"direction"`
EstimatedLiquidationPrice int64 `json:"estimated_liquidation_price" mapstructure:"estimated_liquidation_price"`
FloatingProfitLoss int64 `json:"floating_profit_loss" mapstructure:"floating_profit_loss"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InitialMargin int64 `json:"initial_margin" mapstructure:"initial_margin"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Kind string `json:"kind" mapstructure:"kind"`
MaintenanceMargin int64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarkPrice float64 `json:"mark_price" mapstructure:"mark_price"`
OpenOrdersMargin float64 `json:"open_orders_margin" mapstructure:"open_orders_margin"`
RealizedProfitLoss int64 `json:"realized_profit_loss" mapstructure:"realized_profit_loss"`
SettlementPrice float64 `json:"settlement_price" mapstructure:"settlement_price"`
Size int64 `json:"size" mapstructure:"size"`
SizeCurrency int64 `json:"size_currency" mapstructure:"size_currency"`
TotalProfitLoss int64 `json:"total_profit_loss" mapstructure:"total_profit_loss"`
}
type GetPositionsRequest ¶
type GetPositionsResponse ¶
type GetPositionsResponse []struct {
AveragePrice int64 `json:"average_price" mapstructure:"average_price"`
Delta int64 `json:"delta" mapstructure:"delta"`
Direction string `json:"direction" mapstructure:"direction"`
EstimatedLiquidationPrice int64 `json:"estimated_liquidation_price" mapstructure:"estimated_liquidation_price"`
FloatingProfitLoss int64 `json:"floating_profit_loss" mapstructure:"floating_profit_loss"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InitialMargin int64 `json:"initial_margin" mapstructure:"initial_margin"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Kind string `json:"kind" mapstructure:"kind"`
MaintenanceMargin int64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarkPrice float64 `json:"mark_price" mapstructure:"mark_price"`
OpenOrdersMargin float64 `json:"open_orders_margin" mapstructure:"open_orders_margin"`
RealizedProfitLoss int64 `json:"realized_profit_loss" mapstructure:"realized_profit_loss"`
SettlementPrice float64 `json:"settlement_price" mapstructure:"settlement_price"`
Size int64 `json:"size" mapstructure:"size"`
SizeCurrency int64 `json:"size_currency" mapstructure:"size_currency"`
TotalProfitLoss int64 `json:"total_profit_loss" mapstructure:"total_profit_loss"`
}
type GetSettlementHistoryByCurrencyResponse ¶
type GetSettlementHistoryByCurrencyResponse struct {
Continuation string `json:"continuation" mapstructure:"continuation"`
Settlements []struct {
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
MarkPrice float64 `json:"mark_price" mapstructure:"mark_price"`
Position int64 `json:"position" mapstructure:"position"`
ProfitLoss float64 `json:"profit_loss" mapstructure:"profit_loss"`
SessionProfitLoss float64 `json:"session_profit_loss" mapstructure:"session_profit_loss"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
Type string `json:"type" mapstructure:"type"`
} `json:"settlements" mapstructure:"settlements"`
}
type GetSettlementHistoryByInstrumentResponse ¶
type GetSettlementHistoryByInstrumentResponse struct {
Continuation string `json:"continuation" mapstructure:"continuation"`
Settlements []struct {
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
MarkPrice float64 `json:"mark_price" mapstructure:"mark_price"`
Position int64 `json:"position" mapstructure:"position"`
ProfitLoss float64 `json:"profit_loss" mapstructure:"profit_loss"`
SessionProfitLoss float64 `json:"session_profit_loss" mapstructure:"session_profit_loss"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
Type string `json:"type" mapstructure:"type"`
} `json:"settlements" mapstructure:"settlements"`
}
type GetSubaccountsRequest ¶
type GetSubaccountsRequest struct {
WithPortfolio bool `json:"with_portfolio" mapstructure:"with_portfolio"`
}
type GetSubaccountsResponse ¶
type GetSubaccountsResponse []struct {
Email string `json:"email" mapstructure:"email"`
ID int64 `json:"id" mapstructure:"id"`
IsPassword bool `json:"is_password" mapstructure:"is_password"`
LoginEnabled bool `json:"login_enabled" mapstructure:"login_enabled"`
Portfolio struct {
Btc struct {
AvailableFunds float64 `json:"available_funds" mapstructure:"available_funds"`
AvailableWithdrawalFunds float64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
Balance float64 `json:"balance" mapstructure:"balance"`
Currency string `json:"currency" mapstructure:"currency"`
Equity float64 `json:"equity" mapstructure:"equity"`
InitialMargin float64 `json:"initial_margin" mapstructure:"initial_margin"`
MaintenanceMargin float64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarginBalance float64 `json:"margin_balance" mapstructure:"margin_balance"`
} `json:"btc" mapstructure:"btc"`
Eth struct {
AvailableFunds int64 `json:"available_funds" mapstructure:"available_funds"`
AvailableWithdrawalFunds int64 `json:"available_withdrawal_funds" mapstructure:"available_withdrawal_funds"`
Balance int64 `json:"balance" mapstructure:"balance"`
Currency string `json:"currency" mapstructure:"currency"`
Equity int64 `json:"equity" mapstructure:"equity"`
InitialMargin int64 `json:"initial_margin" mapstructure:"initial_margin"`
MaintenanceMargin int64 `json:"maintenance_margin" mapstructure:"maintenance_margin"`
MarginBalance int64 `json:"margin_balance" mapstructure:"margin_balance"`
} `json:"eth" mapstructure:"eth"`
} `json:"portfolio" mapstructure:"portfolio"`
ReceiveNotifications bool `json:"receive_notifications" mapstructure:"receive_notifications"`
SystemName string `json:"system_name" mapstructure:"system_name"`
TfaEnabled bool `json:"tfa_enabled" mapstructure:"tfa_enabled"`
Type string `json:"type" mapstructure:"type"`
Username string `json:"username" mapstructure:"username"`
}
type GetTransfersRequest ¶
type GetTransfersResponse ¶
type GetTransfersResponse struct {
Count int64 `json:"count" mapstructure:"count"`
Data []struct {
Amount float64 `json:"amount" mapstructure:"amount"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Direction string `json:"direction" mapstructure:"direction"`
ID int64 `json:"id" mapstructure:"id"`
OtherSide string `json:"other_side" mapstructure:"other_side"`
State string `json:"state" mapstructure:"state"`
Type string `json:"type" mapstructure:"type"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
} `json:"data" mapstructure:"data"`
}
type GetUserTradesByCurrencyAndTimeRequest ¶
type GetUserTradesByCurrencyAndTimeRequest struct {
Count int64 `json:"count" mapstructure:"count"`
Currency string `json:"currency" mapstructure:"currency"`
EndTimestamp int64 `json:"end_timestamp" mapstructure:"end_timestamp"`
StartTimestamp int64 `json:"start_timestamp" mapstructure:"start_timestamp"`
}
type GetUserTradesByCurrencyAndTimeResponse ¶
type GetUserTradesByCurrencyAndTimeResponse struct {
HasMore bool `json:"has_more" mapstructure:"has_more"`
Trades []struct {
Amount float64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee float64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Iv float64 `json:"iv" mapstructure:"iv"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type GetUserTradesByCurrencyResponse ¶
type GetUserTradesByCurrencyResponse struct {
HasMore bool `json:"has_more" mapstructure:"has_more"`
Trades []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee float64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Iv float64 `json:"iv" mapstructure:"iv"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type GetUserTradesByInstrumentAndTimeResponse ¶
type GetUserTradesByInstrumentAndTimeResponse struct {
HasMore bool `json:"has_more" mapstructure:"has_more"`
Trades []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee int64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price int64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type GetUserTradesByInstrumentResponse ¶
type GetUserTradesByInstrumentResponse struct {
HasMore bool `json:"has_more" mapstructure:"has_more"`
Trades []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee int64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
} `json:"trades" mapstructure:"trades"`
}
type GetUserTradesByOrderRequest ¶
type GetUserTradesByOrderRequest struct {
OrderID string `json:"order_id" mapstructure:"order_id"`
}
type GetUserTradesByOrderResponse ¶
type GetUserTradesByOrderResponse []struct {
Amount int64 `json:"amount" mapstructure:"amount"`
Direction string `json:"direction" mapstructure:"direction"`
Fee float64 `json:"fee" mapstructure:"fee"`
FeeCurrency string `json:"fee_currency" mapstructure:"fee_currency"`
IndexPrice float64 `json:"index_price" mapstructure:"index_price"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Liquidity string `json:"liquidity" mapstructure:"liquidity"`
MatchingID interface{} `json:"matching_id" mapstructure:"matching_id"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderType string `json:"order_type" mapstructure:"order_type"`
Price float64 `json:"price" mapstructure:"price"`
SelfTrade bool `json:"self_trade" mapstructure:"self_trade"`
State string `json:"state" mapstructure:"state"`
TickDirection int64 `json:"tick_direction" mapstructure:"tick_direction"`
Timestamp int64 `json:"timestamp" mapstructure:"timestamp"`
TradeID string `json:"trade_id" mapstructure:"trade_id"`
TradeSeq int64 `json:"trade_seq" mapstructure:"trade_seq"`
}
type GetWithdrawalsRequest ¶
type GetWithdrawalsResponse ¶
type GetWithdrawalsResponse struct {
Count int64 `json:"count" mapstructure:"count"`
Data []struct {
Address string `json:"address" mapstructure:"address"`
Amount float64 `json:"amount" mapstructure:"amount"`
ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Fee float64 `json:"fee" mapstructure:"fee"`
ID int64 `json:"id" mapstructure:"id"`
Priority float64 `json:"priority" mapstructure:"priority"`
State string `json:"state" mapstructure:"state"`
TransactionID interface{} `json:"transaction_id" mapstructure:"transaction_id"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
} `json:"data" mapstructure:"data"`
}
type SellRequest ¶
type SellRequest struct {
Amount int64 `json:"amount" mapstructure:"amount"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
Price float64 `json:"price" mapstructure:"price"`
StopPrice int64 `json:"stop_price" mapstructure:"stop_price"`
Trigger string `json:"trigger" mapstructure:"trigger"`
Type string `json:"type" mapstructure:"type"`
}
type SellResponse ¶
type SellResponse struct {
Order struct {
Amount int64 `json:"amount" mapstructure:"amount"`
API bool `json:"api" mapstructure:"api"`
CreationTimestamp int64 `json:"creation_timestamp" mapstructure:"creation_timestamp"`
Direction string `json:"direction" mapstructure:"direction"`
InstrumentName string `json:"instrument_name" mapstructure:"instrument_name"`
IsLiquidation bool `json:"is_liquidation" mapstructure:"is_liquidation"`
Label string `json:"label" mapstructure:"label"`
LastUpdateTimestamp int64 `json:"last_update_timestamp" mapstructure:"last_update_timestamp"`
MaxShow int64 `json:"max_show" mapstructure:"max_show"`
OrderID string `json:"order_id" mapstructure:"order_id"`
OrderState string `json:"order_state" mapstructure:"order_state"`
OrderType string `json:"order_type" mapstructure:"order_type"`
PostOnly bool `json:"post_only" mapstructure:"post_only"`
Price float64 `json:"price" mapstructure:"price"`
ProfitLoss int64 `json:"profit_loss" mapstructure:"profit_loss"`
ReduceOnly bool `json:"reduce_only" mapstructure:"reduce_only"`
StopPrice int64 `json:"stop_price" mapstructure:"stop_price"`
TimeInForce string `json:"time_in_force" mapstructure:"time_in_force"`
Trigger string `json:"trigger" mapstructure:"trigger"`
Triggered bool `json:"triggered" mapstructure:"triggered"`
} `json:"order" mapstructure:"order"`
Trades []interface{} `json:"trades" mapstructure:"trades"`
}
type SetAnnouncementAsReadRequest ¶
type SetAnnouncementAsReadRequest struct {
AnnouncementID int64 `json:"announcement_id" mapstructure:"announcement_id"`
}
type SetAnnouncementAsReadResponse ¶
type SetAnnouncementAsReadResponse string
type SetEmailForSubaccountResponse ¶
type SetEmailForSubaccountResponse string
type SetEmailLanguageRequest ¶
type SetEmailLanguageRequest struct {
Language string `json:"language" mapstructure:"language"`
}
type SetEmailLanguageResponse ¶
type SetEmailLanguageResponse string
type SetPasswordForSubaccountResponse ¶
type SetPasswordForSubaccountResponse string
type SubmitTransferToSubaccountResponse ¶
type SubmitTransferToSubaccountResponse struct {
Amount float64 `json:"amount" mapstructure:"amount"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Direction string `json:"direction" mapstructure:"direction"`
ID int64 `json:"id" mapstructure:"id"`
OtherSide string `json:"other_side" mapstructure:"other_side"`
State string `json:"state" mapstructure:"state"`
Type string `json:"type" mapstructure:"type"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}
type SubmitTransferToUserResponse ¶
type SubmitTransferToUserResponse struct {
Amount float64 `json:"amount" mapstructure:"amount"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Direction string `json:"direction" mapstructure:"direction"`
ID int64 `json:"id" mapstructure:"id"`
OtherSide string `json:"other_side" mapstructure:"other_side"`
State string `json:"state" mapstructure:"state"`
Type string `json:"type" mapstructure:"type"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}
type SubscribeRequest ¶
type SubscribeRequest struct {
Channels []string `json:"channels" mapstructure:"channels"`
}
type SubscribeResponse ¶
type SubscribeResponse []string
type ToggleNotificationsFromSubaccountResponse ¶
type ToggleNotificationsFromSubaccountResponse string
type ToggleSubaccountLoginResponse ¶
type ToggleSubaccountLoginResponse string
type UnsubscribeRequest ¶
type UnsubscribeRequest struct {
Channels []string `json:"channels" mapstructure:"channels"`
}
type UnsubscribeResponse ¶
type UnsubscribeResponse []string
type WithdrawRequest ¶
type WithdrawResponse ¶
type WithdrawResponse struct {
Address string `json:"address" mapstructure:"address"`
Amount float64 `json:"amount" mapstructure:"amount"`
ConfirmedTimestamp interface{} `json:"confirmed_timestamp" mapstructure:"confirmed_timestamp"`
CreatedTimestamp int64 `json:"created_timestamp" mapstructure:"created_timestamp"`
Currency string `json:"currency" mapstructure:"currency"`
Fee float64 `json:"fee" mapstructure:"fee"`
ID int64 `json:"id" mapstructure:"id"`
Priority int64 `json:"priority" mapstructure:"priority"`
State string `json:"state" mapstructure:"state"`
TransactionID interface{} `json:"transaction_id" mapstructure:"transaction_id"`
UpdatedTimestamp int64 `json:"updated_timestamp" mapstructure:"updated_timestamp"`
}
Source Files
¶
- buy_request.go
- buy_response.go
- cancel_all_by_currency_request.go
- cancel_all_by_currency_response.go
- cancel_all_by_instrument_request.go
- cancel_all_by_instrument_response.go
- cancel_all_request.go
- cancel_all_response.go
- cancel_request.go
- cancel_response.go
- cancel_transfer_by_id_request.go
- cancel_transfer_by_id_response.go
- cancel_withdrawal_request.go
- cancel_withdrawal_response.go
- change_subaccount_name_request.go
- change_subaccount_name_response.go
- close_position_request.go
- close_position_response.go
- create_deposit_address_request.go
- create_deposit_address_response.go
- create_subaccount_request.go
- create_subaccount_response.go
- disable_cancel_on_disconnect_request.go
- disable_cancel_on_disconnect_response.go
- disable_tfa_for_subaccount_request.go
- disable_tfa_for_subaccount_response.go
- edit_request.go
- edit_response.go
- enable_cancel_on_disconnect_request.go
- enable_cancel_on_disconnect_response.go
- get_account_summary_request.go
- get_account_summary_response.go
- get_current_deposit_address_request.go
- get_current_deposit_address_response.go
- get_deposits_request.go
- get_deposits_response.go
- get_email_language_request.go
- get_email_language_response.go
- get_margins_request.go
- get_margins_response.go
- get_new_announcements_request.go
- get_new_announcements_response.go
- get_open_orders_by_currency_request.go
- get_open_orders_by_currency_response.go
- get_open_orders_by_instrument_request.go
- get_open_orders_by_instrument_response.go
- get_order_history_by_currency_request.go
- get_order_history_by_currency_response.go
- get_order_history_by_instrument_request.go
- get_order_history_by_instrument_response.go
- get_order_margin_by_ids_request.go
- get_order_margin_by_ids_response.go
- get_order_state_request.go
- get_order_state_response.go
- get_position_request.go
- get_position_response.go
- get_positions_request.go
- get_positions_response.go
- get_settlement_history_by_currency_request.go
- get_settlement_history_by_currency_response.go
- get_settlement_history_by_instrument_request.go
- get_settlement_history_by_instrument_response.go
- get_subaccounts_request.go
- get_subaccounts_response.go
- get_transfers_request.go
- get_transfers_response.go
- get_user_trades_by_currency_and_time_request.go
- get_user_trades_by_currency_and_time_response.go
- get_user_trades_by_currency_request.go
- get_user_trades_by_currency_response.go
- get_user_trades_by_instrument_and_time_request.go
- get_user_trades_by_instrument_and_time_response.go
- get_user_trades_by_instrument_request.go
- get_user_trades_by_instrument_response.go
- get_user_trades_by_order_request.go
- get_user_trades_by_order_response.go
- get_withdrawals_request.go
- get_withdrawals_response.go
- sell_request.go
- sell_response.go
- set_announcement_as_read_request.go
- set_announcement_as_read_response.go
- set_email_for_subaccount_request.go
- set_email_for_subaccount_response.go
- set_email_language_request.go
- set_email_language_response.go
- set_password_for_subaccount_request.go
- set_password_for_subaccount_response.go
- submit_transfer_to_subaccount_request.go
- submit_transfer_to_subaccount_response.go
- submit_transfer_to_user_request.go
- submit_transfer_to_user_response.go
- subscribe_request.go
- subscribe_response.go
- toggle_notifications_from_subaccount_request.go
- toggle_notifications_from_subaccount_response.go
- toggle_subaccount_login_request.go
- toggle_subaccount_login_response.go
- unsubscribe_request.go
- unsubscribe_response.go
- withdraw_request.go
- withdraw_response.go
Click to show internal directories.
Click to hide internal directories.