Documentation ¶
Index ¶
- type AccountsCrossClient
- func (p *AccountsCrossClient) Init(accessKey string, secretKey string, host string) *AccountsCrossClient
- func (p *AccountsCrossClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *AccountsCrossClient) Subscribe(symbol string, clientId string)
- func (p *AccountsCrossClient) UnSubscribe(symbol string, clientId string)
- type ContractInfoClient
- func (p *ContractInfoClient) Init(accessKey string, secretKey string, host string) *ContractInfoClient
- func (p *ContractInfoClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *ContractInfoClient) Subscribe(symbol string, clientId string)
- func (p *ContractInfoClient) UnSubscribe(symbol string, clientId string)
- type FundingRateClient
- func (p *FundingRateClient) Init(accessKey string, secretKey string, host string) *FundingRateClient
- func (p *FundingRateClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *FundingRateClient) Subscribe(symbol string, clientId string)
- func (p *FundingRateClient) UnSubscribe(symbol string, clientId string)
- type IsolatedAcountsClient
- func (p *IsolatedAcountsClient) Init(accessKey string, secretKey string, host string) *IsolatedAcountsClient
- func (p *IsolatedAcountsClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *IsolatedAcountsClient) Subscribe(symbol string, clientId string)
- func (p *IsolatedAcountsClient) UnSubscribe(symbol string, clientId string)
- type IsolatedMatchOrdersClient
- func (p *IsolatedMatchOrdersClient) Init(accessKey string, secretKey string, host string) *IsolatedMatchOrdersClient
- func (p *IsolatedMatchOrdersClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *IsolatedMatchOrdersClient) Subscribe(symbol string, clientId string)
- func (p *IsolatedMatchOrdersClient) UnSubscribe(symbol string, clientId string)
- type IsolatedOrdersClient
- func (p *IsolatedOrdersClient) Init(accessKey string, secretKey string, host string) *IsolatedOrdersClient
- func (p *IsolatedOrdersClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *IsolatedOrdersClient) Subscribe(symbol string, clientId string)
- func (p *IsolatedOrdersClient) UnSubscribe(symbol string, clientId string)
- type IsolatedPositionsClient
- func (p *IsolatedPositionsClient) Init(accessKey string, secretKey string, host string) *IsolatedPositionsClient
- func (p *IsolatedPositionsClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *IsolatedPositionsClient) Subscribe(symbol string, clientId string)
- func (p *IsolatedPositionsClient) UnSubscribe(symbol string, clientId string)
- type IsolatedTriggerOrderClient
- func (p *IsolatedTriggerOrderClient) Init(accessKey string, secretKey string, host string) *IsolatedTriggerOrderClient
- func (p *IsolatedTriggerOrderClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *IsolatedTriggerOrderClient) Subscribe(symbol string, clientId string)
- func (p *IsolatedTriggerOrderClient) UnSubscribe(symbol string, clientId string)
- type LiquidationOrdersClient
- func (p *LiquidationOrdersClient) Init(accessKey string, secretKey string, host string) *LiquidationOrdersClient
- func (p *LiquidationOrdersClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *LiquidationOrdersClient) Subscribe(symbol string, clientId string)
- func (p *LiquidationOrdersClient) UnSubscribe(symbol string, clientId string)
- type MatchOrdersCrossClient
- func (p *MatchOrdersCrossClient) Init(accessKey string, secretKey string, host string) *MatchOrdersCrossClient
- func (p *MatchOrdersCrossClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *MatchOrdersCrossClient) Subscribe(symbol string, clientId string)
- func (p *MatchOrdersCrossClient) UnSubscribe(symbol string, clientId string)
- type OrdersCrossClient
- func (p *OrdersCrossClient) Init(accessKey string, secretKey string, host string) *OrdersCrossClient
- func (p *OrdersCrossClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *OrdersCrossClient) Subscribe(symbol string, clientId string)
- func (p *OrdersCrossClient) UnSubscribe(symbol string, clientId string)
- type PositionsCrossClient
- func (p *PositionsCrossClient) Init(accessKey string, secretKey string, host string) *PositionsCrossClient
- func (p *PositionsCrossClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *PositionsCrossClient) Subscribe(symbol string, clientId string)
- func (p *PositionsCrossClient) UnSubscribe(symbol string, clientId string)
- type TriggerOrderCrossClient
- func (p *TriggerOrderCrossClient) Init(accessKey string, secretKey string, host string) *TriggerOrderCrossClient
- func (p *TriggerOrderCrossClient) SetHandler(authenticationResponseHandler ws.AuthenticationV2ResponseHandler, ...)
- func (p *TriggerOrderCrossClient) Subscribe(symbol string, clientId string)
- func (p *TriggerOrderCrossClient) UnSubscribe(symbol string, clientId string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsCrossClient ¶
type AccountsCrossClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*AccountsCrossClient) Init ¶
func (p *AccountsCrossClient) Init(accessKey string, secretKey string, host string) *AccountsCrossClient
Initializer
func (*AccountsCrossClient) SetHandler ¶
func (p *AccountsCrossClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*AccountsCrossClient) Subscribe ¶
func (p *AccountsCrossClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*AccountsCrossClient) UnSubscribe ¶
func (p *AccountsCrossClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type ContractInfoClient ¶
type ContractInfoClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*ContractInfoClient) Init ¶
func (p *ContractInfoClient) Init(accessKey string, secretKey string, host string) *ContractInfoClient
Initializer
func (*ContractInfoClient) SetHandler ¶
func (p *ContractInfoClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*ContractInfoClient) Subscribe ¶
func (p *ContractInfoClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*ContractInfoClient) UnSubscribe ¶
func (p *ContractInfoClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type FundingRateClient ¶
type FundingRateClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*FundingRateClient) Init ¶
func (p *FundingRateClient) Init(accessKey string, secretKey string, host string) *FundingRateClient
Initializer
func (*FundingRateClient) SetHandler ¶
func (p *FundingRateClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*FundingRateClient) Subscribe ¶
func (p *FundingRateClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*FundingRateClient) UnSubscribe ¶
func (p *FundingRateClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type IsolatedAcountsClient ¶
type IsolatedAcountsClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*IsolatedAcountsClient) Init ¶
func (p *IsolatedAcountsClient) Init(accessKey string, secretKey string, host string) *IsolatedAcountsClient
Initializer
func (*IsolatedAcountsClient) SetHandler ¶
func (p *IsolatedAcountsClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*IsolatedAcountsClient) Subscribe ¶
func (p *IsolatedAcountsClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*IsolatedAcountsClient) UnSubscribe ¶
func (p *IsolatedAcountsClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type IsolatedMatchOrdersClient ¶
type IsolatedMatchOrdersClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*IsolatedMatchOrdersClient) Init ¶
func (p *IsolatedMatchOrdersClient) Init(accessKey string, secretKey string, host string) *IsolatedMatchOrdersClient
Initializer
func (*IsolatedMatchOrdersClient) SetHandler ¶
func (p *IsolatedMatchOrdersClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*IsolatedMatchOrdersClient) Subscribe ¶
func (p *IsolatedMatchOrdersClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*IsolatedMatchOrdersClient) UnSubscribe ¶
func (p *IsolatedMatchOrdersClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type IsolatedOrdersClient ¶
type IsolatedOrdersClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*IsolatedOrdersClient) Init ¶
func (p *IsolatedOrdersClient) Init(accessKey string, secretKey string, host string) *IsolatedOrdersClient
Initializer
func (*IsolatedOrdersClient) SetHandler ¶
func (p *IsolatedOrdersClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*IsolatedOrdersClient) Subscribe ¶
func (p *IsolatedOrdersClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*IsolatedOrdersClient) UnSubscribe ¶
func (p *IsolatedOrdersClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type IsolatedPositionsClient ¶
type IsolatedPositionsClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*IsolatedPositionsClient) Init ¶
func (p *IsolatedPositionsClient) Init(accessKey string, secretKey string, host string) *IsolatedPositionsClient
Initializer
func (*IsolatedPositionsClient) SetHandler ¶
func (p *IsolatedPositionsClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*IsolatedPositionsClient) Subscribe ¶
func (p *IsolatedPositionsClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*IsolatedPositionsClient) UnSubscribe ¶
func (p *IsolatedPositionsClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type IsolatedTriggerOrderClient ¶
type IsolatedTriggerOrderClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*IsolatedTriggerOrderClient) Init ¶
func (p *IsolatedTriggerOrderClient) Init(accessKey string, secretKey string, host string) *IsolatedTriggerOrderClient
Initializer
func (*IsolatedTriggerOrderClient) SetHandler ¶
func (p *IsolatedTriggerOrderClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*IsolatedTriggerOrderClient) Subscribe ¶
func (p *IsolatedTriggerOrderClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*IsolatedTriggerOrderClient) UnSubscribe ¶
func (p *IsolatedTriggerOrderClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type LiquidationOrdersClient ¶
type LiquidationOrdersClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*LiquidationOrdersClient) Init ¶
func (p *LiquidationOrdersClient) Init(accessKey string, secretKey string, host string) *LiquidationOrdersClient
Initializer
func (*LiquidationOrdersClient) SetHandler ¶
func (p *LiquidationOrdersClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*LiquidationOrdersClient) Subscribe ¶
func (p *LiquidationOrdersClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*LiquidationOrdersClient) UnSubscribe ¶
func (p *LiquidationOrdersClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type MatchOrdersCrossClient ¶
type MatchOrdersCrossClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*MatchOrdersCrossClient) Init ¶
func (p *MatchOrdersCrossClient) Init(accessKey string, secretKey string, host string) *MatchOrdersCrossClient
Initializer
func (*MatchOrdersCrossClient) SetHandler ¶
func (p *MatchOrdersCrossClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*MatchOrdersCrossClient) Subscribe ¶
func (p *MatchOrdersCrossClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*MatchOrdersCrossClient) UnSubscribe ¶
func (p *MatchOrdersCrossClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type OrdersCrossClient ¶
type OrdersCrossClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*OrdersCrossClient) Init ¶
func (p *OrdersCrossClient) Init(accessKey string, secretKey string, host string) *OrdersCrossClient
Initializer
func (*OrdersCrossClient) SetHandler ¶
func (p *OrdersCrossClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*OrdersCrossClient) Subscribe ¶
func (p *OrdersCrossClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*OrdersCrossClient) UnSubscribe ¶
func (p *OrdersCrossClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type PositionsCrossClient ¶
type PositionsCrossClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*PositionsCrossClient) Init ¶
func (p *PositionsCrossClient) Init(accessKey string, secretKey string, host string) *PositionsCrossClient
Initializer
func (*PositionsCrossClient) SetHandler ¶
func (p *PositionsCrossClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*PositionsCrossClient) Subscribe ¶
func (p *PositionsCrossClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*PositionsCrossClient) UnSubscribe ¶
func (p *PositionsCrossClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
type TriggerOrderCrossClient ¶
type TriggerOrderCrossClient struct {
ws.WebSocketV2ClientBase
}
Responsible to handle Trade data from WebSocket
func (*TriggerOrderCrossClient) Init ¶
func (p *TriggerOrderCrossClient) Init(accessKey string, secretKey string, host string) *TriggerOrderCrossClient
Initializer
func (*TriggerOrderCrossClient) SetHandler ¶
func (p *TriggerOrderCrossClient) SetHandler( authenticationResponseHandler ws.AuthenticationV2ResponseHandler, responseHandler ws.ResponseHandler)
Set callback handler
func (*TriggerOrderCrossClient) Subscribe ¶
func (p *TriggerOrderCrossClient) Subscribe(symbol string, clientId string)
Subscribe latest completed trade in tick by tick mode
func (*TriggerOrderCrossClient) UnSubscribe ¶
func (p *TriggerOrderCrossClient) UnSubscribe(symbol string, clientId string)
Unsubscribe trade
Source Files ¶
- accounts_cross_client.go
- contract_info_client.go
- funding_rate_client.go
- isolated_acounts_client.go
- isolated_match_orders_client.go
- isolated_orders_client.go
- isolated_positions_client.go
- isolated_trigger_order_client.go
- liquidation_orders_client.go
- match_orders_cross_client.go
- orders_cross_client.go
- positions_cross_client.go
- trigger_order_cross_client.go