ws

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 OnReqKLineResponse

type OnReqKLineResponse func(*market.ReqKLineResponse)

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 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 OnSubKLineResponse

type OnSubKLineResponse func(*market.SubKLineResponse)

type OnSubLiquidationOrdersResponse

type OnSubLiquidationOrdersResponse func(*notify.SubLiquidationOrdersResponse)

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)

------------------------------------------------------------- premium index kline start

type OnSubTradeDetailResponse

type OnSubTradeDetailResponse func(*market.SubTradeDetailResponse)

type OnSubTriggerOrderResponse

type OnSubTriggerOrderResponse func(*notify.SubTriggerOrderResponse)

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) 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) SubPremiumIndexKLine

func (wsIx *WSIndexClient) SubPremiumIndexKLine(contractCode string, period string, callbackFun OnSubPremiumIndexKLineResponse, id string)

func (*WSIndexClient) UnreqBasis

func (wsIx *WSIndexClient) UnreqBasis(contractCode string, period string, from int64, to int64, basisPriceType string, id string)

func (*WSIndexClient) UnreqEstimatedRateKLine

func (wsIx *WSIndexClient) UnreqEstimatedRateKLine(contractCode string, period string, from int64, to int64, id string)

func (*WSIndexClient) UnreqPremiumIndexKLine

func (wsIx *WSIndexClient) UnreqPremiumIndexKLine(contractCode string, period string, from int64, to int64, id string)

func (*WSIndexClient) UnsubBasis

func (wsIx *WSIndexClient) UnsubBasis(contractCode string, period string, basisPriceType string, id string)

func (*WSIndexClient) UnsubEstimatedRateKLine

func (wsIx *WSIndexClient) UnsubEstimatedRateKLine(contractCode string, period string, id string)

func (*WSIndexClient) UnsubPremiumIndexKLine

func (wsIx *WSIndexClient) UnsubPremiumIndexKLine(contractCode string, period string, 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)

func (*WSMarketClient) UnreqKLine

func (wsMk *WSMarketClient) UnreqKLine(contractCode string, period string, id string)

func (*WSMarketClient) UnreqTradeDetail

func (wsMk *WSMarketClient) UnreqTradeDetail(contractCode string, id string)

func (*WSMarketClient) UnsubBBO

func (wsMk *WSMarketClient) UnsubBBO(contractCode string, id string)

func (*WSMarketClient) UnsubDepth

func (wsMk *WSMarketClient) UnsubDepth(contractCode string, fcType string, id string)

func (*WSMarketClient) UnsubDetail

func (wsMk *WSMarketClient) UnsubDetail(contractCode string, id string)

func (*WSMarketClient) UnsubIncrementalDepth

func (wsMk *WSMarketClient) UnsubIncrementalDepth(contractCode string, size string, id string)

func (*WSMarketClient) UnsubKLine

func (wsMk *WSMarketClient) UnsubKLine(contractCode string, period string, id string)

func (*WSMarketClient) UnsubTradeDetail

func (wsMk *WSMarketClient) UnsubTradeDetail(contractCode string, id string)

type WSNotifyClient

type WSNotifyClient struct {
	WebSocketOp
}

func (*WSNotifyClient) Init

func (wsNf *WSNotifyClient) Init(accessKey string, secretKey string, host string) *WSNotifyClient

func (*WSNotifyClient) SubAcounts

func (wsNf *WSNotifyClient) SubAcounts(contractCode string, callbackFun OnSubAccountsResponse, 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) SubMatchOrders

func (wsNf *WSNotifyClient) SubMatchOrders(contractCode string, callbackFun OnSubMatchOrdersResponse, cid string)

func (*WSNotifyClient) SubOrders

func (wsNf *WSNotifyClient) SubOrders(contractCode string, callbackFun OnSubOrdersResponse, cid string)

func (*WSNotifyClient) SubPositions

func (wsNf *WSNotifyClient) SubPositions(contractCode string, callbackFun OnSubPositionsResponse, cid string)

func (*WSNotifyClient) SubTriggerOrder

func (wsNf *WSNotifyClient) SubTriggerOrder(contractCode string, callbackFun OnSubTriggerOrderResponse, cid string)

func (*WSNotifyClient) UnsubAccounts

func (wsNf *WSNotifyClient) UnsubAccounts(contractCode 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)

func (*WSNotifyClient) UnsubMathOrders

func (wsNf *WSNotifyClient) UnsubMathOrders(contractCode string, cid string)

func (*WSNotifyClient) UnsubOrders

func (wsNf *WSNotifyClient) UnsubOrders(contractCode string, cid string)

func (*WSNotifyClient) UnsubPositions

func (wsNf *WSNotifyClient) UnsubPositions(contractCode string, cid string)

func (*WSNotifyClient) UnsubTriggerOrder

func (wsNf *WSNotifyClient) UnsubTriggerOrder(contractCode string, cid string)

type WebSocketOp

type WebSocketOp struct {
	// contains filtered or unexported fields
}

Directories

Path Synopsis
response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL