restclient

package
v0.0.0-...-0434655 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountClient

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

func (*AccountClient) ConfigCod

func (c *AccountClient) ConfigCod(paramMap map[string]interface{}) (*account.PostCodResponse, error)

func (*AccountClient) GetAccounts

func (c *AccountClient) GetAccounts(currency string) (*account.GetAccountResponse, error)

func (*AccountClient) GetCodConfig

func (c *AccountClient) GetCodConfig(paramMap map[string]interface{}) (*account.GetCodResponse, error)

func (*AccountClient) GetMmpState

func (c *AccountClient) GetMmpState(paramMap map[string]interface{}) (*account.GetMmpResponse, error)

func (*AccountClient) GetPositions

func (c *AccountClient) GetPositions(paramMap map[string]interface{}) (*account.GetPositionsResponse, error)

func (*AccountClient) GetTransactionLogs

func (c *AccountClient) GetTransactionLogs(paramMap map[string]interface{}) (*account.GetTransactionLogsResponse, error)

func (*AccountClient) GetUserDeliveries

func (c *AccountClient) GetUserDeliveries(paramMap map[string]interface{}) (*account.GetUserDeliveriesResponse, error)

func (*AccountClient) GetUserSettlements

func (c *AccountClient) GetUserSettlements(paramMap map[string]interface{}) (*account.GetUserSettlementsResponse, error)

func (*AccountClient) Init

func (c *AccountClient) Init(host string, accessKey string, secretKey string) *AccountClient

func (*AccountClient) ResetMmpState

func (c *AccountClient) ResetMmpState(paramMap map[string]interface{}) (*account.ResetMmpStateResponse, error)

func (*AccountClient) UpdateMmpConfig

func (c *AccountClient) UpdateMmpConfig(paramMap map[string]interface{}) (*account.UpdateMmpResponse, error)

type BlockTradeClient

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

func (*BlockTradeClient) Init

func (c *BlockTradeClient) Init(host string, accessKey string, secretKey string) *BlockTradeClient

func (*BlockTradeClient) NewParadigmBlockOrders

func (c *BlockTradeClient) NewParadigmBlockOrders(paramMap map[string]interface{}) (*blocktrade.NewBlockTradeResponse, error)

func (*BlockTradeClient) QueryParadigmBlockOrders

func (c *BlockTradeClient) QueryParadigmBlockOrders(paramMap map[string]interface{}) (*blocktrade.QueryBlockTradeResponse, error)

func (*BlockTradeClient) QueryParadigmBlockOrdersByPlatform

func (c *BlockTradeClient) QueryParadigmBlockOrdersByPlatform(paramMap map[string]interface{}) (*blocktrade.QueryBlockTradeByPlatformResponse, error)

type MarketClient

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

func (*MarketClient) GetDeliveryInfo

func (c *MarketClient) GetDeliveryInfo(paramMap map[string]interface{}) (*market.GetDeliveryInfoResponse, error)

func (*MarketClient) GetFundingRate

func (c *MarketClient) GetFundingRate(instrumentId string) (*market.GetFundingRateResponse, error)

func (*MarketClient) GetFundingRateHistory

func (c *MarketClient) GetFundingRateHistory(paramMap map[string]interface{}) (*market.GetFundingRateHistoryResponse, error)

func (*MarketClient) GetIndex

func (c *MarketClient) GetIndex(currency string) (*market.GetIndexResponse, error)

func (*MarketClient) GetInstruments

func (c *MarketClient) GetInstruments(paramMap map[string]interface{}) (*market.GetInstrumentsResponse, error)

func (*MarketClient) GetKlines

func (c *MarketClient) GetKlines(paramMap map[string]interface{}) (*market.GetKlinesResponse, error)

func (*MarketClient) GetMarketSummary

func (c *MarketClient) GetMarketSummary(paramMap map[string]interface{}) (*market.GetMarketSummaryResponse, error)

func (*MarketClient) GetMarketTrade

func (c *MarketClient) GetMarketTrade(paramMap map[string]interface{}) (*market.GetMarketTradeResponse, error)

func (*MarketClient) GetOrderBook

func (c *MarketClient) GetOrderBook(paramMap map[string]interface{}) (*market.GetOrderBookResponse, error)

func (*MarketClient) GetTicker

func (c *MarketClient) GetTicker(instrumentId string) (*market.GetTickerResponse, error)

func (*MarketClient) GetTotalVolume

func (c *MarketClient) GetTotalVolume() (*market.GetTotalVolumeResponse, error)

func (*MarketClient) Init

func (c *MarketClient) Init(host string) *MarketClient

type OrderClient

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

func (*OrderClient) AmendBatchOrders

func (c *OrderClient) AmendBatchOrders(paramMap map[string]interface{}) (*order.AmendBatchOrdersResponse, error)

func (*OrderClient) AmendOrder

func (c *OrderClient) AmendOrder(paramMap map[string]interface{}) (*order.AmendOrderResponse, error)

func (*OrderClient) CancelOrders

func (c *OrderClient) CancelOrders(paramMap map[string]interface{}) (*order.NewCancelOrdersResponse, error)

func (*OrderClient) ClosePositions

func (c *OrderClient) ClosePositions(paramMap map[string]interface{}) (*order.ClosePositionsResponse, error)

func (*OrderClient) GetEstMargins

func (c *OrderClient) GetEstMargins(paramMap map[string]interface{}) (*order.GetEstMarginsResponse, error)

func (*OrderClient) GetOpenOrders

func (c *OrderClient) GetOpenOrders(paramMap map[string]interface{}) (*order.GetOpenOrdersResponse, error)

func (*OrderClient) GetOrders

func (c *OrderClient) GetOrders(paramMap map[string]interface{}) (*order.GetOrdersResponse, error)

func (*OrderClient) GetStopOrders

func (c *OrderClient) GetStopOrders(paramMap map[string]interface{}) (*order.GetStopOrdersResponse, error)

func (*OrderClient) GetUserTrades

func (c *OrderClient) GetUserTrades(paramMap map[string]interface{}) (*order.GetUserTradesResponse, error)

func (*OrderClient) Init

func (c *OrderClient) Init(host string, accessKey string, secretKey string) *OrderClient

func (*OrderClient) NewBatchOrders

func (c *OrderClient) NewBatchOrders(paramMap map[string]interface{}) (*order.NewBatchOrdersResponse, error)

func (*OrderClient) NewOrder

func (c *OrderClient) NewOrder(paramMap map[string]interface{}) (*order.NewOrderResponse, error)

type SystemClient

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

func (*SystemClient) GetCancelOnlyStatus

func (c *SystemClient) GetCancelOnlyStatus() (*system.GetCancelOnlyStatusResponse, error)

func (*SystemClient) GetServerTimestamp

func (c *SystemClient) GetServerTimestamp() (*system.GetSystemTimestampResponse, error)

func (*SystemClient) GetSystemVersion

func (c *SystemClient) GetSystemVersion() (*system.GetSystemVersionResponse, error)

func (*SystemClient) Init

func (c *SystemClient) Init(host string) *SystemClient

type WsAuthClient

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

func (*WsAuthClient) GetWsAuthToken

func (c *WsAuthClient) GetWsAuthToken() (*ws.GetWsAuthTokenResponse, error)

func (*WsAuthClient) Init

func (c *WsAuthClient) Init(host string, accessKey string, secretKey string) *WsAuthClient

Jump to

Keyboard shortcuts

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