Documentation ¶
Index ¶
- type AccountClient
- func (ac *AccountClient) ContractAccountInfoAsync(data chan account.ContractAccountInfoResponse, symbol string)
- func (ac *AccountClient) ContractAccountPositionInfoAsync(data chan account.ContractAccountPositionInfoResponse, symbol string)
- func (ac *AccountClient) ContractAvailableLevelRateAsync(data chan account.ContractAvailableLevelRateResponse, symbol string)
- func (ac *AccountClient) ContractBalanceValuationAsync(data chan account.ContractBalanceValuationResponse, valuationAsset string)
- func (ac *AccountClient) ContractFeeAsync(data chan account.ContractFeeResponse, symbol string)
- func (ac *AccountClient) ContractFinancialRecordAsync(data chan account.ContractFinancialRecordResponse, startTime string, ...)
- func (ac *AccountClient) ContractFinancialRecordExactAsync(data chan account.ContractFinancialRecordExactResponse, startTime string, ...)
- func (ac *AccountClient) ContractMasterSubTransferAsync(data chan account.ContractMasterSubTransferResponse, subUid string, ...)
- func (ac *AccountClient) ContractMasterSubTransferRecordAsync(data chan account.ContractMasterSubTransferRecordResponse, symbol string, ...)
- func (ac *AccountClient) ContractOrderLimitAsync(data chan account.ContractOrderLimitResponse, symbol string, ...)
- func (ac *AccountClient) ContractPositionInfoAsync(data chan account.ContractPositionInfoResponse, symbol string)
- func (ac *AccountClient) ContractPositionLimitAsync(data chan account.ContractPositionLimitResponse, symbol string)
- func (ac *AccountClient) ContractSubAccountInfoAsync(data chan account.ContractSubAccountInfoResponse, symbol string, subUid string)
- func (ac *AccountClient) ContractSubAccountInfoListAsync(data chan account.ContractSubAccountInfoListResponse, symbol string, ...)
- func (ac *AccountClient) ContractSubAccountListAsync(data chan account.ContractSubAccountListResponse, symbol string, direct string, ...)
- func (ac *AccountClient) ContractSubAuthAsync(data chan account.ContractSubAuthResponse, subUid string, subAuth string)
- func (ac *AccountClient) ContractSubAuthListAsync(data chan account.ContractSubAuthListResponse, subUid string, startTime string, ...)
- func (ac *AccountClient) ContractSubPositionInfoAsync(data chan account.ContractSubPositionInfoResponse, symbol string, ...)
- func (ac *AccountClient) ContractTransferLimitAsync(data chan account.ContractTransferLimitResponse, symbol string)
- func (ac *AccountClient) ContractUserSettlementRecordsAsync(data chan account.ContractUserSettlementRecordsResponse, symbol string, ...)
- func (ac *AccountClient) GetContractApiTradingStatusAsync(data chan account.GetContractApiTradingStatusResponse)
- func (ac *AccountClient) Init(accessKey string, secretKey string, host string) *AccountClient
- type CommonClient
- func (ac *CommonClient) GetContractAdjustFactorAsync(data chan common.GetContractAdjustFactorResponse, symbol string)
- func (ac *CommonClient) GetContractApiStateAsync(data chan common.GetContractApiStateResponse, symbol string)
- func (ac *CommonClient) GetContractContractInfoAsync(data chan common.GetContractContractInfoResponse, symbol string, ...)
- func (ac *CommonClient) GetContractDeliveryPriceAsync(data chan common.GetContractDeliveryPriceResponse, symbol string)
- func (ac *CommonClient) GetContractEliteAccountRatioAsync(data chan common.GetContractEliteAccountRatioResponse, symbol string, ...)
- func (ac *CommonClient) GetContractElitePositionRatioAsync(data chan common.GetContractElitePositionRatioResponse, symbol string, ...)
- func (ac *CommonClient) GetContractEstimatedSettlementPriceAsync(data chan common.GetContractEstimatedSettlementPriceResponse, symbol string)
- func (ac *CommonClient) GetContractHisOpenInterestAsync(data chan common.GetContractHisOpenInterestResponse, symbol string, ...)
- func (ac *CommonClient) GetContractIndexAsync(data chan common.GetContractIndexResponse, symbol string)
- func (ac *CommonClient) GetContractInsuranceFundAsync(data chan common.GetContractInsuranceFundResponse, symbol string)
- func (ac *CommonClient) GetContractLadderMarginAsync(data chan common.GetContractLadderMarginResponse, symbol string)
- func (ac *CommonClient) GetContractLiquidationOrdersAsync(data chan common.GetContractLiquidationOrdersResponse, symbol string, ...)
- func (ac *CommonClient) GetContractOpenInterestAsync(data chan common.GetContractOpenInterestResponse, symbol string, ...)
- func (ac *CommonClient) GetContractPriceLimitAsync(data chan common.GetContractPriceLimitResponse, symbol string, ...)
- func (ac *CommonClient) GetContractQueryElementsAsync(data chan common.GetContractQueryElementsResponse, contractCode string)
- func (ac *CommonClient) GetContractRiskInfoAsync(data chan common.GetContractRiskInfoResponse, symbol string)
- func (ac *CommonClient) GetContractSettlementRecordsAsync(data chan common.GetContractSettlementRecordsResponse, symbol string, ...)
- func (ac *CommonClient) Init(host string) *CommonClient
- type MarketClient
- func (mc *MarketClient) GetBatchMergedAsync(data chan market.GetdetailBatchMergedResponse, symbol string)
- func (mc *MarketClient) GetBboAsync(data chan market.GetMarketBboResponse, symbol string)
- func (mc *MarketClient) GetDepthAsync(data chan market.GetDepthResponse, symbol string, fcType string)
- func (mc *MarketClient) GetHistoryBasisAsync(data chan market.GetHistoryBasisResponse, symbol string, period string, ...)
- func (mc *MarketClient) GetHistoryIndexAsync(data chan market.GetHistoryIndexResponse, symbol string, period string, ...)
- func (mc *MarketClient) GetHistoryTradeAsync(data chan market.GetHistoryTradeResponse, symbol string, size string)
- func (mc *MarketClient) GetKlineAsync(data chan market.GetKlineResponse, symbol string, period string, size string, ...)
- func (mc *MarketClient) GetMarkPriceKlineAsync(data chan market.GetMarkPriceKlineResponse, symbol string, period string, ...)
- func (mc *MarketClient) GetMergedAsync(data chan market.GetDetailMergedResponse, symbol string)
- func (mc *MarketClient) GetTradeAsync(data chan market.GetMarketTradeResponse, symbol string)
- func (mc *MarketClient) Init(host string) *MarketClient
- type OrderClient
- func (oc *OrderClient) ContractBatchOrderAsync(data chan responseorder.ContractBatchOrderResponse, ...)
- func (oc *OrderClient) ContractCancelAfterAsync(data chan responseorder.ContractCancelAfterResponse, onOff string, ...)
- func (oc *OrderClient) ContractCancelAllAsync(data chan responseorder.ContractCancelAllResponse, symbol string, ...)
- func (oc *OrderClient) ContractCancelAsync(data chan responseorder.ContractCancelResponse, orderId string, ...)
- func (oc *OrderClient) ContractHisOrdersExactAsync(data chan responseorder.ContractHisOrdersExactResponse, symbol string, ...)
- func (oc *OrderClient) ContractHisordersAsync(data chan responseorder.ContractHisordersResponse, symbol string, ...)
- func (oc *OrderClient) ContractMatchResultsAsync(data chan responseorder.ContractMatchResultsResponse, symbol string, ...)
- func (oc *OrderClient) ContractMatchResultsExactAsync(data chan responseorder.ContractMatchResultsExactResponse, symbol string, ...)
- func (oc *OrderClient) ContractOpenOrdersAsync(data chan responseorder.ContractOpenOrdersResponse, symbol string, ...)
- func (oc *OrderClient) ContractOrderAsync(data chan responseorder.ContractOrderResponse, ...)
- func (oc *OrderClient) ContractOrderDetailAsync(data chan responseorder.ContractOrderDetailResponse, symbol string, ...)
- func (oc *OrderClient) ContractOrderInfoAsync(data chan responseorder.ContractOrderInfoResponse, orderId string, ...)
- func (oc *OrderClient) ContractSwitchLeverRateAsync(data chan responseorder.ContractSwitchLeverRateResponse, symbol string, ...)
- func (oc *OrderClient) Init(accessKey string, secretKey string, host string) *OrderClient
- func (oc *OrderClient) LightningClosePositionAsync(data chan responseorder.LightningClosePositionResponse, symbol string, ...)
- type TransferClient
- func (tc *TransferClient) AccountTransferAsync(data chan transfer.AccountTransferResponse, from string, to string, ...)
- func (tc *TransferClient) FuturesTransferAsync(data chan transfer.FuturesTransferResponse, amount string, currency string, ...)
- func (tc *TransferClient) Init(accessKey string, secretKey string, host string) *TransferClient
- type TriggerOrderClient
- func (toc *TriggerOrderClient) ContractRelationTpslOrderAsync(data chan responsetriggerorder.ContractRelationTpslOrderResponse, ...)
- func (toc *TriggerOrderClient) ContractTpslCancelAllAsync(data chan responsetriggerorder.ContractTpslCancelAllResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTpslCancelAsync(data chan responsetriggerorder.ContractTpslCancelResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTpslHisOrdersAsync(data chan responsetriggerorder.ContractTpslHisOrdersResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTpslOpenOrdersAsync(data chan responsetriggerorder.ContractTpslOpenOrdersResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTpslOrderAsync(data chan responsetriggerorder.ContractTpslOrderResponse, ...)
- func (toc *TriggerOrderClient) ContractTrackCancelAllAsync(data chan responsetriggerorder.ContractTrackCancelAllResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTrackCancelAsync(data chan responsetriggerorder.ContractTrackCancelResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTrackHisOrdersAsync(data chan responsetriggerorder.ContractTrackHisOrdersResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTrackOpenOrdersAsync(data chan responsetriggerorder.ContractTrackOpenOrdersResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTrackOrderAsync(data chan responsetriggerorder.ContractTrackOrderResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTriggerCancelAllAsync(data chan responsetriggerorder.ContractTriggerCancelAllResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTriggerHisOrdersAsync(data chan responsetriggerorder.ContractTriggerHisOrdersResponse, symbol string, ...)
- func (toc *TriggerOrderClient) ContractTriggerOpenOrdersAsync(data chan responsetriggerorder.ContractTriggerOpenOrdersResponse, ...)
- func (toc *TriggerOrderClient) ContractTriggerOrderAsync(data chan responsetriggerorder.ContractTriggerOrderResponse, ...)
- func (toc *TriggerOrderClient) Init(accessKey string, secretKey string, host string) *TriggerOrderClient
- func (toc *TriggerOrderClient) SwapTriggerCancelAsync(data chan responsetriggerorder.SwapTriggerCancelResponse, symbol string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountClient ¶
type AccountClient struct {
PUrlBuilder *reqbuilder.PrivateUrlBuilder
}
func (*AccountClient) ContractAccountInfoAsync ¶
func (ac *AccountClient) ContractAccountInfoAsync(data chan account.ContractAccountInfoResponse, symbol string)
ContractAccountInfoAsync (Query User’s Account Information)
func (*AccountClient) ContractAccountPositionInfoAsync ¶
func (ac *AccountClient) ContractAccountPositionInfoAsync(data chan account.ContractAccountPositionInfoResponse, symbol string)
ContractAccountPositionInfoAsync (Query Assets And Positions)
func (*AccountClient) ContractAvailableLevelRateAsync ¶
func (ac *AccountClient) ContractAvailableLevelRateAsync(data chan account.ContractAvailableLevelRateResponse, symbol string)
ContractAvailableLevelRateAsync (Query Available Leverage Rate)
func (*AccountClient) ContractBalanceValuationAsync ¶
func (ac *AccountClient) ContractBalanceValuationAsync(data chan account.ContractBalanceValuationResponse, valuationAsset string)
ContractBalanceValuationAsync (Query Asset Valuation)
func (*AccountClient) ContractFeeAsync ¶
func (ac *AccountClient) ContractFeeAsync(data chan account.ContractFeeResponse, symbol string)
ContractFeeAsync (Query information on contract trading fee)
func (*AccountClient) ContractFinancialRecordAsync ¶
func (ac *AccountClient) ContractFinancialRecordAsync(data chan account.ContractFinancialRecordResponse, startTime string, endTime string, direct string, fromId string, fcType string, symbol string)
ContractFinancialRecordAsync (Query account financial records(New))
func (*AccountClient) ContractFinancialRecordExactAsync ¶
func (ac *AccountClient) ContractFinancialRecordExactAsync(data chan account.ContractFinancialRecordExactResponse, startTime string, endTime string, direct string, fromId string, fcType string, symbol string)
ContractFinancialRecordExactAsync (Query financial records via multiple fields(New))
func (*AccountClient) ContractMasterSubTransferAsync ¶
func (ac *AccountClient) ContractMasterSubTransferAsync(data chan account.ContractMasterSubTransferResponse, subUid string, symbol string, amount string, fcType string, clientOrderId string)
ContractMasterSubTransferAsync (Transfer between master and sub account)
func (*AccountClient) ContractMasterSubTransferRecordAsync ¶
func (ac *AccountClient) ContractMasterSubTransferRecordAsync(data chan account.ContractMasterSubTransferRecordResponse, symbol string, transferType string, createDate string, pageIndex string, pageSize string)
ContractMasterSubTransferRecordAsync (Get transfer records between master and sub account)
func (*AccountClient) ContractOrderLimitAsync ¶
func (ac *AccountClient) ContractOrderLimitAsync(data chan account.ContractOrderLimitResponse, symbol string, orderPriceType string)
ContractOrderLimitAsync (Query contract information on order limit)
func (*AccountClient) ContractPositionInfoAsync ¶
func (ac *AccountClient) ContractPositionInfoAsync(data chan account.ContractPositionInfoResponse, symbol string)
ContractPositionInfoAsync (Query User’s Position Information)
func (*AccountClient) ContractPositionLimitAsync ¶
func (ac *AccountClient) ContractPositionLimitAsync(data chan account.ContractPositionLimitResponse, symbol string)
ContractPositionLimitAsync (Query information on position limit)
func (*AccountClient) ContractSubAccountInfoAsync ¶
func (ac *AccountClient) ContractSubAccountInfoAsync(data chan account.ContractSubAccountInfoResponse, symbol string, subUid string)
ContractSubAccountInfoAsync (Query a single sub-account's assets information)
func (*AccountClient) ContractSubAccountInfoListAsync ¶
func (ac *AccountClient) ContractSubAccountInfoListAsync(data chan account.ContractSubAccountInfoListResponse, symbol string, pageIndex string, pageSize string)
ContractSubAccountInfoListAsync (Query a Batch of Sub-Account's Assets Information)
func (*AccountClient) ContractSubAccountListAsync ¶
func (ac *AccountClient) ContractSubAccountListAsync(data chan account.ContractSubAccountListResponse, symbol string, direct string, fromId string)
ContractSubAccountListAsync (Query assets information of all sub-accounts under the master account)
func (*AccountClient) ContractSubAuthAsync ¶
func (ac *AccountClient) ContractSubAuthAsync(data chan account.ContractSubAuthResponse, subUid string, subAuth string)
ContractSubAuthAsync (Set a Batch of Sub-Account Trading Permissions)
func (*AccountClient) ContractSubAuthListAsync ¶
func (ac *AccountClient) ContractSubAuthListAsync(data chan account.ContractSubAuthListResponse, subUid string, startTime string, endTime string, direct string, fromId string)
ContractSubAuthListAsync (Query sub-account transaction permissions)
func (*AccountClient) ContractSubPositionInfoAsync ¶
func (ac *AccountClient) ContractSubPositionInfoAsync(data chan account.ContractSubPositionInfoResponse, symbol string, subUid string)
ContractSubPositionInfoAsync (Query a single sub-account's position information)
func (*AccountClient) ContractTransferLimitAsync ¶
func (ac *AccountClient) ContractTransferLimitAsync(data chan account.ContractTransferLimitResponse, symbol string)
ContractTransferLimitAsync (Query information on Transfer Limit)
func (*AccountClient) ContractUserSettlementRecordsAsync ¶
func (ac *AccountClient) ContractUserSettlementRecordsAsync(data chan account.ContractUserSettlementRecordsResponse, symbol string, startTime string, endTime string, pageIndex string, pageSize string)
ContractUserSettlementRecordsAsync (Query user’s settlement records)
func (*AccountClient) GetContractApiTradingStatusAsync ¶
func (ac *AccountClient) GetContractApiTradingStatusAsync(data chan account.GetContractApiTradingStatusResponse)
GetContractApiTradingStatusAsync (Query user's API indicator disable information)
func (*AccountClient) Init ¶
func (ac *AccountClient) Init(accessKey string, secretKey string, host string) *AccountClient
type CommonClient ¶
type CommonClient struct {
PUrlBuilder *reqbuilder.PublicUrlBuilder
}
func (*CommonClient) GetContractAdjustFactorAsync ¶
func (ac *CommonClient) GetContractAdjustFactorAsync(data chan common.GetContractAdjustFactorResponse, symbol string)
GetContractAdjustFactorAsync (Query information on Tiered Adjustment Factor)
func (*CommonClient) GetContractApiStateAsync ¶
func (ac *CommonClient) GetContractApiStateAsync(data chan common.GetContractApiStateResponse, symbol string)
GetContractApiStateAsync (Query information on system status)
func (*CommonClient) GetContractContractInfoAsync ¶
func (ac *CommonClient) GetContractContractInfoAsync(data chan common.GetContractContractInfoResponse, symbol string, contractType string, contractCode string)
GetContractContractInfoAsync (Get Contract Info)
func (*CommonClient) GetContractDeliveryPriceAsync ¶
func (ac *CommonClient) GetContractDeliveryPriceAsync(data chan common.GetContractDeliveryPriceResponse, symbol string)
GetContractDeliveryPriceAsync (Get the estimated delivery price)
func (*CommonClient) GetContractEliteAccountRatioAsync ¶
func (ac *CommonClient) GetContractEliteAccountRatioAsync(data chan common.GetContractEliteAccountRatioResponse, symbol string, period string)
GetContractEliteAccountRatioAsync (Query Top Trader Sentiment Index Function-Account)
func (*CommonClient) GetContractElitePositionRatioAsync ¶
func (ac *CommonClient) GetContractElitePositionRatioAsync(data chan common.GetContractElitePositionRatioResponse, symbol string, period string)
GetContractElitePositionRatioAsync (Query Top Trader Sentiment Index Function-Position)
func (*CommonClient) GetContractEstimatedSettlementPriceAsync ¶
func (ac *CommonClient) GetContractEstimatedSettlementPriceAsync(data chan common.GetContractEstimatedSettlementPriceResponse, symbol string)
GetContractEstimatedSettlementPriceAsync (Get The Estimated Settlement Price)
func (*CommonClient) GetContractHisOpenInterestAsync ¶
func (ac *CommonClient) GetContractHisOpenInterestAsync(data chan common.GetContractHisOpenInterestResponse, symbol string, contractType string, period string, size string, amountType string)
GetContractHisOpenInterestAsync (Query information on open interest)
func (*CommonClient) GetContractIndexAsync ¶
func (ac *CommonClient) GetContractIndexAsync(data chan common.GetContractIndexResponse, symbol string)
GetContractIndexAsync (Get Contract Index Price Information)
func (*CommonClient) GetContractInsuranceFundAsync ¶
func (ac *CommonClient) GetContractInsuranceFundAsync(data chan common.GetContractInsuranceFundResponse, symbol string)
GetContractInsuranceFundAsync (Query history records of insurance fund balance)
func (*CommonClient) GetContractLadderMarginAsync ¶
func (ac *CommonClient) GetContractLadderMarginAsync(data chan common.GetContractLadderMarginResponse, symbol string)
GetContractLadderMarginAsync (Query information on Tiered Margin)
func (*CommonClient) GetContractLiquidationOrdersAsync ¶
func (ac *CommonClient) GetContractLiquidationOrdersAsync(data chan common.GetContractLiquidationOrdersResponse, symbol string, tradeType string, startTime string, endTime string, direct string, fromID string)
GetContractLiquidationOrdersAsync (Query Liquidation Order Information(New))
func (*CommonClient) GetContractOpenInterestAsync ¶
func (ac *CommonClient) GetContractOpenInterestAsync(data chan common.GetContractOpenInterestResponse, symbol string, contractType string, contractCode string)
GetContractOpenInterestAsync (Get Contract Open Interest Information)
func (*CommonClient) GetContractPriceLimitAsync ¶
func (ac *CommonClient) GetContractPriceLimitAsync(data chan common.GetContractPriceLimitResponse, symbol string, contractType string, contractCode string)
GetContractPriceLimitAsync (Get Contract Price Limitation)
func (*CommonClient) GetContractQueryElementsAsync ¶
func (ac *CommonClient) GetContractQueryElementsAsync(data chan common.GetContractQueryElementsResponse, contractCode string)
GetContractQueryElementsAsync (Contract Elements)
func (*CommonClient) GetContractRiskInfoAsync ¶
func (ac *CommonClient) GetContractRiskInfoAsync(data chan common.GetContractRiskInfoResponse, symbol string)
GetContractRiskInfoAsync (Query information on contract insurance fund balance and estimated clawback rate)
func (*CommonClient) GetContractSettlementRecordsAsync ¶
func (ac *CommonClient) GetContractSettlementRecordsAsync(data chan common.GetContractSettlementRecordsResponse, symbol string, startTime string, endTime string, pageIndex string, pageSize string)
GetContractSettlementRecordsAsync (Query historical settlement records of the platform interface)
func (*CommonClient) Init ¶
func (ac *CommonClient) Init(host string) *CommonClient
type MarketClient ¶
type MarketClient struct {
PUrlBuilder *reqbuilder.PublicUrlBuilder
}
func (*MarketClient) GetBatchMergedAsync ¶
func (mc *MarketClient) GetBatchMergedAsync(data chan market.GetdetailBatchMergedResponse, symbol string)
GetBatchMergedAsync (Get a Batch of Market Data Overview(V2))
func (*MarketClient) GetBboAsync ¶
func (mc *MarketClient) GetBboAsync(data chan market.GetMarketBboResponse, symbol string)
GetBboAsync (Get Market BBO Data)
func (*MarketClient) GetDepthAsync ¶
func (mc *MarketClient) GetDepthAsync(data chan market.GetDepthResponse, symbol string, fcType string)
GetDepthAsync (Get Market Depth)
func (*MarketClient) GetHistoryBasisAsync ¶
func (mc *MarketClient) GetHistoryBasisAsync(data chan market.GetHistoryBasisResponse, symbol string, period string, basisPriceType string, size string)
GetHistoryBasisAsync (Query Basis Data)
func (*MarketClient) GetHistoryIndexAsync ¶
func (mc *MarketClient) GetHistoryIndexAsync(data chan market.GetHistoryIndexResponse, symbol string, period string, size string)
GetHistoryIndexAsync (Query Index Kline Data)
func (*MarketClient) GetHistoryTradeAsync ¶
func (mc *MarketClient) GetHistoryTradeAsync(data chan market.GetHistoryTradeResponse, symbol string, size string)
GetHistoryTradeAsync (Query a Batch of Trade Records of a Contract)
func (*MarketClient) GetKlineAsync ¶
func (mc *MarketClient) GetKlineAsync(data chan market.GetKlineResponse, symbol string, period string, size string, from string, to string)
GetKlineAsync (Get Kline Data)
func (*MarketClient) GetMarkPriceKlineAsync ¶
func (mc *MarketClient) GetMarkPriceKlineAsync(data chan market.GetMarkPriceKlineResponse, symbol string, period string, size string)
GetMarkPriceKlineAsync (Get Kline Data of Mark Price)
func (*MarketClient) GetMergedAsync ¶
func (mc *MarketClient) GetMergedAsync(data chan market.GetDetailMergedResponse, symbol string)
GetMergedAsync (Get Market Data Overview)
func (*MarketClient) GetTradeAsync ¶
func (mc *MarketClient) GetTradeAsync(data chan market.GetMarketTradeResponse, symbol string)
GetTradeAsync (Query The Last Trade of a Contract)
func (*MarketClient) Init ¶
func (mc *MarketClient) Init(host string) *MarketClient
type OrderClient ¶
type OrderClient struct {
PUrlBuilder *reqbuilder.PrivateUrlBuilder
}
func (*OrderClient) ContractBatchOrderAsync ¶
func (oc *OrderClient) ContractBatchOrderAsync(data chan responseorder.ContractBatchOrderResponse, request requestorder.BatchContractOrderRequest)
ContractBatchOrderAsync (Place a Batch of Orders)
func (*OrderClient) ContractCancelAfterAsync ¶
func (oc *OrderClient) ContractCancelAfterAsync(data chan responseorder.ContractCancelAfterResponse, onOff string, timeOut string)
ContractCancelAfterAsync ( Automatic Order Cancellation)
func (*OrderClient) ContractCancelAllAsync ¶
func (oc *OrderClient) ContractCancelAllAsync(data chan responseorder.ContractCancelAllResponse, symbol string, contractCode string, contractType string, direction string, offset string)
ContractCancelAllAsync (Cancel All Orders)
func (*OrderClient) ContractCancelAsync ¶
func (oc *OrderClient) ContractCancelAsync(data chan responseorder.ContractCancelResponse, orderId string, clientOrderId string, symbol string)
ContractCancelAsync (Cancel an Order)
func (*OrderClient) ContractHisOrdersExactAsync ¶
func (oc *OrderClient) ContractHisOrdersExactAsync(data chan responseorder.ContractHisOrdersExactResponse, symbol string, tradeType string, fcType string, status string, contract string, orderType string, sortBy string, startTime string, endTime string, direct string, fromId string)
ContractHisOrdersExactAsync (Query History Orders via Multiple fields(New))
func (*OrderClient) ContractHisordersAsync ¶
func (oc *OrderClient) ContractHisordersAsync(data chan responseorder.ContractHisordersResponse, symbol string, tradeType string, fcType string, status string, orderType string, sortBy string, startTime string, endTime string, direct string, fromId string)
ContractHisordersAsync (Get History Orders(New))
func (*OrderClient) ContractMatchResultsAsync ¶
func (oc *OrderClient) ContractMatchResultsAsync(data chan responseorder.ContractMatchResultsResponse, symbol string, tradeType string, startTime string, endTime string, direct string, fromId string)
ContractMatchResultsAsync (Get History Match Results(New))
func (*OrderClient) ContractMatchResultsExactAsync ¶
func (oc *OrderClient) ContractMatchResultsExactAsync(data chan responseorder.ContractMatchResultsExactResponse, symbol string, contract string, tradeType string, startTime string, endTime string, direct string, fromId string)
ContractMatchResultsExactAsync (Query history transactions via multiple fields(New))
func (*OrderClient) ContractOpenOrdersAsync ¶
func (oc *OrderClient) ContractOpenOrdersAsync(data chan responseorder.ContractOpenOrdersResponse, symbol string, pageIndex string, pageSize string, sortBy string, tradeType string)
ContractOpenOrdersAsync (Query Open Orders)
func (*OrderClient) ContractOrderAsync ¶
func (oc *OrderClient) ContractOrderAsync(data chan responseorder.ContractOrderResponse, request requestorder.ContractOrderRequest)
ContractOrderAsync (Place an Order)
func (*OrderClient) ContractOrderDetailAsync ¶
func (oc *OrderClient) ContractOrderDetailAsync(data chan responseorder.ContractOrderDetailResponse, symbol string, orderId string, createAt string, orderType string, pageIndex string, pageSize string)
ContractOrderDetailAsync (Order Details Acquisition)
func (*OrderClient) ContractOrderInfoAsync ¶
func (oc *OrderClient) ContractOrderInfoAsync(data chan responseorder.ContractOrderInfoResponse, orderId string, clientOrderId string, symbol string)
ContractOrderInfoAsync (Get Information of an Order)
func (*OrderClient) ContractSwitchLeverRateAsync ¶
func (oc *OrderClient) ContractSwitchLeverRateAsync(data chan responseorder.ContractSwitchLeverRateResponse, symbol string, leverRate string)
ContractSwitchLeverRateAsync (Switch Leverage)
func (*OrderClient) Init ¶
func (oc *OrderClient) Init(accessKey string, secretKey string, host string) *OrderClient
func (*OrderClient) LightningClosePositionAsync ¶
func (oc *OrderClient) LightningClosePositionAsync(data chan responseorder.LightningClosePositionResponse, symbol string, contractType string, contractCode string, volume string, direction string, clientOrderId string, orderPriceType string)
LightningClosePositionAsync (Place Flash Close Order)
type TransferClient ¶
type TransferClient struct {
PUrlBuilder *reqbuilder.PrivateUrlBuilder
}
func (*TransferClient) AccountTransferAsync ¶
func (tc *TransferClient) AccountTransferAsync(data chan transfer.AccountTransferResponse, from string, to string, amount float32, marginAccount string, currency string)
AccountTransferAsync ([General] Spot - transfer funds between contract accounts)
func (*TransferClient) FuturesTransferAsync ¶
func (tc *TransferClient) FuturesTransferAsync(data chan transfer.FuturesTransferResponse, amount string, currency string, fcType string)
FuturesTransferAsync (Transfer margin between Spot account and Future account)
func (*TransferClient) Init ¶
func (tc *TransferClient) Init(accessKey string, secretKey string, host string) *TransferClient
type TriggerOrderClient ¶
type TriggerOrderClient struct {
PUrlBuilder *reqbuilder.PrivateUrlBuilder
}
func (*TriggerOrderClient) ContractRelationTpslOrderAsync ¶
func (toc *TriggerOrderClient) ContractRelationTpslOrderAsync(data chan responsetriggerorder.ContractRelationTpslOrderResponse, symbol string, orderId string)
ContractRelationTpslOrderAsync (Query Info Of Take-profit and Stop-loss Order That Related To Position Opening Order)
func (*TriggerOrderClient) ContractTpslCancelAllAsync ¶
func (toc *TriggerOrderClient) ContractTpslCancelAllAsync(data chan responsetriggerorder.ContractTpslCancelAllResponse, symbol string, contractCode string, contractType string, direction string)
ContractTpslCancelAllAsync (Cancel all Take-profit and Stop-loss Orders)
func (*TriggerOrderClient) ContractTpslCancelAsync ¶
func (toc *TriggerOrderClient) ContractTpslCancelAsync(data chan responsetriggerorder.ContractTpslCancelResponse, symbol string, orderId string)
ContractTpslCancelAsync (Cancel a Take-profit and Stop-loss Order)
func (*TriggerOrderClient) ContractTpslHisOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTpslHisOrdersAsync(data chan responsetriggerorder.ContractTpslHisOrdersResponse, symbol string, contractCode string, status string, createDate string, pageIndex string, pageSize string, sortBy string)
ContractTpslHisOrdersAsync (Query Take-profit and Stop-loss History Orders)
func (*TriggerOrderClient) ContractTpslOpenOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTpslOpenOrdersAsync(data chan responsetriggerorder.ContractTpslOpenOrdersResponse, symbol string, contractCode string, pageIndex string, pageSize string, tradeType string)
ContractTpslOpenOrdersAsync (Query Open Take-profit and Stop-loss Orders)
func (*TriggerOrderClient) ContractTpslOrderAsync ¶
func (toc *TriggerOrderClient) ContractTpslOrderAsync(data chan responsetriggerorder.ContractTpslOrderResponse, request requesttiggerorder.ContractTriggerOrderRequest)
ContractTpslOrderAsync (Set a Take-profit and Stop-loss Order for an Existing Position)
func (*TriggerOrderClient) ContractTrackCancelAllAsync ¶
func (toc *TriggerOrderClient) ContractTrackCancelAllAsync(data chan responsetriggerorder.ContractTrackCancelAllResponse, symbol string, contractCode string, contractType string, direction string, offset string)
ContractTrackCancelAllAsync (Cancel All Trailing Orders)
func (*TriggerOrderClient) ContractTrackCancelAsync ¶
func (toc *TriggerOrderClient) ContractTrackCancelAsync(data chan responsetriggerorder.ContractTrackCancelResponse, symbol string, orderId string)
ContractTrackCancelAsync (Cancel a Trailing Order)
func (*TriggerOrderClient) ContractTrackHisOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTrackHisOrdersAsync(data chan responsetriggerorder.ContractTrackHisOrdersResponse, symbol string, contractCode string, status string, tradeType string, createDate string, pageIndex string, pageSize string, sortBy string)
ContractTrackHisOrdersAsync (Get History Trailing Orders)
func (*TriggerOrderClient) ContractTrackOpenOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTrackOpenOrdersAsync(data chan responsetriggerorder.ContractTrackOpenOrdersResponse, symbol string, contractCode string, tradeType string, pageIndex string, pageSize string)
ContractTrackOpenOrdersAsync (Current unfilled trailing order acquisition)
func (*TriggerOrderClient) ContractTrackOrderAsync ¶
func (toc *TriggerOrderClient) ContractTrackOrderAsync(data chan responsetriggerorder.ContractTrackOrderResponse, symbol string, contractType string, contractCode string, direction string, offset string, leverRate string, volume string, callbackRate string, activePrice string, orderPriceType string)
ContractTrackOrderAsync (Place a Trailing Order)
func (*TriggerOrderClient) ContractTriggerCancelAllAsync ¶
func (toc *TriggerOrderClient) ContractTriggerCancelAllAsync(data chan responsetriggerorder.ContractTriggerCancelAllResponse, symbol string, contractCode string, contractType string, direction string, offset string)
ContractTriggerCancelAllAsync (Cancel All Trigger Orders)
func (*TriggerOrderClient) ContractTriggerHisOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTriggerHisOrdersAsync(data chan responsetriggerorder.ContractTriggerHisOrdersResponse, symbol string, contractCode string, tradeType string, status string, createDate string, pageIndex string, pageSize string, sortBy string)
ContractTriggerHisOrdersAsync (Query Trigger Order History)
func (*TriggerOrderClient) ContractTriggerOpenOrdersAsync ¶
func (toc *TriggerOrderClient) ContractTriggerOpenOrdersAsync(data chan responsetriggerorder.ContractTriggerOpenOrdersResponse, symbol string, contractCode string, pageIndex string, pageSize string, tradeType string)
ContractTriggerOpenOrdersAsync (Query Trigger Order Open Orders)
func (*TriggerOrderClient) ContractTriggerOrderAsync ¶
func (toc *TriggerOrderClient) ContractTriggerOrderAsync(data chan responsetriggerorder.ContractTriggerOrderResponse, request requesttiggerorder.ContractTriggerOrderRequest)
ContractTriggerOrderAsync (Place Trigger Order)
func (*TriggerOrderClient) Init ¶
func (toc *TriggerOrderClient) Init(accessKey string, secretKey string, host string) *TriggerOrderClient
func (*TriggerOrderClient) SwapTriggerCancelAsync ¶
func (toc *TriggerOrderClient) SwapTriggerCancelAsync(data chan responsetriggerorder.SwapTriggerCancelResponse, symbol string, orderId string)
SwapTriggerCancelAsync (Cancel Trigger Order)