Documentation ¶
Index ¶
- type MethonInfo
- type OnReqBasisResponse
- type OnReqEstimatedRateResponse
- type OnReqIndexKLineResponse
- type OnReqKLineResponse
- type OnReqMarkPriceKLineResponse
- type OnReqPremiumIndexKLineResponse
- type OnReqTradeDetailResponse
- type OnSubAccountsResponse
- type OnSubBBOResponse
- type OnSubBasisResponse
- type OnSubContractElementsResponse
- type OnSubContractInfoResponse
- type OnSubDepthResponse
- type OnSubDetailResponse
- type OnSubEstimatedRateResponse
- type OnSubFundingRateResponse
- type OnSubHeartbeatResponse
- type OnSubIndexKLineResponse
- type OnSubKLineResponse
- type OnSubLiquidationOrdersResponse
- type OnSubMarkPriceKLineResponse
- type OnSubMatchOrdersResponse
- type OnSubOrdersResponse
- type OnSubPositionsResponse
- type OnSubPremiumIndexKLineResponse
- type OnSubTradeDetailResponse
- type OnSubTriggerOrderResponse
- type WSCenterNotifyClient
- type WSIndexClient
- func (wsIx *WSIndexClient) Init(host string) *WSIndexClient
- func (wsIx *WSIndexClient) ReqBasis(contractCode string, period string, callbackFun OnReqBasisResponse, from int64, ...)
- func (wsIx *WSIndexClient) ReqEstimatedRateKLine(contractCode string, period string, callbackFun OnReqEstimatedRateResponse, ...)
- func (wsIx *WSIndexClient) ReqIndexKLine(contractCode string, period string, callbackFun OnReqIndexKLineResponse, ...)
- func (wsIx *WSIndexClient) ReqMarkPriceKLine(contractCode string, period string, callbackFun OnReqMarkPriceKLineResponse, ...)
- func (wsIx *WSIndexClient) ReqPremiumIndexKLine(contractCode string, period string, callbackFun OnReqPremiumIndexKLineResponse, ...)
- func (wsIx *WSIndexClient) SubBasis(contractCode string, period string, callbackFun OnSubBasisResponse, ...)
- func (wsIx *WSIndexClient) SubEstimatedRateKLine(contractCode string, period string, callbackFun OnSubEstimatedRateResponse, ...)
- func (wsIx *WSIndexClient) SubIndexKLine(contractCode string, period string, callbackFun OnSubIndexKLineResponse, ...)
- func (wsIx *WSIndexClient) SubMarkPriceKLine(contractCode string, period string, callbackFun OnSubMarkPriceKLineResponse, ...)
- func (wsIx *WSIndexClient) SubPremiumIndexKLine(contractCode string, period string, callbackFun OnSubPremiumIndexKLineResponse, ...)
- type WSMarketClient
- func (wsMk *WSMarketClient) Init(host string) *WSMarketClient
- func (wsMk *WSMarketClient) ReqKLine(contractCode string, period string, callbackFun OnReqKLineResponse, from int64, ...)
- func (wsMk *WSMarketClient) ReqTradeDetail(contractCode string, callbackFun OnReqTradeDetailResponse, id string)
- func (wsMk *WSMarketClient) SubBBO(contractCode string, callbackFun OnSubBBOResponse, id string)
- func (wsMk *WSMarketClient) SubDepth(contractCode string, fcType string, callbackFun OnSubDepthResponse, id string)
- func (wsMk *WSMarketClient) SubDetail(contractCode string, callbackFun OnSubDetailResponse, id string)
- func (wsMk *WSMarketClient) SubIncrementalDepth(contractCode string, size string, callbackFun OnSubDepthResponse, id string)
- func (wsMk *WSMarketClient) SubKLine(contractCode string, period string, callbackFun OnSubKLineResponse, id string)
- func (wsMk *WSMarketClient) SubTradeDetail(contractCode string, callbackFun OnSubTradeDetailResponse, id string)
- type WSNotifyClient
- func (wsNf *WSNotifyClient) Init(accessKey string, secretKey string, host string) *WSNotifyClient
- func (wsNf *WSNotifyClient) IsolatdUnsubPositions(contractCode string, cid string)
- func (wsNf *WSNotifyClient) IsolatedSubAcounts(contractCode string, callbackFun OnSubAccountsResponse, cid string)
- func (wsNf *WSNotifyClient) IsolatedSubMatchOrders(contractCode string, callbackFun OnSubMatchOrdersResponse, cid string)
- func (wsNf *WSNotifyClient) IsolatedSubOrders(contractCode string, callbackFun OnSubOrdersResponse, cid string)
- func (wsNf *WSNotifyClient) IsolatedSubPositions(contractCode string, callbackFun OnSubPositionsResponse, cid string)
- func (wsNf *WSNotifyClient) IsolatedSubTriggerOrder(contractCode string, callbackFun OnSubTriggerOrderResponse, cid string)
- func (wsNf *WSNotifyClient) IsolatedUnsubAccounts(contractCode string, cid string)
- func (wsNf *WSNotifyClient) IsolatedUnsubMathOrders(contractCode string, cid string)
- func (wsNf *WSNotifyClient) IsolatedUnsubOrders(contractCode string, cid string)
- func (wsNf *WSNotifyClient) IsolatedUnsubTriggerOrder(contractCode string, cid string)
- func (wsNf *WSNotifyClient) SubContractElements(symbol string, callbackFun OnSubContractElementsResponse, cid string)
- func (wsNf *WSNotifyClient) SubContractInfo(contractCode string, callbackFun OnSubContractInfoResponse, cid string)
- func (wsNf *WSNotifyClient) SubFundingRate(contractCode string, callbackFun OnSubFundingRateResponse, cid string)
- func (wsNf *WSNotifyClient) SubLiquidationOrders(contractCode string, callbackFun OnSubLiquidationOrdersResponse, cid string)
- func (wsNf *WSNotifyClient) UnSubContractElements(symbol string, cid string)
- func (wsNf *WSNotifyClient) UnsubContractInfo(contractCode string, cid string)
- func (wsNf *WSNotifyClient) UnsubFundingRate(contractCode string, cid string)
- func (wsNf *WSNotifyClient) UnsubLiquidationOrders(contractCode string, cid string)
- type WebSocketOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MethonInfo ¶
type MethonInfo struct {
// contains filtered or unexported fields
}
func (*MethonInfo) Init ¶
func (wsOp *MethonInfo) Init(fun interface{}, param reflect.Type) *MethonInfo
type OnReqBasisResponse ¶
type OnReqBasisResponse func(*index.ReqBasisResponse)
type OnReqEstimatedRateResponse ¶
type OnReqEstimatedRateResponse func(*index.ReqIndexKLineResponse)
type OnReqIndexKLineResponse ¶
type OnReqIndexKLineResponse func(*index.ReqIndexKLineResponse)
type OnReqKLineResponse ¶
type OnReqKLineResponse func(*market.ReqKLineResponse)
type OnReqMarkPriceKLineResponse ¶
type OnReqMarkPriceKLineResponse func(*index.ReqIndexKLineResponse)
type OnReqPremiumIndexKLineResponse ¶
type OnReqPremiumIndexKLineResponse func(*index.ReqIndexKLineResponse)
type OnReqTradeDetailResponse ¶
type OnReqTradeDetailResponse func(*market.ReqTradeDetailResponse)
type OnSubAccountsResponse ¶
type OnSubAccountsResponse func(*notify.SubAccountsResponse)
type OnSubBBOResponse ¶
type OnSubBBOResponse func(*market.SubBBOResponse)
type OnSubBasisResponse ¶
type OnSubBasisResponse func(*index.SubBasiesResponse)
------------------------------------------------------------- basis start
type OnSubContractElementsResponse ¶
type OnSubContractElementsResponse func(*notify.SubContractElementsResponse)
type OnSubContractInfoResponse ¶
type OnSubContractInfoResponse func(*notify.SubContractInfoResponse)
type OnSubDepthResponse ¶
type OnSubDepthResponse func(*market.SubDepthResponse)
type OnSubDetailResponse ¶
type OnSubDetailResponse func(*market.SubKLineResponse)
------------------------------------------------------------- detail start
type OnSubEstimatedRateResponse ¶
type OnSubEstimatedRateResponse func(*index.SubIndexKLineResponse)
type OnSubFundingRateResponse ¶
type OnSubFundingRateResponse func(*notify.SubFundingRateResponse)
type OnSubHeartbeatResponse ¶
type OnSubHeartbeatResponse func(*centernotify.SubHeartbeatResponse)
------------------------------------------------------------- heartbeat start
type OnSubIndexKLineResponse ¶
type OnSubIndexKLineResponse func(*index.SubIndexKLineResponse)
type OnSubKLineResponse ¶
type OnSubKLineResponse func(*market.SubKLineResponse)
type OnSubLiquidationOrdersResponse ¶
type OnSubLiquidationOrdersResponse func(*notify.SubLiquidationOrdersResponse)
type OnSubMarkPriceKLineResponse ¶
type OnSubMarkPriceKLineResponse func(*index.SubIndexKLineResponse)
type OnSubMatchOrdersResponse ¶
type OnSubMatchOrdersResponse func(*notify.SubOrdersResponse)
type OnSubOrdersResponse ¶
type OnSubOrdersResponse func(*notify.SubOrdersResponse)
type OnSubPositionsResponse ¶
type OnSubPositionsResponse func(*notify.SubPositionsResponse)
type OnSubPremiumIndexKLineResponse ¶
type OnSubPremiumIndexKLineResponse func(*index.SubIndexKLineResponse)
type OnSubTradeDetailResponse ¶
type OnSubTradeDetailResponse func(*market.SubTradeDetailResponse)
type OnSubTriggerOrderResponse ¶
type OnSubTriggerOrderResponse func(*notify.SubTriggerOrderResponse)
type WSCenterNotifyClient ¶
type WSCenterNotifyClient struct {
WebSocketOp
}
func (*WSCenterNotifyClient) Init ¶
func (wsNf *WSCenterNotifyClient) Init(accessKey string, secretKey string, host string) *WSCenterNotifyClient
func (*WSCenterNotifyClient) SubHeartbeat ¶
func (wsNf *WSCenterNotifyClient) SubHeartbeat(service string, callbackFun OnSubHeartbeatResponse, cid string)
func (*WSCenterNotifyClient) UnsubHeartbeat ¶
func (wsNf *WSCenterNotifyClient) UnsubHeartbeat(service string, cid string)
type WSIndexClient ¶
type WSIndexClient struct {
WebSocketOp
}
func (*WSIndexClient) Init ¶
func (wsIx *WSIndexClient) Init(host string) *WSIndexClient
func (*WSIndexClient) ReqBasis ¶
func (wsIx *WSIndexClient) ReqBasis(contractCode string, period string, callbackFun OnReqBasisResponse, from int64, to int64, basisPriceType string, id string)
func (*WSIndexClient) ReqEstimatedRateKLine ¶
func (wsIx *WSIndexClient) ReqEstimatedRateKLine(contractCode string, period string, callbackFun OnReqEstimatedRateResponse, from int64, to int64, id string)
func (*WSIndexClient) ReqIndexKLine ¶
func (wsIx *WSIndexClient) ReqIndexKLine(contractCode string, period string, callbackFun OnReqIndexKLineResponse, from int64, to int64, id string)
func (*WSIndexClient) ReqMarkPriceKLine ¶
func (wsIx *WSIndexClient) ReqMarkPriceKLine(contractCode string, period string, callbackFun OnReqMarkPriceKLineResponse, from int64, to int64, id string)
func (*WSIndexClient) ReqPremiumIndexKLine ¶
func (wsIx *WSIndexClient) ReqPremiumIndexKLine(contractCode string, period string, callbackFun OnReqPremiumIndexKLineResponse, from int64, to int64, id string)
func (*WSIndexClient) SubBasis ¶
func (wsIx *WSIndexClient) SubBasis(contractCode string, period string, callbackFun OnSubBasisResponse, basisPriceType string, id string)
func (*WSIndexClient) SubEstimatedRateKLine ¶
func (wsIx *WSIndexClient) SubEstimatedRateKLine(contractCode string, period string, callbackFun OnSubEstimatedRateResponse, id string)
func (*WSIndexClient) SubIndexKLine ¶
func (wsIx *WSIndexClient) SubIndexKLine(contractCode string, period string, callbackFun OnSubIndexKLineResponse, id string)
func (*WSIndexClient) SubMarkPriceKLine ¶
func (wsIx *WSIndexClient) SubMarkPriceKLine(contractCode string, period string, callbackFun OnSubMarkPriceKLineResponse, id string)
func (*WSIndexClient) SubPremiumIndexKLine ¶
func (wsIx *WSIndexClient) SubPremiumIndexKLine(contractCode string, period string, callbackFun OnSubPremiumIndexKLineResponse, id string)
type WSMarketClient ¶
type WSMarketClient struct {
WebSocketOp
}
func (*WSMarketClient) Init ¶
func (wsMk *WSMarketClient) Init(host string) *WSMarketClient
func (*WSMarketClient) ReqKLine ¶
func (wsMk *WSMarketClient) ReqKLine(contractCode string, period string, callbackFun OnReqKLineResponse, from int64, to int64, id string)
func (*WSMarketClient) ReqTradeDetail ¶
func (wsMk *WSMarketClient) ReqTradeDetail(contractCode string, callbackFun OnReqTradeDetailResponse, id string)
func (*WSMarketClient) SubBBO ¶
func (wsMk *WSMarketClient) SubBBO(contractCode string, callbackFun OnSubBBOResponse, id string)
func (*WSMarketClient) SubDepth ¶
func (wsMk *WSMarketClient) SubDepth(contractCode string, fcType string, callbackFun OnSubDepthResponse, id string)
func (*WSMarketClient) SubDetail ¶
func (wsMk *WSMarketClient) SubDetail(contractCode string, callbackFun OnSubDetailResponse, id string)
func (*WSMarketClient) SubIncrementalDepth ¶
func (wsMk *WSMarketClient) SubIncrementalDepth(contractCode string, size string, callbackFun OnSubDepthResponse, id string)
func (*WSMarketClient) SubKLine ¶
func (wsMk *WSMarketClient) SubKLine(contractCode string, period string, callbackFun OnSubKLineResponse, id string)
func (*WSMarketClient) SubTradeDetail ¶
func (wsMk *WSMarketClient) SubTradeDetail(contractCode string, callbackFun OnSubTradeDetailResponse, id string)
type WSNotifyClient ¶
type WSNotifyClient struct {
WebSocketOp
}
func (*WSNotifyClient) Init ¶
func (wsNf *WSNotifyClient) Init(accessKey string, secretKey string, host string) *WSNotifyClient
func (*WSNotifyClient) IsolatdUnsubPositions ¶
func (wsNf *WSNotifyClient) IsolatdUnsubPositions(contractCode string, cid string)
func (*WSNotifyClient) IsolatedSubAcounts ¶
func (wsNf *WSNotifyClient) IsolatedSubAcounts(contractCode string, callbackFun OnSubAccountsResponse, cid string)
func (*WSNotifyClient) IsolatedSubMatchOrders ¶
func (wsNf *WSNotifyClient) IsolatedSubMatchOrders(contractCode string, callbackFun OnSubMatchOrdersResponse, cid string)
func (*WSNotifyClient) IsolatedSubOrders ¶
func (wsNf *WSNotifyClient) IsolatedSubOrders(contractCode string, callbackFun OnSubOrdersResponse, cid string)
func (*WSNotifyClient) IsolatedSubPositions ¶
func (wsNf *WSNotifyClient) IsolatedSubPositions(contractCode string, callbackFun OnSubPositionsResponse, cid string)
func (*WSNotifyClient) IsolatedSubTriggerOrder ¶
func (wsNf *WSNotifyClient) IsolatedSubTriggerOrder(contractCode string, callbackFun OnSubTriggerOrderResponse, cid string)
func (*WSNotifyClient) IsolatedUnsubAccounts ¶
func (wsNf *WSNotifyClient) IsolatedUnsubAccounts(contractCode string, cid string)
func (*WSNotifyClient) IsolatedUnsubMathOrders ¶
func (wsNf *WSNotifyClient) IsolatedUnsubMathOrders(contractCode string, cid string)
func (*WSNotifyClient) IsolatedUnsubOrders ¶
func (wsNf *WSNotifyClient) IsolatedUnsubOrders(contractCode string, cid string)
func (*WSNotifyClient) IsolatedUnsubTriggerOrder ¶
func (wsNf *WSNotifyClient) IsolatedUnsubTriggerOrder(contractCode string, cid string)
func (*WSNotifyClient) SubContractElements ¶
func (wsNf *WSNotifyClient) SubContractElements(symbol string, callbackFun OnSubContractElementsResponse, cid string)
func (*WSNotifyClient) SubContractInfo ¶
func (wsNf *WSNotifyClient) SubContractInfo(contractCode string, callbackFun OnSubContractInfoResponse, cid string)
func (*WSNotifyClient) SubFundingRate ¶
func (wsNf *WSNotifyClient) SubFundingRate(contractCode string, callbackFun OnSubFundingRateResponse, cid string)
func (*WSNotifyClient) SubLiquidationOrders ¶
func (wsNf *WSNotifyClient) SubLiquidationOrders(contractCode string, callbackFun OnSubLiquidationOrdersResponse, cid string)
func (*WSNotifyClient) UnSubContractElements ¶
func (wsNf *WSNotifyClient) UnSubContractElements(symbol string, cid string)
func (*WSNotifyClient) UnsubContractInfo ¶
func (wsNf *WSNotifyClient) UnsubContractInfo(contractCode string, cid string)
func (*WSNotifyClient) UnsubFundingRate ¶
func (wsNf *WSNotifyClient) UnsubFundingRate(contractCode string, cid string)
func (*WSNotifyClient) UnsubLiquidationOrders ¶
func (wsNf *WSNotifyClient) UnsubLiquidationOrders(contractCode string, cid string)
type WebSocketOp ¶
type WebSocketOp struct {
// contains filtered or unexported fields
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.