bybit

package module
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: MIT Imports: 20 Imported by: 0

README

Go Report Card golangci-lint test

bybit

bybit is an bybit client for the Go programming language.

Usage

REST API
import "github.com/hirokisan/bybit/v2"

client := bybit.NewClient().WithAuth("your api key", "your api secret")
res, err := client.Future().InversePerpetual().Balance(bybit.CoinBTC)
// do as you want
WebSocket API

for single use

import "github.com/hirokisan/bybit/v2"

wsClient := bybit.NewWebsocketClient()
svc, err := wsClient.Spot().V1().PublicV1()
if err != nil {
	return err
}
_, err = svc.SubscribeTrade(bybit.SymbolSpotBTCUSDT, func(response bybit.SpotWebsocketV1PublicV1TradeResponse) error {
	// do as you want
})
if err != nil {
	return err
}
svc.Start(context.Background())

for multiple use

import "github.com/hirokisan/bybit/v2"

wsClient := bybit.NewWebsocketClient()

executors := []bybit.WebsocketExecutor{}

svcRoot := wsClient.Spot().V1()
{
	svc, err := svcRoot.PublicV1()
	if err != nil {
		return err
	}
	_, err = svc.SubscribeTrade(bybit.SymbolSpotBTCUSDT, func(response bybit.SpotWebsocketV1PublicV1TradeResponse) error {
		// do as you want
	})
	if err != nil {
		return err
	}
	executors = append(executors, svc)
}
{
	svc, err := svcRoot.PublicV2()
	if err != nil {
		return err
	}
	_, err = svc.SubscribeTrade(bybit.SymbolSpotBTCUSDT, func(response bybit.SpotWebsocketV1PublicV2TradeResponse) error {
		// do as you want
	})
	if err != nil {
		return err
	}
	executors = append(executors, svc)
}

wsClient.Start(context.Background(), executors)

Implemented

The following API endpoints have been implemented

REST API
Derivatives Unified Margin
Market Data Endpoints
  • /derivatives/v3/public/order-book/L2 Get Order Book
  • /derivatives/v3/public/kline Get Kline
  • /derivatives/v3/public/tickers Get Latest Information For Symbol
  • /derivatives/v3/public/instruments-info Get Instrument Info
  • /derivatives/v3/public/mark-price-kline Get Mark Price Kline
  • /derivatives/v3/public/index-price-kline Get Index Price Kline
Derivatives Contract
Market Data Endpoints
  • /derivatives/v3/public/order-book/L2 Get Order Book
  • /derivatives/v3/public/kline Get Kline
  • /derivatives/v3/public/tickers Get Latest Information For Symbol
  • /derivatives/v3/public/instruments-info Get Instrument Info
  • /derivatives/v3/public/mark-price-kline Get Mark Price Kline
  • /derivatives/v3/public/index-price-kline Get Index Price Kline
Inverse Perpetual
Market Data Endpoints
  • /v2/public/orderBook/L2 Order Book
  • /v2/public/kline/list Query Kline
  • /v2/public/tickers Latest Information for Symbol
  • /v2/public/trading-records Public Trading Records
  • /v2/public/symbols Query Symbol
  • /v2/public/mark-price-kline Query Mark Price Kline
  • /v2/public/index-price-kline Query Index Price Kline
  • /v2/public/premium-index-kline Query Premium Index Kline
  • /v2/public/open-interest Open Interest
  • /v2/public/big-deal Latest Big Deal
  • /v2/public/account-ratio Long-Short Ratio
Account Data Endpoints
  • /v2/private/order/create Place Active Order
  • /v2/private/order/list Get Active Order
  • /v2/private/order/cancel Cancel Active Order
  • /v2/private/order/cancelAll Cancel All Active Orders
  • /v2/private/order Query Active Order (real-time)
  • /v2/private/stop-order/create Place Conditional Order
  • /v2/private/stop-order/list Get Conditional Order
  • /v2/private/stop-order/cancel Cancel Conditional Order
  • /v2/private/stop-order/cancelAll Cancel All Conditional Orders
  • /v2/private/stop-order Query Conditional Order (real-time)
  • /v2/private/position/list My Position
  • /v2/private/position/trading-stop Set Trading-Stop
  • /v2/private/position/leverage/save Set Leverage
Wallet Data Endpoints
  • /v2/private/wallet/balance Get Wallet Balance
USDT Perpetual
Market Data Endpoints
  • /v2/public/orderBook/L2 Order Book
  • /public/linear/kline Query Kline
  • /v2/public/tickers Latest Information for Symbol
  • /v2/public/symbols Query Symbol
  • /v2/public/open-interest Open Interest
  • /v2/public/big-deal Latest Big Deal
  • /v2/public/account-ratio Long-Short Ratio
Account Data Endpoints
  • /private/linear/order/create Place Active Order
  • /private/linear/order/list Get Active Order
  • /private/linear/order/cancel Cancel Active Order
  • /private/linear/order/cancel-all Cancel All Active Orders
  • /private/linear/order/replace Replace Active Order
  • /private/linear/order/search Query Active Order (real-time)
  • /private/linear/stop-order/create Place Conditional Order
  • /private/linear/stop-order/list Get Conditional Order
  • /private/linear/stop-order/cancel Cancel Conditional Order
  • /private/linear/stop-order/cancel-all Cancel All Conditional Orders
  • /private/linear/stop-order/search Query Conditional Order (real-time)
  • /private/linear/position/list My Position
  • /private/linear/position/set-leverage Set Leverage
  • /private/linear/position/trading-stop Set Trading-Stop
  • /private/linear/trade/execution/list User Trade Records
Wallet Data Endpoints
  • /v2/private/wallet/balance Get Wallet Balance
Inverse Future
Market Data Endpoints
  • /v2/public/orderBook/L2 Order Book
  • /v2/public/kline/list Query Kline
  • /v2/public/tickers Latest Information for Symbol
  • /v2/public/trading-records Public Trading Records
  • /v2/public/symbols Query Symbol
  • /v2/public/mark-price-kline Query Index Price Kline
  • /v2/public/index-price-kline Query Index Price Kline
  • /v2/public/open-interest Open Interest
  • /v2/public/big-deal Latest Big Deal
  • /v2/public/account-ratio Long-Short Ratio
Account Data Endpoints
  • /futures/private/order/create Place Active Order
  • /futures/private/order/list Get Active Order
  • /futures/private/order/cancel Cancel Active Order
  • /futures/private/order/cancelAll Cancel All Active Orders
  • /futures/private/order Query Active Order (real-time)
  • /futures/private/stop-order/create Place Conditional Order
  • /futures/private/stop-order/list Get Conditional Order
  • /futures/private/stop-order/cancel Cancel Conditional Order
  • /futures/private/stop-order/cancelAll Cancel All Conditional Orders
  • /futures/private/stop-order Query Conditional Order (real-time)
  • /futures/private/position/list My Position
  • /futures/private/position/trading-stop Set Trading-Stop
  • /futures/private/position/leverage/save Set Leverage
Wallet Data Endpoints
  • /v2/private/wallet/balance Get Wallet Balance
Spot v1
Market Data Endpoints
  • /spot/v1/symbols Query Symbol
  • /spot/quote/v1/depth Order Book
  • /spot/quote/v1/depth/merged Merged Order Book
  • /spot/quote/v1/trades Public Trading Records
  • /spot/quote/v1/kline Query Kline
  • /spot/quote/v1/ticker/24hr Latest Information for Symbol
  • /spot/quote/v1/ticker/price Last Traded Price
  • /spot/quote/v1/ticker/book_ticker Best Bid/Ask Price
Account Data Endpoints
  • /spot/v1/order
    • Place Active Order
    • Get Active Order
    • Cancel Active Order
    • Fast Cancel Active Order
  • /spot/v1/order/fast Fast Cancel Active Order
  • /spot/order/batch-cancel Batch Cancel Active Order
  • /spot/order/batch-fast-cancel Batch Fast Cancel Active Order
  • /spot/order/batch-cancel-by-ids Batch Cancel Active Order By IDs
  • /spot/v1/open-orders Open Orders
Wallet Data Endpoints
  • /spot/v1/account Get Wallet Balance
WebSocket API
Spot v1
Public Topics
  • trade
Public Topics V2
  • trade
Private Topics
  • outboundAccountInfo

Integration Tests

There are tests so that we can get to know the changes of bybit api response.

See below

Contributing

I would like to cover Bybit API and contributions are always welcome. The calling pattern is established, so adding new methods is relatively straightforward. See some PRs like https://github.com/hirokisan/bybit/pull/44.

To submit issues, PRs, and every other help is welcome.

Documentation

Index

Constants

View Source
const (
	// MainNetBaseURL :
	MainNetBaseURL = "https://api.bybit.com"
	// MainNetBaseURL2 :
	MainNetBaseURL2 = "https://api.bytick.com"
)
View Source
const (
	// WebsocketBaseURL :
	WebsocketBaseURL = "wss://stream.bybit.com"
	// WebsocketBaseURL2 :
	WebsocketBaseURL2 = "wss://stream.bytick.com"
)
View Source
const (
	// CoinBTC :
	CoinBTC = "BTC"
	// CoinETH :
	CoinETH = "ETH"
	// CoinEOS :
	CoinEOS = "EOS"
	// CoinXRP :
	CoinXRP = "XRP"
	// CoinUSDT :
	CoinUSDT = "USDT"
)
View Source
const (
	// SideNone : not defined officially
	SideNone = Side("None")
	// SideBuy :
	SideBuy = Side("Buy")
	// SideSell :
	SideSell = Side("Sell")
)
View Source
const (
	// OrderTypeLimit :
	OrderTypeLimit = OrderType("Limit")
	// OrderTypeMarket :
	OrderTypeMarket = OrderType("Market")
)
View Source
const (
	// OrderStatusCreated :
	OrderStatusCreated = OrderStatus("Created")
	// OrderStatusRejected :
	OrderStatusRejected = OrderStatus("Rejected")
	// OrderStatusNew :
	OrderStatusNew = OrderStatus("New")
	// OrderStatusPartiallyFilled :
	OrderStatusPartiallyFilled = OrderStatus("PartiallyFilled")
	// OrderStatusFilled :
	OrderStatusFilled = OrderStatus("Filled")
	// OrderStatusCancelled :
	OrderStatusCancelled = OrderStatus("Cancelled")
	// OrderStatusPendingCancel :
	OrderStatusPendingCancel = OrderStatus("PendingCancel")

	// OrderStatusUntriggered : Only for conditional orders
	OrderStatusUntriggered = OrderStatus("Untriggered")
	// OrderStatusDeactivated : Only for conditional orders
	OrderStatusDeactivated = OrderStatus("Deactivated")
	// OrderStatusTriggered : Only for conditional orders
	OrderStatusTriggered = OrderStatus("Triggered")
	// OrderStatusActive : Only for conditional orders
	OrderStatusActive = OrderStatus("Active")
)
View Source
const (
	// OrderDesc :
	OrderDesc = "desc"
	// OrderAsc :
	OrderAsc = "asc"
)
View Source
const (
	// TimeInForceGoodTillCancel :
	TimeInForceGoodTillCancel = TimeInForce("GoodTillCancel")
	// TimeInForceImmediateOrCancel :
	TimeInForceImmediateOrCancel = TimeInForce("ImmediateOrCancel")
	// TimeInForceFillOrKill :
	TimeInForceFillOrKill = TimeInForce("FillOrKill")
	// TimeInForcePostOnly :
	TimeInForcePostOnly = TimeInForce("PostOnly")
)
View Source
const (
	// Interval1 :
	Interval1 = Interval("1")
	// Interval3 :
	Interval3 = Interval("3")
	// Interval5 :
	Interval5 = Interval("5")
	// Interval15 :
	Interval15 = Interval("15")
	// Interval30 :
	Interval30 = Interval("30")
	// Interval60 :
	Interval60 = Interval("60")
	// Interval120 :
	Interval120 = Interval("120")
	// Interval240 :
	Interval240 = Interval("240")
	// Interval360 :
	Interval360 = Interval("360")
	// Interval720 :
	Interval720 = Interval("720")
	// IntervalD :
	IntervalD = Interval("D")
	// IntervalW :
	IntervalW = Interval("W")
	// IntervalM :
	IntervalM = Interval("M")
)
View Source
const (
	// TickDirectionPlusTick :
	TickDirectionPlusTick = TickDirection("PlusTick")
	// TickDirectionZeroPlusTick :
	TickDirectionZeroPlusTick = TickDirection("ZeroPlusTick")
	// TickDirectionMinusTick :
	TickDirectionMinusTick = TickDirection("MinusTick")
	// TickDirectionZeroMinusTick :
	TickDirectionZeroMinusTick = TickDirection("ZeroMinusTick")
)
View Source
const (
	// Period5min :
	Period5min = Period("5min")
	// Period15min :
	Period15min = Period("15min")
	// Period30min :
	Period30min = Period("30min")
	// Period1h :
	Period1h = Period("1h")
	// Period4h :
	Period4h = Period("4h")
	// Period1d :
	Period1d = Period("1d")
)
View Source
const (
	// TpSlModeFull :
	TpSlModeFull = TpSlMode("Full")
	// TpSlModePartial :
	TpSlModePartial = TpSlMode("Partial")
)
View Source
const (
	// ExecTypeTrade :
	ExecTypeTrade = ExecType("Trade")
	// ExecTypeAdlTrade :
	ExecTypeAdlTrade = ExecType("AdlTrade")
	// ExecTypeFunding :
	ExecTypeFunding = ExecType("Funding")
	// ExecTypeBustTrade :
	ExecTypeBustTrade = ExecType("BustTrade")
	// ExecTypeSettle :
	ExecTypeSettle = ExecType("Settle")
)
View Source
const (
	// DirectionPrev :
	DirectionPrev = Direction("prev")
	// DirectionNext :
	DirectionNext = Direction("next")
)
View Source
const (
	// SymbolDerivativeBTCUSDT :
	SymbolDerivativeBTCUSDT = SymbolDerivative("BTCUSDT")
	// SymbolDerivativeBTC31MAR23_40000C :
	SymbolDerivativeBTC31MAR23_40000C = SymbolDerivative("BTC-31MAR23-40000-C")
)
View Source
const (
	CoinContractBTC  = CoinContract("BTC")
	CoinContractETH  = CoinContract("ETH")
	CoinContractEOS  = CoinContract("EOS")
	CoinContractXRP  = CoinContract("XRP")
	CoinContractDOT  = CoinContract("DOT")
	CoinContractUSDT = CoinContract("USDT")
)
View Source
const (
	// CategoryDerivativeLinear :
	CategoryDerivativeLinear = CategoryDerivative("linear")
	// CategoryDerivativeInverse :
	CategoryDerivativeInverse = CategoryDerivative("inverse")
	// CategoryDerivativeOption :
	CategoryDerivativeOption = CategoryDerivative("option")
)
View Source
const (
	// ContractTypeDerivativeInversePerpetual :
	ContractTypeDerivativeInversePerpetual = ContractTypeDerivative("InversePerpetual")
	// ContractTypeDerivativeLinearPerpetual :
	ContractTypeDerivativeLinearPerpetual = ContractTypeDerivative("LinearPerpetual")
	// ContractTypeDerivativeInverseFutures :
	ContractTypeDerivativeInverseFutures = ContractTypeDerivative("InverseFutures")
)
View Source
const (
	// StatusDerivativePending :
	StatusDerivativePending = StatusDerivative("Pending")
	// StatusDerivativeTrading :
	StatusDerivativeTrading = StatusDerivative("Trading")
	// StatusDerivativeSettling :
	StatusDerivativeSettling = StatusDerivative("Settling")
	// StatusDerivativeClosed :
	StatusDerivativeClosed = StatusDerivative("Closed")
)
View Source
const (
	// SymbolFuture10000NFTUSDT :
	SymbolFuture10000NFTUSDT = SymbolFuture("10000NFTUSDT")
	// SymbolFuture1000BTTUSDT :
	SymbolFuture1000BTTUSDT = SymbolFuture("1000BTTUSDT")
	// SymbolFuture1000LUNCUSDT :
	SymbolFuture1000LUNCUSDT = SymbolFuture("1000LUNCUSDT")
	// SymbolFuture1000XECUSDT :
	SymbolFuture1000XECUSDT = SymbolFuture("1000XECUSDT")
	// SymbolFuture1INCHUSDT :
	SymbolFuture1INCHUSDT = SymbolFuture("1INCHUSDT")
	// SymbolFutureAAVEUSDT :
	SymbolFutureAAVEUSDT = SymbolFuture("AAVEUSDT")
	// SymbolFutureACHUSDT :
	SymbolFutureACHUSDT = SymbolFuture("ACHUSDT")
	// SymbolFutureADAUSD :
	SymbolFutureADAUSD = SymbolFuture("ADAUSD")
	// SymbolFutureADAUSDT :
	SymbolFutureADAUSDT = SymbolFuture("ADAUSDT")
	// SymbolFutureAGLDUSDT :
	SymbolFutureAGLDUSDT = SymbolFuture("AGLDUSDT")
	// SymbolFutureAKROUSDT :
	SymbolFutureAKROUSDT = SymbolFuture("AKROUSDT")
	// SymbolFutureALGOUSDT :
	SymbolFutureALGOUSDT = SymbolFuture("ALGOUSDT")
	// SymbolFutureALICEUSDT :
	SymbolFutureALICEUSDT = SymbolFuture("ALICEUSDT")
	// SymbolFutureALPHAUSDT :
	SymbolFutureALPHAUSDT = SymbolFuture("ALPHAUSDT")
	// SymbolFutureANKRUSDT :
	SymbolFutureANKRUSDT = SymbolFuture("ANKRUSDT")
	// SymbolFutureANTUSDT :
	SymbolFutureANTUSDT = SymbolFuture("ANTUSDT")
	// SymbolFutureAPEUSDT :
	SymbolFutureAPEUSDT = SymbolFuture("APEUSDT")
	// SymbolFutureAPI3USDT :
	SymbolFutureAPI3USDT = SymbolFuture("API3USDT")
	// SymbolFutureARPAUSDT :
	SymbolFutureARPAUSDT = SymbolFuture("ARPAUSDT")
	// SymbolFutureARUSDT :
	SymbolFutureARUSDT = SymbolFuture("ARUSDT")
	// SymbolFutureASTRUSDT :
	SymbolFutureASTRUSDT = SymbolFuture("ASTRUSDT")
	// SymbolFutureAUDIOUSDT :
	SymbolFutureAUDIOUSDT = SymbolFuture("AUDIOUSDT")
	// SymbolFutureAVAXUSDT :
	SymbolFutureAVAXUSDT = SymbolFuture("AVAXUSDT")
	// SymbolFutureAXSUSDT :
	SymbolFutureAXSUSDT = SymbolFuture("AXSUSDT")
	// SymbolFutureBAKEUSDT :
	SymbolFutureBAKEUSDT = SymbolFuture("BAKEUSDT")
	// SymbolFutureBALUSDT :
	SymbolFutureBALUSDT = SymbolFuture("BALUSDT")
	// SymbolFutureBANDUSDT :
	SymbolFutureBANDUSDT = SymbolFuture("BANDUSDT")
	// SymbolFutureBATUSDT :
	SymbolFutureBATUSDT = SymbolFuture("BATUSDT")
	// SymbolFutureBCHUSDT :
	SymbolFutureBCHUSDT = SymbolFuture("BCHUSDT")
	// SymbolFutureBELUSDT :
	SymbolFutureBELUSDT = SymbolFuture("BELUSDT")
	// SymbolFutureBICOUSDT :
	SymbolFutureBICOUSDT = SymbolFuture("BICOUSDT")
	// SymbolFutureBITUSD :
	SymbolFutureBITUSD = SymbolFuture("BITUSD")
	// SymbolFutureBITUSDT :
	SymbolFutureBITUSDT = SymbolFuture("BITUSDT")
	// SymbolFutureBLZUSDT :
	SymbolFutureBLZUSDT = SymbolFuture("BLZUSDT")
	// SymbolFutureBNBUSDT :
	SymbolFutureBNBUSDT = SymbolFuture("BNBUSDT")
	// SymbolFutureBNXUSDT :
	SymbolFutureBNXUSDT = SymbolFuture("BNXUSDT")
	// SymbolFutureBOBAUSDT :
	SymbolFutureBOBAUSDT = SymbolFuture("BOBAUSDT")
	// SymbolFutureBSVUSDT :
	SymbolFutureBSVUSDT = SymbolFuture("BSVUSDT")
	// SymbolFutureBSWUSDT :
	SymbolFutureBSWUSDT = SymbolFuture("BSWUSDT")
	// SymbolFutureBTCUSD :
	SymbolFutureBTCUSD = SymbolFuture("BTCUSD")
	// SymbolFutureBTCUSDH23 :
	SymbolFutureBTCUSDH23 = SymbolFuture("BTCUSDH23")
	// SymbolFutureBTCUSDT :
	SymbolFutureBTCUSDT = SymbolFuture("BTCUSDT")
	// SymbolFutureBTCUSDZ22 :
	SymbolFutureBTCUSDZ22 = SymbolFuture("BTCUSDZ22")
	// SymbolFutureC98USDT :
	SymbolFutureC98USDT = SymbolFuture("C98USDT")
	// SymbolFutureCEEKUSDT :
	SymbolFutureCEEKUSDT = SymbolFuture("CEEKUSDT")
	// SymbolFutureCELOUSDT :
	SymbolFutureCELOUSDT = SymbolFuture("CELOUSDT")
	// SymbolFutureCELRUSDT :
	SymbolFutureCELRUSDT = SymbolFuture("CELRUSDT")
	// SymbolFutureCELUSDT :
	SymbolFutureCELUSDT = SymbolFuture("CELUSDT")
	// SymbolFutureCHRUSDT :
	SymbolFutureCHRUSDT = SymbolFuture("CHRUSDT")
	// SymbolFutureCHZUSDT :
	SymbolFutureCHZUSDT = SymbolFuture("CHZUSDT")
	// SymbolFutureCKBUSDT :
	SymbolFutureCKBUSDT = SymbolFuture("CKBUSDT")
	// SymbolFutureCOMPUSDT :
	SymbolFutureCOMPUSDT = SymbolFuture("COMPUSDT")
	// SymbolFutureCOTIUSDT :
	SymbolFutureCOTIUSDT = SymbolFuture("COTIUSDT")
	// SymbolFutureCREAMUSDT :
	SymbolFutureCREAMUSDT = SymbolFuture("CREAMUSDT")
	// SymbolFutureCROUSDT :
	SymbolFutureCROUSDT = SymbolFuture("CROUSDT")
	// SymbolFutureCRVUSDT :
	SymbolFutureCRVUSDT = SymbolFuture("CRVUSDT")
	// SymbolFutureCTCUSDT :
	SymbolFutureCTCUSDT = SymbolFuture("CTCUSDT")
	// SymbolFutureCTKUSDT :
	SymbolFutureCTKUSDT = SymbolFuture("CTKUSDT")
	// SymbolFutureCTSIUSDT :
	SymbolFutureCTSIUSDT = SymbolFuture("CTSIUSDT")
	// SymbolFutureCVCUSDT :
	SymbolFutureCVCUSDT = SymbolFuture("CVCUSDT")
	// SymbolFutureCVXUSDT :
	SymbolFutureCVXUSDT = SymbolFuture("CVXUSDT")
	// SymbolFutureDARUSDT :
	SymbolFutureDARUSDT = SymbolFuture("DARUSDT")
	// SymbolFutureDASHUSDT :
	SymbolFutureDASHUSDT = SymbolFuture("DASHUSDT")
	// SymbolFutureDENTUSDT :
	SymbolFutureDENTUSDT = SymbolFuture("DENTUSDT")
	// SymbolFutureDGBUSDT :
	SymbolFutureDGBUSDT = SymbolFuture("DGBUSDT")
	// SymbolFutureDODOUSDT :
	SymbolFutureDODOUSDT = SymbolFuture("DODOUSDT")
	// SymbolFutureDOGEUSDT :
	SymbolFutureDOGEUSDT = SymbolFuture("DOGEUSDT")
	// SymbolFutureDOTUSD :
	SymbolFutureDOTUSD = SymbolFuture("DOTUSD")
	// SymbolFutureDOTUSDT :
	SymbolFutureDOTUSDT = SymbolFuture("DOTUSDT")
	// SymbolFutureDUSKUSDT :
	SymbolFutureDUSKUSDT = SymbolFuture("DUSKUSDT")
	// SymbolFutureDYDXUSDT :
	SymbolFutureDYDXUSDT = SymbolFuture("DYDXUSDT")
	// SymbolFutureEGLDUSDT :
	SymbolFutureEGLDUSDT = SymbolFuture("EGLDUSDT")
	// SymbolFutureENJUSDT :
	SymbolFutureENJUSDT = SymbolFuture("ENJUSDT")
	// SymbolFutureENSUSDT :
	SymbolFutureENSUSDT = SymbolFuture("ENSUSDT")
	// SymbolFutureEOSUSD :
	SymbolFutureEOSUSD = SymbolFuture("EOSUSD")
	// SymbolFutureEOSUSDT :
	SymbolFutureEOSUSDT = SymbolFuture("EOSUSDT")
	// SymbolFutureETCUSDT :
	SymbolFutureETCUSDT = SymbolFuture("ETCUSDT")
	// SymbolFutureETHUSD :
	SymbolFutureETHUSD = SymbolFuture("ETHUSD")
	// SymbolFutureETHUSDH23 :
	SymbolFutureETHUSDH23 = SymbolFuture("ETHUSDH23")
	// SymbolFutureETHUSDT :
	SymbolFutureETHUSDT = SymbolFuture("ETHUSDT")
	// SymbolFutureETHUSDZ22 :
	SymbolFutureETHUSDZ22 = SymbolFuture("ETHUSDZ22")
	// SymbolFutureETHWUSDT :
	SymbolFutureETHWUSDT = SymbolFuture("ETHWUSDT")
	// SymbolFutureFILUSDT :
	SymbolFutureFILUSDT = SymbolFuture("FILUSDT")
	// SymbolFutureFITFIUSDT :
	SymbolFutureFITFIUSDT = SymbolFuture("FITFIUSDT")
	// SymbolFutureFLMUSDT :
	SymbolFutureFLMUSDT = SymbolFuture("FLMUSDT")
	// SymbolFutureFLOWUSDT :
	SymbolFutureFLOWUSDT = SymbolFuture("FLOWUSDT")
	// SymbolFutureFTMUSDT :
	SymbolFutureFTMUSDT = SymbolFuture("FTMUSDT")
	// SymbolFutureFTTUSDT :
	SymbolFutureFTTUSDT = SymbolFuture("FTTUSDT")
	// SymbolFutureFXSUSDT :
	SymbolFutureFXSUSDT = SymbolFuture("FXSUSDT")
	// SymbolFutureGALAUSDT :
	SymbolFutureGALAUSDT = SymbolFuture("GALAUSDT")
	// SymbolFutureGALUSDT :
	SymbolFutureGALUSDT = SymbolFuture("GALUSDT")
	// SymbolFutureGLMRUSDT :
	SymbolFutureGLMRUSDT = SymbolFuture("GLMRUSDT")
	// SymbolFutureGMTUSDT :
	SymbolFutureGMTUSDT = SymbolFuture("GMTUSDT")
	// SymbolFutureGRTUSDT :
	SymbolFutureGRTUSDT = SymbolFuture("GRTUSDT")
	// SymbolFutureGTCUSDT :
	SymbolFutureGTCUSDT = SymbolFuture("GTCUSDT")
	// SymbolFutureHBARUSDT :
	SymbolFutureHBARUSDT = SymbolFuture("HBARUSDT")
	// SymbolFutureHNTUSDT :
	SymbolFutureHNTUSDT = SymbolFuture("HNTUSDT")
	// SymbolFutureHOTUSDT :
	SymbolFutureHOTUSDT = SymbolFuture("HOTUSDT")
	// SymbolFutureICPUSDT :
	SymbolFutureICPUSDT = SymbolFuture("ICPUSDT")
	// SymbolFutureICXUSDT :
	SymbolFutureICXUSDT = SymbolFuture("ICXUSDT")
	// SymbolFutureILVUSDT :
	SymbolFutureILVUSDT = SymbolFuture("ILVUSDT")
	// SymbolFutureIMXUSDT :
	SymbolFutureIMXUSDT = SymbolFuture("IMXUSDT")
	// SymbolFutureINJUSDT :
	SymbolFutureINJUSDT = SymbolFuture("INJUSDT")
	// SymbolFutureIOSTUSDT :
	SymbolFutureIOSTUSDT = SymbolFuture("IOSTUSDT")
	// SymbolFutureIOTAUSDT :
	SymbolFutureIOTAUSDT = SymbolFuture("IOTAUSDT")
	// SymbolFutureIOTXUSDT :
	SymbolFutureIOTXUSDT = SymbolFuture("IOTXUSDT")
	// SymbolFutureJASMYUSDT :
	SymbolFutureJASMYUSDT = SymbolFuture("JASMYUSDT")
	// SymbolFutureJSTUSDT :
	SymbolFutureJSTUSDT = SymbolFuture("JSTUSDT")
	// SymbolFutureKAVAUSDT :
	SymbolFutureKAVAUSDT = SymbolFuture("KAVAUSDT")
	// SymbolFutureKDAUSDT :
	SymbolFutureKDAUSDT = SymbolFuture("KDAUSDT")
	// SymbolFutureKLAYUSDT :
	SymbolFutureKLAYUSDT = SymbolFuture("KLAYUSDT")
	// SymbolFutureKNCUSDT :
	SymbolFutureKNCUSDT = SymbolFuture("KNCUSDT")
	// SymbolFutureKSMUSDT :
	SymbolFutureKSMUSDT = SymbolFuture("KSMUSDT")
	// SymbolFutureLDOUSDT :
	SymbolFutureLDOUSDT = SymbolFuture("LDOUSDT")
	// SymbolFutureLINAUSDT :
	SymbolFutureLINAUSDT = SymbolFuture("LINAUSDT")
	// SymbolFutureLINKUSDT :
	SymbolFutureLINKUSDT = SymbolFuture("LINKUSDT")
	// SymbolFutureLITUSDT :
	SymbolFutureLITUSDT = SymbolFuture("LITUSDT")
	// SymbolFutureLOOKSUSDT :
	SymbolFutureLOOKSUSDT = SymbolFuture("LOOKSUSDT")
	// SymbolFutureLPTUSDT :
	SymbolFutureLPTUSDT = SymbolFuture("LPTUSDT")
	// SymbolFutureLRCUSDT :
	SymbolFutureLRCUSDT = SymbolFuture("LRCUSDT")
	// SymbolFutureLTCUSD :
	SymbolFutureLTCUSD = SymbolFuture("LTCUSD")
	// SymbolFutureLTCUSDT :
	SymbolFutureLTCUSDT = SymbolFuture("LTCUSDT")
	// SymbolFutureLUNA2USDT :
	SymbolFutureLUNA2USDT = SymbolFuture("LUNA2USDT")
	// SymbolFutureMANAUSD :
	SymbolFutureMANAUSD = SymbolFuture("MANAUSD")
	// SymbolFutureMANAUSDT :
	SymbolFutureMANAUSDT = SymbolFuture("MANAUSDT")
	// SymbolFutureMASKUSDT :
	SymbolFutureMASKUSDT = SymbolFuture("MASKUSDT")
	// SymbolFutureMATICUSDT :
	SymbolFutureMATICUSDT = SymbolFuture("MATICUSDT")
	// SymbolFutureMINAUSDT :
	SymbolFutureMINAUSDT = SymbolFuture("MINAUSDT")
	// SymbolFutureMKRUSDT :
	SymbolFutureMKRUSDT = SymbolFuture("MKRUSDT")
	// SymbolFutureMTLUSDT :
	SymbolFutureMTLUSDT = SymbolFuture("MTLUSDT")
	// SymbolFutureNEARUSDT :
	SymbolFutureNEARUSDT = SymbolFuture("NEARUSDT")
	// SymbolFutureNEOUSDT :
	SymbolFutureNEOUSDT = SymbolFuture("NEOUSDT")
	// SymbolFutureOCEANUSDT :
	SymbolFutureOCEANUSDT = SymbolFuture("OCEANUSDT")
	// SymbolFutureOGNUSDT :
	SymbolFutureOGNUSDT = SymbolFuture("OGNUSDT")
	// SymbolFutureOMGUSDT :
	SymbolFutureOMGUSDT = SymbolFuture("OMGUSDT")
	// SymbolFutureONEUSDT :
	SymbolFutureONEUSDT = SymbolFuture("ONEUSDT")
	// SymbolFutureONTUSDT :
	SymbolFutureONTUSDT = SymbolFuture("ONTUSDT")
	// SymbolFutureOPUSDT :
	SymbolFutureOPUSDT = SymbolFuture("OPUSDT")
	// SymbolFuturePAXGUSDT :
	SymbolFuturePAXGUSDT = SymbolFuture("PAXGUSDT")
	// SymbolFuturePEOPLEUSDT :
	SymbolFuturePEOPLEUSDT = SymbolFuture("PEOPLEUSDT")
	// SymbolFutureQNTUSDT :
	SymbolFutureQNTUSDT = SymbolFuture("QNTUSDT")
	// SymbolFutureQTUMUSDT :
	SymbolFutureQTUMUSDT = SymbolFuture("QTUMUSDT")
	// SymbolFutureRAYUSDT :
	SymbolFutureRAYUSDT = SymbolFuture("RAYUSDT")
	// SymbolFutureREEFUSDT :
	SymbolFutureREEFUSDT = SymbolFuture("REEFUSDT")
	// SymbolFutureRENUSDT :
	SymbolFutureRENUSDT = SymbolFuture("RENUSDT")
	// SymbolFutureREQUSDT :
	SymbolFutureREQUSDT = SymbolFuture("REQUSDT")
	// SymbolFutureRNDRUSDT :
	SymbolFutureRNDRUSDT = SymbolFuture("RNDRUSDT")
	// SymbolFutureROSEUSDT :
	SymbolFutureROSEUSDT = SymbolFuture("ROSEUSDT")
	// SymbolFutureRSRUSDT :
	SymbolFutureRSRUSDT = SymbolFuture("RSRUSDT")
	// SymbolFutureRSS3USDT :
	SymbolFutureRSS3USDT = SymbolFuture("RSS3USDT")
	// SymbolFutureRUNEUSDT :
	SymbolFutureRUNEUSDT = SymbolFuture("RUNEUSDT")
	// SymbolFutureRVNUSDT :
	SymbolFutureRVNUSDT = SymbolFuture("RVNUSDT")
	// SymbolFutureSANDUSDT :
	SymbolFutureSANDUSDT = SymbolFuture("SANDUSDT")
	// SymbolFutureSCRTUSDT :
	SymbolFutureSCRTUSDT = SymbolFuture("SCRTUSDT")
	// SymbolFutureSCUSDT :
	SymbolFutureSCUSDT = SymbolFuture("SCUSDT")
	// SymbolFutureSFPUSDT :
	SymbolFutureSFPUSDT = SymbolFuture("SFPUSDT")
	// SymbolFutureSHIB1000USDT :
	SymbolFutureSHIB1000USDT = SymbolFuture("SHIB1000USDT")
	// SymbolFutureSKLUSDT :
	SymbolFutureSKLUSDT = SymbolFuture("SKLUSDT")
	// SymbolFutureSLPUSDT :
	SymbolFutureSLPUSDT = SymbolFuture("SLPUSDT")
	// SymbolFutureSNXUSDT :
	SymbolFutureSNXUSDT = SymbolFuture("SNXUSDT")
	// SymbolFutureSOLUSD :
	SymbolFutureSOLUSD = SymbolFuture("SOLUSD")
	// SymbolFutureSOLUSDT :
	SymbolFutureSOLUSDT = SymbolFuture("SOLUSDT")
	// SymbolFutureSRMUSDT :
	SymbolFutureSRMUSDT = SymbolFuture("SRMUSDT")
	// SymbolFutureSTGUSDT :
	SymbolFutureSTGUSDT = SymbolFuture("STGUSDT")
	// SymbolFutureSTMXUSDT :
	SymbolFutureSTMXUSDT = SymbolFuture("STMXUSDT")
	// SymbolFutureSTORJUSDT :
	SymbolFutureSTORJUSDT = SymbolFuture("STORJUSDT")
	// SymbolFutureSTXUSDT :
	SymbolFutureSTXUSDT = SymbolFuture("STXUSDT")
	// SymbolFutureSUNUSDT :
	SymbolFutureSUNUSDT = SymbolFuture("SUNUSDT")
	// SymbolFutureSUSHIUSDT :
	SymbolFutureSUSHIUSDT = SymbolFuture("SUSHIUSDT")
	// SymbolFutureSXPUSDT :
	SymbolFutureSXPUSDT = SymbolFuture("SXPUSDT")
	// SymbolFutureTHETAUSDT :
	SymbolFutureTHETAUSDT = SymbolFuture("THETAUSDT")
	// SymbolFutureTLMUSDT :
	SymbolFutureTLMUSDT = SymbolFuture("TLMUSDT")
	// SymbolFutureTOMOUSDT :
	SymbolFutureTOMOUSDT = SymbolFuture("TOMOUSDT")
	// SymbolFutureTRBUSDT :
	SymbolFutureTRBUSDT = SymbolFuture("TRBUSDT")
	// SymbolFutureTRXUSDT :
	SymbolFutureTRXUSDT = SymbolFuture("TRXUSDT")
	// SymbolFutureUNFIUSDT :
	SymbolFutureUNFIUSDT = SymbolFuture("UNFIUSDT")
	// SymbolFutureUNIUSDT :
	SymbolFutureUNIUSDT = SymbolFuture("UNIUSDT")
	// SymbolFutureUSDCUSDT :
	SymbolFutureUSDCUSDT = SymbolFuture("USDCUSDT")
	// SymbolFutureVETUSDT :
	SymbolFutureVETUSDT = SymbolFuture("VETUSDT")
	// SymbolFutureWAVESUSDT :
	SymbolFutureWAVESUSDT = SymbolFuture("WAVESUSDT")
	// SymbolFutureWOOUSDT :
	SymbolFutureWOOUSDT = SymbolFuture("WOOUSDT")
	// SymbolFutureXEMUSDT :
	SymbolFutureXEMUSDT = SymbolFuture("XEMUSDT")
	// SymbolFutureXLMUSDT :
	SymbolFutureXLMUSDT = SymbolFuture("XLMUSDT")
	// SymbolFutureXMRUSDT :
	SymbolFutureXMRUSDT = SymbolFuture("XMRUSDT")
	// SymbolFutureXNOUSDT :
	SymbolFutureXNOUSDT = SymbolFuture("XNOUSDT")
	// SymbolFutureXRPUSD :
	SymbolFutureXRPUSD = SymbolFuture("XRPUSD")
	// SymbolFutureXRPUSDT :
	SymbolFutureXRPUSDT = SymbolFuture("XRPUSDT")
	// SymbolFutureXTZUSDT :
	SymbolFutureXTZUSDT = SymbolFuture("XTZUSDT")
	// SymbolFutureYFIUSDT :
	SymbolFutureYFIUSDT = SymbolFuture("YFIUSDT")
	// SymbolFutureYGGUSDT :
	SymbolFutureYGGUSDT = SymbolFuture("YGGUSDT")
	// SymbolFutureZECUSDT :
	SymbolFutureZECUSDT = SymbolFuture("ZECUSDT")
	// SymbolFutureZENUSDT :
	SymbolFutureZENUSDT = SymbolFuture("ZENUSDT")
	// SymbolFutureZILUSDT :
	SymbolFutureZILUSDT = SymbolFuture("ZILUSDT")
	// SymbolFutureZRXUSDT :
	SymbolFutureZRXUSDT = SymbolFuture("ZRXUSDT")
)
View Source
const (
	// TriggerByFutureUNKNOWN : only for response
	TriggerByFutureUNKNOWN = TriggerByFuture("UNKNOWN")
	// TriggerByFutureLastPrice :
	TriggerByFutureLastPrice = TriggerByFuture("LastPrice")
	// TriggerByFutureIndexPrice :
	TriggerByFutureIndexPrice = TriggerByFuture("IndexPrice")
	// TriggerByFutureMarkPrice :
	TriggerByFutureMarkPrice = TriggerByFuture("MarkPrice")
)
View Source
const (
	// StopOrderTypeFutureTakeProfit :
	StopOrderTypeFutureTakeProfit = StopOrderTypeFuture("TakeProfit")
	// StopOrderTypeFutureStopLoss :
	StopOrderTypeFutureStopLoss = StopOrderTypeFuture("StopLoss")
	// StopOrderTypeFutureTrailingStop :
	StopOrderTypeFutureTrailingStop = StopOrderTypeFuture("TrailingStop")
	// StopOrderTypeFutureStop :
	StopOrderTypeFutureStop = StopOrderTypeFuture("Stop")
)
View Source
const (
	// TimeInForceSpotGTC :
	TimeInForceSpotGTC = TimeInForceSpot("GTC")
	// TimeInForceSpotFOK :
	TimeInForceSpotFOK = TimeInForceSpot("FOK")
	// TimeInForceSpotIOC :
	TimeInForceSpotIOC = TimeInForceSpot("IOC")
)
View Source
const (
	// SpotInterval1m :
	SpotInterval1m = Interval("1m")
	// SpotInterval3m :
	SpotInterval3m = Interval("3m")
	// SpotInterval5m :
	SpotInterval5m = Interval("5m")
	// SpotInterval15m :
	SpotInterval15m = Interval("15m")
	// SpotInterval30m :
	SpotInterval30m = Interval("30m")
	// SpotInterval1h :
	SpotInterval1h = Interval("1h")
	// SpotInterval2h :
	SpotInterval2h = Interval("2h")
	// SpotInterval4h :
	SpotInterval4h = Interval("4h")
	// SpotInterval6h :
	SpotInterval6h = Interval("6h")
	// SpotInterval12h :
	SpotInterval12h = Interval("12h")
	// SpotInterval1d :
	SpotInterval1d = Interval("1d")
	// SpotInterval1w :
	SpotInterval1w = Interval("1w")
	// SpotInterval1M :
	SpotInterval1M = Interval("1M")
)
View Source
const (
	// OrderTypeSpotLimit :
	OrderTypeSpotLimit = OrderTypeSpot("LIMIT")
	// OrderTypeSpotMarket :
	OrderTypeSpotMarket = OrderTypeSpot("MARKET")
	// OrderTypeSpotLimitMaker :
	OrderTypeSpotLimitMaker = OrderTypeSpot("LIMIT_MAKER")
)
View Source
const (
	// OrderStatusSpotNew :
	OrderStatusSpotNew = OrderStatusSpot("NEW")
	// OrderStatusSpotPartiallyFilled :
	OrderStatusSpotPartiallyFilled = OrderStatusSpot("PARTIALLY_FILLED")
	// OrderStatusSpotFilled :
	OrderStatusSpotFilled = OrderStatusSpot("FILLED")
	// OrderStatusSpotCanceled :
	OrderStatusSpotCanceled = OrderStatusSpot("CANCELED")
	// OrderStatusSpotPendingCancel :
	OrderStatusSpotPendingCancel = OrderStatusSpot("PENDING_CANCEL")
	// OrderStatusSpotPendingNew :
	OrderStatusSpotPendingNew = OrderStatusSpot("PENDING_NEW")
	// OrderStatusSpotRejected :
	OrderStatusSpotRejected = OrderStatusSpot("REJECTED")
)
View Source
const (
	// SymbolSpotBTCUSDT :
	SymbolSpotBTCUSDT = SymbolSpot("BTCUSDT")
	// SymbolSpotETHUSDT :
	SymbolSpotETHUSDT = SymbolSpot("ETHUSDT")
	// SymbolSpotEOSUSDT :
	SymbolSpotEOSUSDT = SymbolSpot("EOSUSDT")
	// SymbolSpotNEOBTC :
	SymbolSpotNEOBTC = SymbolSpot("NEOBTC")
	// SymbolSpotXRPUSDT :
	SymbolSpotXRPUSDT = SymbolSpot("XRPUSDT")
	// SymbolSpotUNIUSDT :
	SymbolSpotUNIUSDT = SymbolSpot("UNIUSDT")
	// SymbolSpotUNIBTC :
	SymbolSpotUNIBTC = SymbolSpot("UNIBTC")
	// SymbolSpotDOTUSDT :
	SymbolSpotDOTUSDT = SymbolSpot("DOTUSDT")
	// SymbolSpotETHBTC :
	SymbolSpotETHBTC = SymbolSpot("ETHBTC")
	// SymbolSpotEOSETH :
	SymbolSpotEOSETH = SymbolSpot("EOSETH")
	// SymbolSpotBTCETH :
	SymbolSpotBTCETH = SymbolSpot("BTCETH")
	// SymbolSpotBTTUSDT :
	SymbolSpotBTTUSDT = SymbolSpot("BTTUSDT")
	// SymbolSpotXLMUSDT :
	SymbolSpotXLMUSDT = SymbolSpot("XLMUSDT")
	// SymbolSpotLTCUSDT :
	SymbolSpotLTCUSDT = SymbolSpot("LTCUSDT")
	// SymbolSpotXRPBTC :
	SymbolSpotXRPBTC = SymbolSpot("XRPBTC")
	// SymbolSpotXRPEOS :
	SymbolSpotXRPEOS = SymbolSpot("XRPEOS")
	// SymbolSpotDOGEUSDT :
	SymbolSpotDOGEUSDT = SymbolSpot("DOGEUSDT")
	// SymbolSpotBITUSDT :
	SymbolSpotBITUSDT = SymbolSpot("BITUSDT")
	// SymbolSpotADAUSDT :
	SymbolSpotADAUSDT = SymbolSpot("ADAUSDT")
	// SymbolSpotXTZUSDT :
	SymbolSpotXTZUSDT = SymbolSpot("XTZUSDT")
	// SymbolSpotAXSUSDT :
	SymbolSpotAXSUSDT = SymbolSpot("AXSUSDT")
	// SymbolSpotDYDXUSDT :
	SymbolSpotDYDXUSDT = SymbolSpot("DYDXUSDT")
	// SymbolSpotPMTEST2USDT :
	SymbolSpotPMTEST2USDT = SymbolSpot("PMTEST2USDT")
	// SymbolSpotPERPUSDT :
	SymbolSpotPERPUSDT = SymbolSpot("PERPUSDT")
	// SymbolSpotGRTUSDT :
	SymbolSpotGRTUSDT = SymbolSpot("GRTUSDT")
	// SymbolSpotUSDCUSDT :
	SymbolSpotUSDCUSDT = SymbolSpot("USDCUSDT")
	// SymbolSpotSOLUSDT :
	SymbolSpotSOLUSDT = SymbolSpot("SOLUSDT")
	// SymbolSpotOMGUSDT :
	SymbolSpotOMGUSDT = SymbolSpot("OMGUSDT")
	// SymbolSpotLUNCUSDT :
	SymbolSpotLUNCUSDT = SymbolSpot("LUNCUSDT")
	// SymbolSpotPMTEST15USDT :
	SymbolSpotPMTEST15USDT = SymbolSpot("PMTEST15USDT")
	// SymbolSpotICPETH :
	SymbolSpotICPETH = SymbolSpot("ICPETH")
	// SymbolSpotPMTEST7ETH :
	SymbolSpotPMTEST7ETH = SymbolSpot("PMTEST7ETH")
	// SymbolSpotBTCUSDC :
	SymbolSpotBTCUSDC = SymbolSpot("BTCUSDC")
	// SymbolSpotETHUSDC :
	SymbolSpotETHUSDC = SymbolSpot("ETHUSDC")
	// SymbolSpotBITETH :
	SymbolSpotBITETH = SymbolSpot("BITETH")
	// SymbolSpotPMTEST8PMTEST7 :
	SymbolSpotPMTEST8PMTEST7 = SymbolSpot("PMTEST8PMTEST7")
	// SymbolSpotPMTEST7USDC :
	SymbolSpotPMTEST7USDC = SymbolSpot("PMTEST7USDC")
	// SymbolSpotPMTEST8USDC :
	SymbolSpotPMTEST8USDC = SymbolSpot("PMTEST8USDC")
	// SymbolSpotUSDTBIT :
	SymbolSpotUSDTBIT = SymbolSpot("USDTBIT")
	// SymbolSpotXRP3LUSDT :
	SymbolSpotXRP3LUSDT = SymbolSpot("XRP3LUSDT")
	// SymbolSpotXRP3SUSDT :
	SymbolSpotXRP3SUSDT = SymbolSpot("XRP3SUSDT")
	// SymbolSpotUNIBIT :
	SymbolSpotUNIBIT = SymbolSpot("UNIBIT")
	// SymbolSpotUSDTTESTNETCS1 :
	SymbolSpotUSDTTESTNETCS1 = SymbolSpot("USDTTESTNETCS1")
	// SymbolSpotDONNYTESTUSDT :
	SymbolSpotDONNYTESTUSDT = SymbolSpot("DONNYTESTUSDT")
	// SymbolSpotEOSBIT :
	SymbolSpotEOSBIT = SymbolSpot("EOSBIT")
	// SymbolSpotXLMQQT :
	SymbolSpotXLMQQT = SymbolSpot("XLMQQT")
	// SymbolSpotLTCXLM :
	SymbolSpotLTCXLM = SymbolSpot("LTCXLM")
	// SymbolSpotXLMEOS :
	SymbolSpotXLMEOS = SymbolSpot("XLMEOS")
	// SymbolSpotXLMXRP :
	SymbolSpotXLMXRP = SymbolSpot("XLMXRP")
	// SymbolSpotXLMSHIBI :
	SymbolSpotXLMSHIBI = SymbolSpot("XLMSHIBI")
	// SymbolSpotXLMTRX :
	SymbolSpotXLMTRX = SymbolSpot("XLMTRX")
	// SymbolSpotXLMMFT :
	SymbolSpotXLMMFT = SymbolSpot("XLMMFT")
	// SymbolSpotXLMQTHQ :
	SymbolSpotXLMQTHQ = SymbolSpot("XLMQTHQ")
	// SymbolSpotXLMNEO :
	SymbolSpotXLMNEO = SymbolSpot("XLMNEO")
	// SymbolSpotUNILTC :
	SymbolSpotUNILTC = SymbolSpot("UNILTC")
	// SymbolSpotUNINEO :
	SymbolSpotUNINEO = SymbolSpot("UNINEO")
	// SymbolSpotBTC3SUSDT :
	SymbolSpotBTC3SUSDT = SymbolSpot("BTC3SUSDT")
	// SymbolSpotBTC3LUSDT :
	SymbolSpotBTC3LUSDT = SymbolSpot("BTC3LUSDT")
	// SymbolSpotQTHQQQT :
	SymbolSpotQTHQQQT = SymbolSpot("QTHQQQT")
	// SymbolSpotETH3LUSDT :
	SymbolSpotETH3LUSDT = SymbolSpot("ETH3LUSDT")
	// SymbolSpotSPOTTEST3USDT :
	SymbolSpotSPOTTEST3USDT = SymbolSpot("SPOTTEST3USDT")
	// SymbolSpotPMTEST12ETH :
	SymbolSpotPMTEST12ETH = SymbolSpot("PMTEST12ETH")
	// SymbolSpotPMTEST12UST :
	SymbolSpotPMTEST12UST = SymbolSpot("PMTEST12UST")
	// SymbolSpotUSDTUST :
	SymbolSpotUSDTUST = SymbolSpot("USDTUST")
	// SymbolSpotPMTEST12DAI :
	SymbolSpotPMTEST12DAI = SymbolSpot("PMTEST12DAI")
	// SymbolSpotUSDTDAI :
	SymbolSpotUSDTDAI = SymbolSpot("USDTDAI")
	// SymbolSpotXXXXYFI :
	SymbolSpotXXXXYFI = SymbolSpot("XXXXYFI")
	// SymbolSpotUSTCUSDT :
	SymbolSpotUSTCUSDT = SymbolSpot("USTCUSDT")
	// SymbolSpotDONNYTEST02USDT :
	SymbolSpotDONNYTEST02USDT = SymbolSpot("DONNYTEST02USDT")
	// SymbolSpotPMTEST047USDT :
	SymbolSpotPMTEST047USDT = SymbolSpot("PMTEST047USDT")
	// SymbolSpotPMTESTAUSDT :
	SymbolSpotPMTESTAUSDT = SymbolSpot("PMTESTAUSDT")
	// SymbolSpotXRPBIT :
	SymbolSpotXRPBIT = SymbolSpot("XRPBIT")
	// SymbolSpotPMTESTCUSDT :
	SymbolSpotPMTESTCUSDT = SymbolSpot("PMTESTCUSDT")
	// SymbolSpotPMTESTZUSDT :
	SymbolSpotPMTESTZUSDT = SymbolSpot("PMTESTZUSDT")
	// SymbolSpotPMTESTBUSDT :
	SymbolSpotPMTESTBUSDT = SymbolSpot("PMTESTBUSDT")
	// SymbolSpotPMTESTDUSDT :
	SymbolSpotPMTESTDUSDT = SymbolSpot("PMTESTDUSDT")
	// SymbolSpotPMTESTABTC :
	SymbolSpotPMTESTABTC = SymbolSpot("PMTESTABTC")
	// SymbolSpotDYDXETH :
	SymbolSpotDYDXETH = SymbolSpot("DYDXETH")
	// SymbolSpotDYDXQQT :
	SymbolSpotDYDXQQT = SymbolSpot("DYDXQQT")
	// SymbolSpotNEODYDX :
	SymbolSpotNEODYDX = SymbolSpot("NEODYDX")
	// SymbolSpotDYDXXRP :
	SymbolSpotDYDXXRP = SymbolSpot("DYDXXRP")
	// SymbolSpotEOSDYDX :
	SymbolSpotEOSDYDX = SymbolSpot("EOSDYDX")
	// SymbolSpotDYDXNEO :
	SymbolSpotDYDXNEO = SymbolSpot("DYDXNEO")
	// SymbolSpotDYDXDOGE :
	SymbolSpotDYDXDOGE = SymbolSpot("DYDXDOGE")
	// SymbolSpotDOGEDYDX :
	SymbolSpotDOGEDYDX = SymbolSpot("DOGEDYDX")
	// SymbolSpotMFTDYDX :
	SymbolSpotMFTDYDX = SymbolSpot("MFTDYDX")
	// SymbolSpotXRPDYDX :
	SymbolSpotXRPDYDX = SymbolSpot("XRPDYDX")
	// SymbolSpotETHDYDX :
	SymbolSpotETHDYDX = SymbolSpot("ETHDYDX")
	// SymbolSpotQQTDYDX :
	SymbolSpotQQTDYDX = SymbolSpot("QQTDYDX")
	// SymbolSpotDYDXPIG :
	SymbolSpotDYDXPIG = SymbolSpot("DYDXPIG")
	// SymbolSpotQQTHT :
	SymbolSpotQQTHT = SymbolSpot("QQTHT")
	// SymbolSpotEOSHT :
	SymbolSpotEOSHT = SymbolSpot("EOSHT")
	// SymbolSpotHTQQT :
	SymbolSpotHTQQT = SymbolSpot("HTQQT")
	// SymbolSpotHTEOS :
	SymbolSpotHTEOS = SymbolSpot("HTEOS")
	// SymbolSpotMVUSDT :
	SymbolSpotMVUSDT = SymbolSpot("MVUSDT")
	// SymbolSpotBTCBIT :
	SymbolSpotBTCBIT = SymbolSpot("BTCBIT")
	// SymbolSpotPMTESTEUSDT :
	SymbolSpotPMTESTEUSDT = SymbolSpot("PMTESTEUSDT")
	// SymbolSpotPMTEST2USDC :
	SymbolSpotPMTEST2USDC = SymbolSpot("PMTEST2USDC")
	// SymbolSpotPMTEST6USDC :
	SymbolSpotPMTEST6USDC = SymbolSpot("PMTEST6USDC")
	// SymbolSpotADAUSDC :
	SymbolSpotADAUSDC = SymbolSpot("ADAUSDC")
	// SymbolSpotUSDTTEST :
	SymbolSpotUSDTTEST = SymbolSpot("USDTTEST")
	// SymbolSpotBTCTEST :
	SymbolSpotBTCTEST = SymbolSpot("BTCTEST")
	// SymbolSpotPMTEST12USDT :
	SymbolSpotPMTEST12USDT = SymbolSpot("PMTEST12USDT")
	// SymbolSpotPMTEST12BTC :
	SymbolSpotPMTEST12BTC = SymbolSpot("PMTEST12BTC")
	// SymbolSpotPORTUGALUSDT :
	SymbolSpotPORTUGALUSDT = SymbolSpot("PORTUGALUSDT")
	// SymbolSpotEOS3LUSDT :
	SymbolSpotEOS3LUSDT = SymbolSpot("EOS3LUSDT")
	// SymbolSpotGRPCUSDT :
	SymbolSpotGRPCUSDT = SymbolSpot("GRPCUSDT")
	// SymbolSpotGRPCBTC :
	SymbolSpotGRPCBTC = SymbolSpot("GRPCBTC")
	// SymbolSpotUSDTETH :
	SymbolSpotUSDTETH = SymbolSpot("USDTETH")
	// SymbolSpotGRPCETH :
	SymbolSpotGRPCETH = SymbolSpot("GRPCETH")
	// SymbolSpotPORTUGALEOS :
	SymbolSpotPORTUGALEOS = SymbolSpot("PORTUGALEOS")
	// SymbolSpotPMTEST03EOS :
	SymbolSpotPMTEST03EOS = SymbolSpot("PMTEST03EOS")
	// SymbolSpotPMTEST03ETH :
	SymbolSpotPMTEST03ETH = SymbolSpot("PMTEST03ETH")
	// SymbolSpotPMTEST03XRP :
	SymbolSpotPMTEST03XRP = SymbolSpot("PMTEST03XRP")
	// SymbolSpotDFGUSDT :
	SymbolSpotDFGUSDT = SymbolSpot("DFGUSDT")
	// SymbolSpotLANG1ETH :
	SymbolSpotLANG1ETH = SymbolSpot("LANG1ETH")
	// SymbolSpotSOLOETH :
	SymbolSpotSOLOETH = SymbolSpot("SOLOETH")
	// SymbolSpotSOLOUSDT :
	SymbolSpotSOLOUSDT = SymbolSpot("SOLOUSDT")
	// SymbolSpotWERUSDT :
	SymbolSpotWERUSDT = SymbolSpot("WERUSDT")
	// SymbolSpotTESTTUSDT :
	SymbolSpotTESTTUSDT = SymbolSpot("TESTTUSDT")
	// SymbolSpotSOL3SUSDT :
	SymbolSpotSOL3SUSDT = SymbolSpot("SOL3SUSDT")
	// SymbolSpotSOL3LUSDT :
	SymbolSpotSOL3LUSDT = SymbolSpot("SOL3LUSDT")
	// SymbolSpotAAVEBTC :
	SymbolSpotAAVEBTC = SymbolSpot("AAVEBTC")
	// SymbolSpotXLMBTC :
	SymbolSpotXLMBTC = SymbolSpot("XLMBTC")
	// SymbolSpotLTCBTC :
	SymbolSpotLTCBTC = SymbolSpot("LTCBTC")
	// SymbolSpotPMTEST16USDT :
	SymbolSpotPMTEST16USDT = SymbolSpot("PMTEST16USDT")
	// SymbolSpotFFFFUSDT :
	SymbolSpotFFFFUSDT = SymbolSpot("FFFFUSDT")
	// SymbolSpotPORTUGALETH :
	SymbolSpotPORTUGALETH = SymbolSpot("PORTUGALETH")
	// SymbolSpotZENUSDT :
	SymbolSpotZENUSDT = SymbolSpot("ZENUSDT")
	// SymbolSpotSOS3LBTC :
	SymbolSpotSOS3LBTC = SymbolSpot("SOS3LBTC")
	// SymbolSpotSOS3SUSDT :
	SymbolSpotSOS3SUSDT = SymbolSpot("SOS3SUSDT")
	// SymbolSpotSOS3LUSDT :
	SymbolSpotSOS3LUSDT = SymbolSpot("SOS3LUSDT")
	// SymbolSpotICXUSDT :
	SymbolSpotICXUSDT = SymbolSpot("ICXUSDT")
	// SymbolSpotSTXUSDT :
	SymbolSpotSTXUSDT = SymbolSpot("STXUSDT")
	// SymbolSpotSOLBIT :
	SymbolSpotSOLBIT = SymbolSpot("SOLBIT")
	// SymbolSpotPMTEST001USDT :
	SymbolSpotPMTEST001USDT = SymbolSpot("PMTEST001USDT")
	// SymbolSpotSOLEOS :
	SymbolSpotSOLEOS = SymbolSpot("SOLEOS")
	// SymbolSpotTRIBLUSDT :
	SymbolSpotTRIBLUSDT = SymbolSpot("TRIBLUSDT")
	// SymbolSpotBTGETH :
	SymbolSpotBTGETH = SymbolSpot("BTGETH")
	// SymbolSpotAVAXUSDT :
	SymbolSpotAVAXUSDT = SymbolSpot("AVAXUSDT")
	// SymbolSpotSANDUSDT :
	SymbolSpotSANDUSDT = SymbolSpot("SANDUSDT")
	// SymbolSpotBTGUSDC :
	SymbolSpotBTGUSDC = SymbolSpot("BTGUSDC")
	// SymbolSpotBTGBIT :
	SymbolSpotBTGBIT = SymbolSpot("BTGBIT")
	// SymbolSpotBTTETH :
	SymbolSpotBTTETH = SymbolSpot("BTTETH")
	// SymbolSpotBUSDUSDT :
	SymbolSpotBUSDUSDT = SymbolSpot("BUSDUSDT")
	// SymbolSpotNEOEOS :
	SymbolSpotNEOEOS = SymbolSpot("NEOEOS")
	// SymbolSpotHNTUSDT :
	SymbolSpotHNTUSDT = SymbolSpot("HNTUSDT")
	// SymbolSpotNEOETH :
	SymbolSpotNEOETH = SymbolSpot("NEOETH")
	// SymbolSpotUNIETH :
	SymbolSpotUNIETH = SymbolSpot("UNIETH")
	// SymbolSpotLUNCEOS :
	SymbolSpotLUNCEOS = SymbolSpot("LUNCEOS")
	// SymbolSpotLUNCXRP :
	SymbolSpotLUNCXRP = SymbolSpot("LUNCXRP")
	// SymbolSpotNEOBIT :
	SymbolSpotNEOBIT = SymbolSpot("NEOBIT")
	// SymbolSpotDOGEBRL :
	SymbolSpotDOGEBRL = SymbolSpot("DOGEBRL")
	// SymbolSpotBRLUSDT :
	SymbolSpotBRLUSDT = SymbolSpot("BRLUSDT")
	// SymbolSpotSOLUSD :
	SymbolSpotSOLUSD = SymbolSpot("SOLUSD")
	// SymbolSpotUSDEUR :
	SymbolSpotUSDEUR = SymbolSpot("USDEUR")
	// SymbolSpotUSDTEUR :
	SymbolSpotUSDTEUR = SymbolSpot("USDTEUR")
	// SymbolSpotUSDTUSD :
	SymbolSpotUSDTUSD = SymbolSpot("USDTUSD")
	// SymbolSpotSOLUSDC :
	SymbolSpotSOLUSDC = SymbolSpot("SOLUSDC")
	// SymbolSpotDOTUSDC :
	SymbolSpotDOTUSDC = SymbolSpot("DOTUSDC")
	// SymbolSpotXRPUSDC :
	SymbolSpotXRPUSDC = SymbolSpot("XRPUSDC")
	// SymbolSpotBITUSDC :
	SymbolSpotBITUSDC = SymbolSpot("BITUSDC")
	// SymbolSpotPMTEST15BTC :
	SymbolSpotPMTEST15BTC = SymbolSpot("PMTEST15BTC")
	// SymbolSpotDCRUSDT :
	SymbolSpotDCRUSDT = SymbolSpot("DCRUSDT")
	// SymbolSpotEOSDAI :
	SymbolSpotEOSDAI = SymbolSpot("EOSDAI")
	// SymbolSpotSHIBIDAI :
	SymbolSpotSHIBIDAI = SymbolSpot("SHIBIDAI")
)
View Source
const (
	// SpotWebsocketV1PublicV1EventSubscribe :
	SpotWebsocketV1PublicV1EventSubscribe = "sub"
	// SpotWebsocketV1PublicV1EventUnsubscribe :
	SpotWebsocketV1PublicV1EventUnsubscribe = "cancel"
)
View Source
const (
	// SpotWebsocketV1PublicV2EventSubscribe :
	SpotWebsocketV1PublicV2EventSubscribe = "sub"
	// SpotWebsocketV1PublicV2EventUnsubscribe :
	SpotWebsocketV1PublicV2EventUnsubscribe = "cancel"
)
View Source
const (
	// SpotWebsocketV1PrivateEventTypeOutboundAccountInfo :
	SpotWebsocketV1PrivateEventTypeOutboundAccountInfo = "outboundAccountInfo"
)
View Source
const (
	// SpotWebsocketV1PrivatePath :
	SpotWebsocketV1PrivatePath = "/spot/ws"
)
View Source
const (
	// SpotWebsocketV1PublicV1Path :
	SpotWebsocketV1PublicV1Path = "/spot/quote/ws/v1"
)
View Source
const (
	// SpotWebsocketV1PublicV1TopicTrade :
	SpotWebsocketV1PublicV1TopicTrade = SpotWebsocketV1PublicV1Topic("trade")
)
View Source
const (
	// SpotWebsocketV1PublicV2Path :
	SpotWebsocketV1PublicV2Path = "/spot/quote/ws/v2"
)
View Source
const (
	// SpotWebsocketV1PublicV2TopicTrade :
	SpotWebsocketV1PublicV2TopicTrade = SpotWebsocketV1PublicV2Topic("trade")
)
View Source
const (
	// TestNetBaseURL :
	TestNetBaseURL = "https://api-testnet.bybit.com"
)
View Source
const (
	// TestWebsocketBaseURL :
	TestWebsocketBaseURL = "wss://stream-testnet.bybit.com"
)

Variables

View Source
var (
	// ErrPathNotFound : Request path not found
	ErrPathNotFound = errors.New("path not found")
	// ErrAccessDenied : Access denied
	ErrAccessDenied = errors.New("access denied")
)

Functions

func IsErrWebsocketClosed

func IsErrWebsocketClosed(err error) bool

IsErrWebsocketClosed :

Types

type AccountAssetQueryInternalDepositRecordsListItem added in v1.0.9

type AccountAssetQueryInternalDepositRecordsListItem struct {
	Id          string `json:"id"`
	Type        int    `json:"type"`
	Coin        string `json:"coin"`
	Amount      string `json:"amount"`
	Status      int    `json:"status"`
	Address     string `json:"address"`
	CreatedTime string `json:"createdTime"`
}

AccountAssetQueryInternalDepositRecordsListItem :

type AccountAssetQueryInternalDepositRecordsListParam added in v1.0.9

type AccountAssetQueryInternalDepositRecordsListParam struct {
	Coin      CoinContract `url:"coin,omitempty"`
	StartTime int          `url:"startTime,omitempty"`
	EndTime   int          `url:"endTime,omitempty"`
	Limit     int          `url:"limit,omitempty"`
	Cursor    string       `url:"cursor,omitempty"`
}

AccountAssetQueryInternalDepositRecordsListParam :

type AccountAssetQueryInternalDepositRecordsListResponse added in v1.0.9

type AccountAssetQueryInternalDepositRecordsListResponse struct {
	CommonV3Response `json:",inline"`
	Result           AccountAssetQueryInternalDepositRecordsListResult `json:"result"`
}

AccountAssetQueryInternalDepositRecordsListResponse :

type AccountAssetQueryInternalDepositRecordsListResult added in v1.0.9

type AccountAssetQueryInternalDepositRecordsListResult struct {
	List           []AccountAssetQueryInternalDepositRecordsListItem `json:"rows"`
	NextPageCursor string                                            `json:"nextPageCursor"`
}

AccountAssetQueryInternalDepositRecordsListResult :

type AccountAssetQueryInternalTransferListItem added in v1.0.3

type AccountAssetQueryInternalTransferListItem struct {
	TransferId      string `json:"transferId"`
	Coin            string `json:"coin"`
	Amount          string `json:"amount"`
	FromAccountType string `json:"fromAccountType"`
	ToAccountType   string `json:"toAccountType"`
	Timestamp       string `json:"timestamp"`
	Status          string `json:"status"`
}

AccountAssetQueryInternalTransferListItem :

type AccountAssetQueryInternalTransferListParam added in v1.0.3

type AccountAssetQueryInternalTransferListParam struct {
	TransferId string       `url:"transferId,omitempty"`
	Coin       CoinContract `url:"coin,omitempty"`
	Status     string       `url:"status,omitempty"`
	StartTime  int          `url:"startTime,omitempty"`
	EndTime    int          `url:"endTime,omitempty"`
	Limit      int          `url:"limit,omitempty"`
	Cursor     string       `url:"cursor,omitempty"`
}

AccountAssetQueryInternalTransferListParam :

type AccountAssetQueryInternalTransferListResponse added in v1.0.3

type AccountAssetQueryInternalTransferListResponse struct {
	CommonV3Response `json:",inline"`
	Result           AccountAssetQueryInternalTransferListResult `json:"result"`
}

AccountAssetQueryInternalTransferListResponse :

type AccountAssetQueryInternalTransferListResult added in v1.0.3

type AccountAssetQueryInternalTransferListResult struct {
	List           []AccountAssetQueryInternalTransferListItem `json:"list"`
	NextPageCursor string                                      `json:"nextPageCursor"`
}

AccountAssetQueryInternalTransferListResult :

type AccountAssetQueryMasterSubTransferListItem added in v1.0.9

type AccountAssetQueryMasterSubTransferListItem struct {
	TransferId  string `json:"transferId"`
	Coin        string `json:"coin"`
	Amount      string `json:"amount"`
	MemberId    int    `json:"memberId"`
	SubMemberId string `json:"subMemberId"`
	Timestamp   string `json:"timestamp"`
	Status      string `json:"status"`
	Type        string `json:"type"`
}

AccountAssetQueryMasterSubTransferListItem :

type AccountAssetQueryMasterSubTransferListParam added in v1.0.9

type AccountAssetQueryMasterSubTransferListParam struct {
	TransferId string       `url:"transferId,omitempty"`
	Coin       CoinContract `url:"coin,omitempty"`
	Status     string       `url:"status,omitempty"`
	StartTime  int          `url:"startTime,omitempty"`
	EndTime    int          `url:"endTime,omitempty"`
	Limit      int          `url:"limit,omitempty"`
	Cursor     string       `url:"cursor,omitempty"`
}

AccountAssetQueryMasterSubTransferListParam :

type AccountAssetQueryMasterSubTransferListResponse added in v1.0.9

type AccountAssetQueryMasterSubTransferListResponse struct {
	CommonV3Response `json:",inline"`
	Result           AccountAssetQueryMasterSubTransferListResult `json:"result"`
}

AccountAssetQueryMasterSubTransferListResponse :

type AccountAssetQueryMasterSubTransferListResult added in v1.0.9

type AccountAssetQueryMasterSubTransferListResult struct {
	List           []AccountAssetQueryMasterSubTransferListItem `json:"list"`
	NextPageCursor string                                       `json:"nextPageCursor"`
}

AccountAssetQueryMasterSubTransferListResult :

type AccountAssetService

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

AccountAssetService :

func (*AccountAssetService) QueryInternalDepositRecordsList added in v1.0.9

func (*AccountAssetService) QueryInternalTransferList added in v1.0.3

func (*AccountAssetService) QueryMasterSubTransferList added in v1.0.9

type AccountRatioParam

type AccountRatioParam struct {
	Symbol SymbolFuture `url:"symbol"`
	Period Period       `url:"period"`

	Limit *int `url:"limit,omitempty"`
}

AccountRatioParam :

type AccountRatioResponse

type AccountRatioResponse struct {
	CommonResponse `json:",inline"`
	Result         []AccountRatioResult `json:"result"`
}

AccountRatioResponse :

type AccountRatioResult

type AccountRatioResult struct {
	Symbol    SymbolFuture `json:"symbol"`
	BuyRatio  float64      `json:"buy_ratio"`
	SellRatio float64      `json:"sell_ratio"`
	Timestamp int          `json:"timestamp"`
}

AccountRatioResult :

type Balance

type Balance struct {
	Equity           float64 `json:"equity"`
	AvailableBalance float64 `json:"available_balance"`
	UsedMargin       float64 `json:"used_margin"`
	OrderMargin      float64 `json:"order_margin"`
	PositionMargin   float64 `json:"position_margin"`
	OccClosingFee    float64 `json:"occ_closing_fee"`
	OccFundingFee    float64 `json:"occ_funding_fee"`
	WalletBalance    float64 `json:"wallet_balance"`
	RealisedPnl      float64 `json:"realised_pnl"`
	UnrealisedPnl    float64 `json:"unrealised_pnl"`
	CumRealisedPnl   float64 `json:"cum_realised_pnl"`
	GivenCash        float64 `json:"given_cash"`
	ServiceCash      float64 `json:"service_cash"`
}

Balance :

type BalanceResponse

type BalanceResponse struct {
	CommonResponse `json:",inline"`
	Result         BalanceResult `json:"result"`
}

BalanceResponse :

type BalanceResult

type BalanceResult struct {
	Balance map[Coin]Balance
}

BalanceResult :

func (*BalanceResult) UnmarshalJSON

func (r *BalanceResult) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type BigDealParam

type BigDealParam struct {
	Symbol SymbolFuture `url:"symbol"`

	Limit *int `url:"limit,omitempty"`
}

BigDealParam :

type BigDealResponse

type BigDealResponse struct {
	CommonResponse `json:",inline"`
	Result         []BigDealResult `json:"result"`
}

BigDealResponse :

type BigDealResult

type BigDealResult struct {
	Symbol    SymbolFuture `json:"symbol"`
	Side      Side         `json:"side"`
	Timestamp int          `json:"timestamp"`
	Value     float64      `json:"value"`
}

BigDealResult :

type CancelAllFuturesOrderParam

type CancelAllFuturesOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

CancelAllFuturesOrderParam :

type CancelAllFuturesOrderResponse

type CancelAllFuturesOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []CancelAllFuturesOrderResult `json:"result"`
}

CancelAllFuturesOrderResponse :

type CancelAllFuturesOrderResult

type CancelAllFuturesOrderResult struct {
	ClOrdID     string       `json:"clOrdID"`
	UserID      int          `json:"user_id"`
	Symbol      SymbolFuture `json:"symbol"`
	Side        Side         `json:"side"`
	OrderType   OrderType    `json:"order_type"`
	Price       string       `json:"price"`
	Qty         float64      `json:"qty"`
	TimeInForce TimeInForce  `json:"time_in_force"`
	CreateType  string       `json:"create_type"`
	CancelType  string       `json:"cancel_type"`
	OrderStatus OrderStatus  `json:"order_status"`
	LeavesQty   float64      `json:"leaves_qty"`
	LeavesValue string       `json:"leaves_value"`
	CreatedAt   string       `json:"created_at"`
	UpdatedAt   string       `json:"updated_at"`
	CrossStatus string       `json:"cross_status"`
	CrossSeq    int          `json:"cross_seq"`
}

CancelAllFuturesOrderResult :

type CancelAllFuturesStopOrderParam

type CancelAllFuturesStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

CancelAllFuturesStopOrderParam :

type CancelAllFuturesStopOrderResponse

type CancelAllFuturesStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []CancelAllFuturesStopOrderResult `json:"result"`
}

CancelAllFuturesStopOrderResponse :

type CancelAllFuturesStopOrderResult

type CancelAllFuturesStopOrderResult struct {
	ClOrdID           string              `json:"clOrdID"`
	UserID            int                 `json:"user_id"`
	Symbol            SymbolFuture        `json:"symbol"`
	Side              Side                `json:"side"`
	OrderType         OrderType           `json:"order_type"`
	Price             string              `json:"price"`
	Qty               float64             `json:"qty"`
	TimeInForce       TimeInForce         `json:"time_in_force"`
	CreateType        string              `json:"create_type"`
	CancelType        string              `json:"cancel_type"`
	OrderStatus       OrderStatus         `json:"order_status"`
	LeavesQty         float64             `json:"leaves_qty"`
	LeavesValue       string              `json:"leaves_value"`
	CreatedAt         string              `json:"created_at"`
	UpdatedAt         string              `json:"updated_at"`
	CrossStatus       string              `json:"cross_status"`
	CrossSeq          int                 `json:"cross_seq"`
	StopOrderType     StopOrderTypeFuture `json:"stop_order_type"`
	TriggerBy         TriggerByFuture     `json:"trigger_by"`
	BasePrice         string              `json:"base_price"`
	ExpectedDirection string              `json:"expected_direction"`
}

CancelAllFuturesStopOrderResult :

type CancelAllLinearStopOrderParam

type CancelAllLinearStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

CancelAllLinearStopOrderParam :

type CancelAllLinearStopOrderResponse

type CancelAllLinearStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelAllLinearStopOrderResult `json:"result"`
}

CancelAllLinearStopOrderResponse :

type CancelAllLinearStopOrderResult

type CancelAllLinearStopOrderResult []string

CancelAllLinearStopOrderResult :

type CancelAllOrderParam

type CancelAllOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

CancelAllOrderParam :

type CancelAllOrderResponse

type CancelAllOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []CancelAllOrderResult `json:"result"`
}

CancelAllOrderResponse :

type CancelAllOrderResult

type CancelAllOrderResult struct {
	ClOrdID     string       `json:"clOrdID"`
	OrderLinkID string       `json:"order_link_id"`
	UserID      int          `json:"user_id"`
	Symbol      SymbolFuture `json:"symbol"`
	Side        Side         `json:"side"`
	OrderType   OrderType    `json:"order_type"`
	Price       string       `json:"price"`
	Qty         float64      `json:"qty"`
	TimeInForce TimeInForce  `json:"time_in_force"`
	CreateType  string       `json:"create_type"`
	CancelType  string       `json:"cancel_type"`
	OrderStatus OrderStatus  `json:"order_status"`
	LeavesQty   float64      `json:"leaves_qty"`
	LeavesValue string       `json:"leaves_value"`
	CreatedAt   string       `json:"created_at"`
	UpdatedAt   string       `json:"updated_at"`
	CrossStatus string       `json:"cross_status"`
	CrossSeq    int          `json:"cross_seq"`
}

CancelAllOrderResult :

type CancelAllStopOrderParam

type CancelAllStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

CancelAllStopOrderParam :

type CancelAllStopOrderResponse

type CancelAllStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []CancelAllStopOrderResult `json:"result"`
}

CancelAllStopOrderResponse :

type CancelAllStopOrderResult

type CancelAllStopOrderResult struct {
	ClOrdID           string              `json:"clOrdID"`
	OrderLinkID       string              `json:"order_link_id"`
	UserID            int                 `json:"user_id"`
	Symbol            SymbolFuture        `json:"symbol"`
	Side              Side                `json:"side"`
	OrderType         OrderType           `json:"order_type"`
	Price             string              `json:"price"`
	Qty               float64             `json:"qty"`
	TimeInForce       TimeInForce         `json:"time_in_force"`
	CreateType        string              `json:"create_type"`
	CancelType        string              `json:"cancel_type"`
	OrderStatus       OrderStatus         `json:"order_status"`
	LeavesQty         float64             `json:"leaves_qty"`
	LeavesValue       string              `json:"leaves_value"`
	CreatedAt         string              `json:"created_at"`
	UpdatedAt         string              `json:"updated_at"`
	CrossStatus       string              `json:"cross_status"`
	CrossSeq          int                 `json:"cross_seq"`
	StopOrderType     StopOrderTypeFuture `json:"stop_order_type"`
	TriggerBy         TriggerByFuture     `json:"trigger_by"`
	BasePrice         string              `json:"base_price"`
	ExpectedDirection string              `json:"expected_direction"`
}

CancelAllStopOrderResult :

type CancelFuturesOrderParam

type CancelFuturesOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	OrderID     *string `json:"order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelFuturesOrderParam :

type CancelFuturesOrderResponse

type CancelFuturesOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelFuturesOrderResult `json:"result"`
}

CancelFuturesOrderResponse :

type CancelFuturesOrderResult

type CancelFuturesOrderResult struct {
	UserID        int          `json:"user_id"`
	OrderID       string       `json:"order_id"`
	Symbol        SymbolFuture `json:"symbol"`
	Side          Side         `json:"side"`
	OrderType     OrderType    `json:"order_type"`
	Price         float64      `json:"price"`
	Qty           float64      `json:"qty"`
	TimeInForce   TimeInForce  `json:"time_in_force"`
	OrderStatus   OrderStatus  `json:"order_status"`
	LastExecTime  float64      `json:"last_exec_time"`
	LastExecPrice float64      `json:"last_exec_price"`
	LeavesQty     float64      `json:"leaves_qty"`
	CumExecQty    float64      `json:"cum_exec_qty"`
	CumExecValue  float64      `json:"cum_exec_value"`
	CumExecFee    float64      `json:"cum_exec_fee"`
	RejectReason  string       `json:"reject_reason"`
	OrderLinkID   string       `json:"order_link_id"`
	CreatedAt     string       `json:"created_at"`
	UpdatedAt     string       `json:"updated_at"`
}

CancelFuturesOrderResult :

type CancelFuturesStopOrderParam

type CancelFuturesStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	StopOrderID *string `json:"stop_order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelFuturesStopOrderParam :

type CancelFuturesStopOrderResponse

type CancelFuturesStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelFuturesStopOrderResult `json:"result"`
}

CancelFuturesStopOrderResponse :

type CancelFuturesStopOrderResult

type CancelFuturesStopOrderResult struct {
	StopOrderID string `json:"stop_order_id"`
}

CancelFuturesStopOrderResult :

type CancelLinearOrder

type CancelLinearOrder struct {
	OrderID string `json:"order_id"`
}

CancelLinearOrder :

type CancelLinearOrderParam

type CancelLinearOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	OrderID     *string `json:"order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelLinearOrderParam :

type CancelLinearOrderResponse

type CancelLinearOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelLinearOrderResult `json:"result"`
}

CancelLinearOrderResponse :

type CancelLinearOrderResult

type CancelLinearOrderResult struct {
	CancelLinearOrder `json:",inline"`
}

CancelLinearOrderResult :

type CancelLinearStopOrderParam

type CancelLinearStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	StopOrderID *string `json:"stop_order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelLinearStopOrderParam :

type CancelLinearStopOrderResponse

type CancelLinearStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelLinearStopOrderResult `json:"result"`
}

CancelLinearStopOrderResponse :

type CancelLinearStopOrderResult

type CancelLinearStopOrderResult struct {
	StopOrderID string `json:"stop_order_id"`
}

CancelLinearStopOrderResult :

type CancelOrder

type CancelOrder struct {
	UserID        int          `json:"user_id"`
	OrderID       string       `json:"order_id"`
	Symbol        SymbolFuture `json:"symbol"`
	Side          Side         `json:"side"`
	OrderType     OrderType    `json:"order_type"`
	Price         float64      `json:"price"`
	Qty           float64      `json:"qty"`
	TimeInForce   TimeInForce  `json:"time_in_force"`
	OrderStatus   OrderStatus  `json:"order_status"`
	LastExecTime  float64      `json:"last_exec_time"`
	LastExecPrice float64      `json:"last_exec_price"`
	LeavesQty     float64      `json:"leaves_qty"`
	CumExecQty    float64      `json:"cum_exec_qty"`
	CumExecValue  float64      `json:"cum_exec_value"`
	CumExecFee    float64      `json:"cum_exec_fee"`
	RejectReason  string       `json:"reject_reason"`
	OrderLinkID   string       `json:"order_link_id"`
	CreatedAt     string       `json:"created_at"`
	UpdatedAt     string       `json:"updated_at"`
}

CancelOrder : so far, same as CreateOrder

type CancelOrderParam

type CancelOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	OrderID     *string `json:"order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelOrderParam :

type CancelOrderResponse

type CancelOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelOrderResult `json:"result"`
}

CancelOrderResponse :

type CancelOrderResult

type CancelOrderResult struct {
	CancelOrder `json:",inline"`
}

CancelOrderResult :

type CancelStopOrderParam

type CancelStopOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	StopOrderID *string `json:"stop_order_id,omitempty"`
	OrderLinkID *string `json:"order_link_id,omitempty"`
}

CancelStopOrderParam :

type CancelStopOrderResponse

type CancelStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CancelStopOrderResult `json:"result"`
}

CancelStopOrderResponse :

type CancelStopOrderResult

type CancelStopOrderResult struct {
	StopOrderID string `json:"stop_order_id"`
}

CancelStopOrderResult :

type CategoryDerivative

type CategoryDerivative string

CategoryDerivative :

type Client

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

Client :

func NewClient

func NewClient() *Client

NewClient :

func (*Client) AccountAsset

func (c *Client) AccountAsset() *AccountAssetService

AccountAsset :

func (*Client) CopyTrading

func (c *Client) CopyTrading() *CopyTradingService

CopyTrading :

func (*Client) Derivative

func (c *Client) Derivative() DerivativeServiceI

Derivative :

func (*Client) Future

func (c *Client) Future() FutureServiceI

Future :

func (*Client) Request

func (c *Client) Request(req *http.Request, dst interface{}) error

Request :

func (*Client) Spot

func (c *Client) Spot() SpotServiceI

Spot :

func (*Client) USDCContract

func (c *Client) USDCContract() USDCContractServiceI

USDCContract :

func (*Client) WithAuth

func (c *Client) WithAuth(key string, secret string) *Client

WithAuth :

func (*Client) WithBaseURL

func (c *Client) WithBaseURL(url string) *Client

WithBaseURL :

func (*Client) WithHTTPClient

func (c *Client) WithHTTPClient(httpClient *http.Client) *Client

WithHTTPClient :

type Coin

type Coin string

Coin :

type CoinContract

type CoinContract string

CoinContract :

type CommonResponse

type CommonResponse struct {
	RetCode          int    `json:"ret_code"`
	RetMsg           string `json:"ret_msg"`
	ExtCode          string `json:"ext_code"`
	ExtInfo          string `json:"ext_info"`
	TimeNow          string `json:"time_now"`
	RateLimitStatus  int    `json:"rate_limit_status"`
	RateLimitResetMs int    `json:"rate_limit_reset_ms"`
	RateLimit        int    `json:"rate_limit"`
}

CommonResponse :

type CommonV3Response

type CommonV3Response struct {
	RetCode    int         `json:"retCode"`
	RetMsg     string      `json:"retMsg"`
	RetExtInfo interface{} `json:"retExtInfo"`
	Time       int         `json:"time"`
}

CommonV3Response :

type ContractClosedProfitAndLossListItem

type ContractClosedProfitAndLossListItem struct {
	Symbol        string `json:"symbol"`
	OrderId       string `json:"orderId"`
	Side          string `json:"side"`
	Qty           string `json:"qty"`
	OrderPrice    string `json:"orderPrice"`
	OrderType     string `json:"orderType"`
	ExecType      string `json:"execType"`
	ClosedSize    string `json:"closedSize"`
	CumEntryValue string `json:"cumEntryValue"`
	AvgEntryPrice string `json:"avgEntryPrice"`
	CumExitValue  string `json:"cumExitValue"`
	AvgExitPrice  string `json:"avgExitPrice"`
	ClosedPnl     string `json:"closedPnl"`
	FillCount     string `json:"fillCount"`
	Leverage      string `json:"leverage"`
	CreatedAt     string `json:"createdAt"`
}

ContractClosedProfitAndLossListItem :

type ContractClosedProfitAndLossParam

type ContractClosedProfitAndLossParam struct {
	Symbol    string `url:"symbol"`
	StartTime int    `url:"startTime,omitempty"`
	EndTime   int    `url:"endTime,omitempty"`
	Limit     *int   `url:"limit,omitempty"`
	Cursor    string `url:"cursor,omitempty"`
}

ContractClosedProfitAndLossParam :

type ContractClosedProfitAndLossResponse

type ContractClosedProfitAndLossResponse struct {
	CommonV3Response `json:",inline"`
	Result           ContractClosedProfitAndLossResult `json:"result"`
}

ContractClosedProfitAndLossResponse :

type ContractClosedProfitAndLossResult

type ContractClosedProfitAndLossResult struct {
	List           []ContractClosedProfitAndLossListItem `json:"list"`
	NextPageCursor string                                `json:"nextPageCursor"`
}

ContractClosedProfitAndLossResult :

type ContractTradeRecordsParam

type ContractTradeRecordsParam struct {
	OrderId   string   `url:"orderId,omitempty"`
	Symbol    string   `url:"symbol"`
	ExecType  ExecType `url:"execType,omitempty"`
	StartTime int      `url:"startTime,omitempty"`
	EndTime   int      `url:"endTime,omitempty"`
	Limit     *int     `url:"limit,omitempty"`
	Cursor    string   `url:"cursor,omitempty"`
}

ContractTradeRecordsParam :

type ContractTradeRecordsResponse

type ContractTradeRecordsResponse struct {
	CommonV3Response `json:",inline"`
	Result           ContractTradeRecordsResult `json:"result"`
}

ContractTradeRecordsResponse :

type ContractTradeRecordsResult

type ContractTradeRecordsResult struct {
	List           []ContractTradeRecordsResultListItem `json:"list"`
	NextPageCursor string                               `json:"nextPageCursor"`
}

ContractTradeRecordsResult :

type ContractTradeRecordsResultListItem

type ContractTradeRecordsResultListItem struct {
	Symbol           string `json:"symbol"`
	ExecFee          string `json:"execFee"`
	ExecId           string `json:"execId"`
	ExecPrice        string `json:"execPrice"`
	ExecQty          string `json:"execQty"`
	ExecType         string `json:"execType"`
	ExecValue        string `json:"execValue"`
	FeeRate          string `json:"feeRate"`
	LastLiquidityInd string `json:"lastLiquidityInd"`
	LeavesQty        string `json:"leavesQty"`
	OrderId          string `json:"orderId"`
	OrderLinkId      string `json:"orderLinkId"`
	OrderPrice       string `json:"orderPrice"`
	OrderQty         string `json:"orderQty"`
	OrderType        string `json:"orderType"`
	StopOrderType    string `json:"stopOrderType"`
	Side             string `json:"side"`
	ExecTime         string `json:"execTime"`
	ClosedSize       string `json:"closedSize"`
}

ContractTradeRecordsResultListItem :

type ContractTypeDerivative

type ContractTypeDerivative string

ContractTypeDerivative :

type ContractWalletBalanceListItem

type ContractWalletBalanceListItem struct {
	Coin             string `json:"coin"`
	Equity           string `json:"equity"`
	WalletBalance    string `json:"walletBalance"`
	PositionMargin   string `json:"positionMargin"`
	AvailableBalance string `json:"availableBalance"`
	OrderMargin      string `json:"orderMargin"`
	OccClosingFee    string `json:"occClosingFee"`
	OccFundingFee    string `json:"occFundingFee"`
	UnrealisedPnl    string `json:"unrealisedPnl"`
	CumRealisedPnl   string `json:"cumRealisedPnl"`
	GivenCash        string `json:"givenCash"`
	ServiceCash      string `json:"serviceCash"`
}

ContractWalletBalanceListItem :

type ContractWalletBalanceParam

type ContractWalletBalanceParam struct {
	Coin CoinContract `url:"coin,omitempty"`
}

ContractWalletBalanceParam :

type ContractWalletBalanceResponse

type ContractWalletBalanceResponse struct {
	CommonV3Response `json:",inline"`
	Result           ContractWalletBalanceResult `json:"result"`
}

ContractWalletBalanceResponse :

type ContractWalletBalanceResult

type ContractWalletBalanceResult struct {
	List []ContractWalletBalanceListItem `json:"list"`
}

ContractWalletBalanceResult :

type ContractWalletFundRecordsListItem

type ContractWalletFundRecordsListItem struct {
	Coin          string `json:"coin"`
	Type          string `json:"type"`
	Amount        string `json:"amount"`
	WalletBalance string `json:"walletBalance"`
	ExecTime      string `json:"execTime"`
}

ContractWalletFundRecordsListItem :

type ContractWalletFundRecordsParam

type ContractWalletFundRecordsParam struct {
	StartTime      string       `url:"startTime,omitempty"`
	EndTime        string       `url:"endTime,omitempty"`
	WalletFundType string       `url:"walletFundType,omitempty"`
	Coin           CoinContract `url:"coin,omitempty"`
	Limit          string       `url:"limit,omitempty"`
	Cursor         string       `url:"cursor,omitempty"`
}

ContractWalletFundRecordsParam :

type ContractWalletFundRecordsResponse

type ContractWalletFundRecordsResponse struct {
	CommonV3Response `json:",inline"`
	Result           ContractWalletFundRecordsResult `json:"result"`
}

ContractWalletFundRecordsResponse :

type ContractWalletFundRecordsResult

type ContractWalletFundRecordsResult struct {
	List           []ContractWalletFundRecordsListItem `json:"list"`
	NextPageCursor string                              `json:"nextPageCursor"`
}

ContractWalletFundRecordsResult :

type CopyTradingService

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

CopyTradingService :

type CreateFuturesOrderParam

type CreateFuturesOrderParam struct {
	Side        Side         `json:"side"`
	Symbol      SymbolFuture `json:"symbol"`
	OrderType   OrderType    `json:"order_type"`
	Qty         int          `json:"qty"`
	TimeInForce TimeInForce  `json:"time_in_force"`

	Price          *float64         `json:"price,omitempty"`
	PositionIdx    *int             `json:"position_idx,omitempty"`
	ReduceOnly     *bool            `json:"reduce_only,omitempty"`
	CloseOnTrigger *bool            `json:"close_on_trigger,omitempty"`
	OrderLinkID    *string          `json:"order_link_id,omitempty"`
	TakeProfit     *float64         `json:"take_profit,omitempty"`
	StopLoss       *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy    *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy    *TriggerByFuture `json:"sl_trigger_by,omitempty"`
}

CreateFuturesOrderParam :

type CreateFuturesOrderResponse

type CreateFuturesOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateFuturesOrderResult `json:"result"`
}

CreateFuturesOrderResponse :

type CreateFuturesOrderResult

type CreateFuturesOrderResult struct {
	UserID        int             `json:"user_id"`
	OrderID       string          `json:"order_id"`
	Symbol        SymbolFuture    `json:"symbol"`
	Side          Side            `json:"side"`
	OrderType     OrderType       `json:"order_type"`
	Price         float64         `json:"price"`
	Qty           float64         `json:"qty"`
	TimeInForce   TimeInForce     `json:"time_in_force"`
	OrderStatus   OrderStatus     `json:"order_status"`
	LastExecTime  float64         `json:"last_exec_time"`
	LastExecPrice float64         `json:"last_exec_price"`
	LeavesQty     float64         `json:"leaves_qty"`
	CumExecQty    float64         `json:"cum_exec_qty"`
	CumExecValue  float64         `json:"cum_exec_value"`
	CumExecFee    float64         `json:"cum_exec_fee"`
	RejectReason  string          `json:"reject_reason"`
	OrderLinkID   string          `json:"order_link_id"`
	CreatedAt     string          `json:"created_at"`
	UpdatedAt     string          `json:"updated_at"`
	TakeProfit    string          `json:"take_profit"`
	StopLoss      string          `json:"stop_loss"`
	TpTriggerBy   TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy   TriggerByFuture `json:"sl_trigger_by"`
}

CreateFuturesOrderResult :

type CreateFuturesStopOrderParam

type CreateFuturesStopOrderParam struct {
	Side        Side         `json:"side"`
	Symbol      SymbolFuture `json:"symbol"`
	OrderType   OrderType    `json:"order_type"`
	Qty         float64      `json:"qty"`
	BasePrice   float64      `json:"base_price"`
	StopPx      float64      `json:"stop_px"`
	TimeInForce TimeInForce  `json:"time_in_force"`

	PositionIdx    *int             `json:"position_idx,omitempty"`
	Price          *float64         `json:"price,omitempty"`
	TriggerBy      *TriggerByFuture `json:"trigger_by,omitempty"`
	CloseOnTrigger *bool            `json:"close_on_trigger,omitempty"`
	OrderLinkID    *string          `json:"order_link_id,omitempty"`
	TakeProfit     *float64         `json:"take_profit,omitempty"`
	StopLoss       *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy    *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy    *TriggerByFuture `json:"sl_trigger_by,omitempty"`
}

CreateFuturesStopOrderParam :

type CreateFuturesStopOrderResponse

type CreateFuturesStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateFuturesStopOrderResult `json:"result"`
}

CreateFuturesStopOrderResponse :

type CreateFuturesStopOrderResult

type CreateFuturesStopOrderResult struct {
	UserID       int             `json:"user_id"`
	Symbol       SymbolFuture    `json:"symbol"`
	Side         Side            `json:"side"`
	OrderType    OrderType       `json:"order_type"`
	Price        string          `json:"price"`
	Qty          string          `json:"qty"`
	TimeInForce  TimeInForce     `json:"time_in_force"`
	Remark       string          `json:"remark"`
	LeavesQty    string          `json:"leaves_qty"`
	LeavesValue  string          `json:"leaves_value"`
	StopPx       string          `json:"stop_px"`
	RejectReason string          `json:"reject_reason"`
	StopOrderID  string          `json:"stop_order_id"`
	OrderLinkID  string          `json:"order_link_id"`
	TriggerBy    TriggerByFuture `json:"trigger_by"`
	BasePrice    string          `json:"base_price"`
	CreatedAt    string          `json:"created_at"`
	UpdatedAt    string          `json:"updated_at"`
	TpTriggerBy  TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture `json:"sl_trigger_by"`
	TakeProfit   string          `json:"take_profit"`
	StopLoss     string          `json:"stop_loss"`
}

CreateFuturesStopOrderResult :

type CreateLinearOrder

type CreateLinearOrder struct {
	OrderID        string          `json:"order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	LastExecPrice  float64         `json:"last_exec_price"`
	CumExecQty     float64         `json:"cum_exec_qty"`
	CumExecValue   float64         `json:"cum_exec_value"`
	CumExecFee     float64         `json:"cum_exec_fee"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
}

CreateLinearOrder :

type CreateLinearOrderParam

type CreateLinearOrderParam struct {
	Side           Side         `json:"side"`
	Symbol         SymbolFuture `json:"symbol"`
	OrderType      OrderType    `json:"order_type"`
	Qty            float64      `json:"qty"`
	TimeInForce    TimeInForce  `json:"time_in_force"`
	ReduceOnly     bool         `json:"reduce_only"`
	CloseOnTrigger bool         `json:"close_on_trigger"`

	Price       *float64         `json:"price,omitempty"`
	TakeProfit  *float64         `json:"take_profit,omitempty"`
	StopLoss    *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy *TriggerByFuture `json:"sl_trigger_by,omitempty"`
	OrderLinkID *string          `json:"order_link_id,omitempty"`
	PositionIdx *int             `json:"position_idx,omitempty"`
}

CreateLinearOrderParam :

type CreateLinearOrderResponse

type CreateLinearOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateLinearOrderResult `json:"result"`
}

CreateLinearOrderResponse :

type CreateLinearOrderResult

type CreateLinearOrderResult struct {
	CreateLinearOrder `json:",inline"`
}

CreateLinearOrderResult :

type CreateLinearStopOrderParam

type CreateLinearStopOrderParam struct {
	Side           Side            `json:"side"`
	Symbol         SymbolFuture    `json:"symbol"`
	OrderType      OrderType       `json:"order_type"`
	Qty            float64         `json:"qty"`
	BasePrice      float64         `json:"base_price"`
	StopPx         float64         `json:"stop_px"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	TriggerBy      TriggerByFuture `json:"trigger_by"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`

	Price       *float64         `json:"price,omitempty"`
	OrderLinkID *string          `json:"order_link_id,omitempty"`
	TakeProfit  *float64         `json:"take_profit,omitempty"`
	StopLoss    *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy *TriggerByFuture `json:"sl_trigger_by,omitempty"`
	PositionIdx *int             `json:"position_idx,omitempty"`
}

CreateLinearStopOrderParam :

type CreateLinearStopOrderResponse

type CreateLinearStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateLinearStopOrderResult `json:"result"`
}

CreateLinearStopOrderResponse :

type CreateLinearStopOrderResult

type CreateLinearStopOrderResult struct {
	StopOrderID    string          `json:"stop_order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	TriggerPrice   float64         `json:"trigger_price"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	BasePrice      string          `json:"base_price"`
	TriggerBy      TriggerByFuture `json:"trigger_by"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
	PositionIdx    int             `json:"position_idx"`
}

CreateLinearStopOrderResult :

type CreateOrder

type CreateOrder struct {
	UserID        int          `json:"user_id"`
	OrderID       string       `json:"order_id"`
	Symbol        SymbolFuture `json:"symbol"`
	Side          Side         `json:"side"`
	OrderType     OrderType    `json:"order_type"`
	Price         float64      `json:"price"`
	Qty           float64      `json:"qty"`
	TimeInForce   TimeInForce  `json:"time_in_force"`
	OrderStatus   OrderStatus  `json:"order_status"`
	LastExecTime  float64      `json:"last_exec_time"`
	LastExecPrice float64      `json:"last_exec_price"`
	LeavesQty     float64      `json:"leaves_qty"`
	CumExecQty    float64      `json:"cum_exec_qty"`
	CumExecValue  float64      `json:"cum_exec_value"`
	CumExecFee    float64      `json:"cum_exec_fee"`
	RejectReason  string       `json:"reject_reason"`
	OrderLinkID   string       `json:"order_link_id"`
	CreatedAt     string       `json:"created_at"`
	UpdatedAt     string       `json:"updated_at"`
}

CreateOrder :

type CreateOrderParam

type CreateOrderParam struct {
	Side        Side         `json:"side"`
	Symbol      SymbolFuture `json:"symbol"`
	OrderType   OrderType    `json:"order_type"`
	Qty         int          `json:"qty"`
	TimeInForce TimeInForce  `json:"time_in_force"`

	Price          *float64 `json:"price,omitempty"`
	TakeProfit     *float64 `json:"take_profit,omitempty"`
	StopLoss       *float64 `json:"stop_loss,omitempty"`
	ReduceOnly     *bool    `json:"reduce_only,omitempty"`
	CloseOnTrigger *bool    `json:"close_on_trigger,omitempty"`
	OrderLinkID    *string  `json:"order_link_id,omitempty"`
}

CreateOrderParam :

type CreateOrderResponse

type CreateOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateOrderResult `json:"result"`
}

CreateOrderResponse :

type CreateOrderResult

type CreateOrderResult struct {
	CreateOrder `json:",inline"`
}

CreateOrderResult :

type CreateStopOrderParam

type CreateStopOrderParam struct {
	Side        Side         `json:"side"`
	Symbol      SymbolFuture `json:"symbol"`
	OrderType   OrderType    `json:"order_type"`
	Qty         int          `json:"qty"`
	BasePrice   float64      `json:"base_price"`
	StopPx      float64      `json:"stop_px"`
	TimeInForce TimeInForce  `json:"time_in_force"`

	Price          *float64         `json:"price,omitempty"`
	TriggerBy      *TriggerByFuture `json:"trigger_by,omitempty"`
	CloseOnTrigger *bool            `json:"close_on_trigger,omitempty"`
	OrderLinkID    *string          `json:"order_link_id,omitempty"`
	TakeProfit     *float64         `json:"take_profit,omitempty"`
	StopLoss       *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy    *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy    *TriggerByFuture `json:"sl_trigger_by,omitempty"`
}

CreateStopOrderParam :

type CreateStopOrderResponse

type CreateStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         CreateStopOrderResult `json:"result"`
}

CreateStopOrderResponse :

type CreateStopOrderResult

type CreateStopOrderResult struct {
	UserID       int             `json:"user_id"`
	Symbol       SymbolFuture    `json:"symbol"`
	Side         Side            `json:"side"`
	OrderType    OrderType       `json:"order_type"`
	Price        string          `json:"price"`
	Qty          string          `json:"qty"`
	TimeInForce  TimeInForce     `json:"time_in_force"`
	Remark       string          `json:"remark"`
	LeavesQty    string          `json:"leaves_qty"`
	LeavesValue  string          `json:"leaves_value"`
	StopPx       string          `json:"stop_px"`
	RejectReason string          `json:"reject_reason"`
	StopOrderID  string          `json:"stop_order_id"`
	OrderLinkID  string          `json:"order_link_id"`
	TriggerBy    TriggerByFuture `json:"trigger_by"`
	BasePrice    string          `json:"base_price"`
	CreatedAt    string          `json:"created_at"`
	UpdatedAt    string          `json:"updated_at"`
	TpTriggerBy  TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture `json:"sl_trigger_by"`
	TakeProfit   string          `json:"take_profit"`
	StopLoss     string          `json:"stop_loss"`
}

CreateStopOrderResult :

type DerivativeCommonService

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

DerivativeCommonService :

func (*DerivativeCommonService) ContractClosedProfitAndLoss

ContractClosedProfitAndLoss :

func (*DerivativeCommonService) ContractTradeRecords

ContractTradeRecords :

func (*DerivativeCommonService) ContractWalletBalance

ContractWalletBalance :

func (*DerivativeCommonService) ContractWalletFundRecords

ContractWalletFundRecords :

func (*DerivativeCommonService) DerivativesIndexPriceKline

DerivativesIndexPriceKline :

func (*DerivativeCommonService) DerivativesInstruments

DerivativesInstruments :

func (*DerivativeCommonService) DerivativesInstrumentsForOption

DerivativesInstrumentsForOption :

func (*DerivativeCommonService) DerivativesKline

DerivativesKline :

func (*DerivativeCommonService) DerivativesMarkPriceKline

DerivativesMarkPriceKline :

func (*DerivativeCommonService) DerivativesOrderBook

DerivativesOrderBook :

func (*DerivativeCommonService) DerivativesTickers

DerivativesTickers :

func (*DerivativeCommonService) DerivativesTickersForOption

DerivativesTickersForOption :

type DerivativeContractService

type DerivativeContractService struct {
	*DerivativeCommonService
	// contains filtered or unexported fields
}

DerivativeContractService :

type DerivativeService

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

DerivativeService :

func (*DerivativeService) Contract

Contract :

func (*DerivativeService) UnifiedMargin

UnifiedMargin :

type DerivativeServiceI

type DerivativeServiceI interface {
	UnifiedMargin() DerivativeUnifiedMarginServiceI
	Contract() DerivativeContractServiceI
}

DerivativeServiceI :

type DerivativeUnifiedMarginService

type DerivativeUnifiedMarginService struct {
	*DerivativeCommonService
	// contains filtered or unexported fields
}

DerivativeUnifiedMarginService :

type DerivativeUnifiedMarginServiceI

DerivativeUnifiedMarginServiceI :

type DerivativesIndexPriceKlineParam

type DerivativesIndexPriceKlineParam struct {
	Category CategoryDerivative `url:"category"`
	Symbol   SymbolDerivative   `url:"symbol"`
	Interval Interval           `url:"interval"`
	Start    int                `url:"start"` // timestamp point for result, in milliseconds
	End      int                `url:"end"`   // timestamp point for result, in milliseconds

	Limit *int `url:"limit,omitempty"`
}

DerivativesIndexPriceKlineParam :

type DerivativesIndexPriceKlineResponse

type DerivativesIndexPriceKlineResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesIndexPriceKlineResult `json:"result"`
}

DerivativesIndexPriceKlineResponse :

type DerivativesIndexPriceKlineResult

type DerivativesIndexPriceKlineResult struct {
	Category CategoryDerivative                         `json:"category"`
	Symbol   SymbolDerivative                           `json:"symbol"`
	List     []DerivativesIndexPriceKlineResultListItem `json:"list"`
}

DerivativesIndexPriceKlineResult :

type DerivativesIndexPriceKlineResultListItem

type DerivativesIndexPriceKlineResultListItem struct {
	Start string `json:"start"`
	Open  string `json:"open"`
	High  string `json:"high"`
	Low   string `json:"low"`
	Close string `json:"close"`
}

DerivativesIndexPriceKlineResultListItem :

func (*DerivativesIndexPriceKlineResultListItem) UnmarshalJSON

func (r *DerivativesIndexPriceKlineResultListItem) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type DerivativesInstrumentsForOptionParam

type DerivativesInstrumentsForOptionParam struct {
	Symbol *SymbolDerivative `url:"symbol,omitempty"`
	Limit  *int              `url:"limit,omitempty"`
	Cursor *string           `url:"cursor,omitempty"`
}

DerivativesInstrumentsForOptionParam :

type DerivativesInstrumentsForOptionResponse

type DerivativesInstrumentsForOptionResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesInstrumentsForOptionResult `json:"result"`
}

DerivativesInstrumentsForOptionResponse :

type DerivativesInstrumentsForOptionResult

type DerivativesInstrumentsForOptionResult struct {
	ResultTotalSize int    `json:"resultTotalSize"`
	Cursor          string `json:"cursor"`
	List            []struct {
		Category        CategoryDerivative `json:"category"`
		Symbol          SymbolDerivative   `json:"symbol"`
		Status          StatusDerivative   `json:"status"`
		BaseCoin        string             `json:"baseCoin"`
		QuoteCoin       string             `json:"quoteCoin"`
		SettleCoin      string             `json:"settleCoin"`
		OptionsType     string             `json:"optionsType"`
		LaunchTime      string             `json:"launchTime"`
		DeliveryTime    string             `json:"deliveryTime"`
		DeliveryFeeRate string             `json:"deliveryFeeRate"`
		PriceFilter     struct {
			MinPrice string `json:"minPrice"`
			MaxPrice string `json:"maxPrice"`
			TickSize string `json:"tickSize"`
		} `json:"priceFilter"`
		LotSizeFilter struct {
			MaxOrderQty string `json:"maxOrderQty"`
			MinOrderQty string `json:"minOrderQty"`
			QtyStep     string `json:"qtyStep"`
		} `json:"lotSizeFilter"`
	} `json:"dataList"`
}

DerivativesInstrumentsForOptionResult :

type DerivativesInstrumentsParam

type DerivativesInstrumentsParam struct {
	Category CategoryDerivative `url:"category"`

	Symbol *SymbolDerivative `url:"symbol,omitempty"`
	Limit  *int              `url:"limit,omitempty"`
	Cursor *string           `url:"cursor,omitempty"`
}

DerivativesInstrumentsParam :

type DerivativesInstrumentsResponse

type DerivativesInstrumentsResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesInstrumentsResult `json:"result"`
}

DerivativesInstrumentsResponse :

type DerivativesInstrumentsResult

type DerivativesInstrumentsResult struct {
	Category CategoryDerivative `json:"category"`
	List     []struct {
		Symbol          SymbolDerivative       `json:"symbol"`
		ContractType    ContractTypeDerivative `json:"contractType"`
		Status          StatusDerivative       `json:"status"`
		BaseCoin        string                 `json:"baseCoin"`
		QuoteCoin       string                 `json:"quoteCoin"`
		LaunchTime      string                 `json:"launchTime"`
		DeliveryTime    string                 `json:"deliveryTime"`
		DeliveryFeeRate string                 `json:"deliveryFeeRate"`
		PriceScale      string                 `json:"priceScale"`
		LeverageFilter  struct {
			MinLeverage  string `json:"minLeverage"`
			MaxLeverage  string `json:"maxLeverage"`
			LeverageStep string `json:"leverageStep"`
		} `json:"leverageFilter"`
		PriceFilter struct {
			MinPrice string `json:"minPrice"`
			MaxPrice string `json:"maxPrice"`
			TickSize string `json:"tickSize"`
		} `json:"priceFilter"`
		LotSizeFilter struct {
			MaxTradingQty string `json:"maxTradingQty"`
			MinTradingQty string `json:"minTradingQty"`
			QtyStep       string `json:"qtyStep"`
		} `json:"lotSizeFilter"`
	} `json:"list"`
	NextPageCursor string `json:"nextPageCursor"`
}

DerivativesInstrumentsResult :

type DerivativesKlineParam

type DerivativesKlineParam struct {
	Symbol   SymbolDerivative   `url:"symbol"`
	Category CategoryDerivative `url:"category"`
	Interval Interval           `url:"interval"`
	Start    int                `url:"start"` // timestamp point for result, in milliseconds
	End      int                `url:"end"`   // timestamp point for result, in milliseconds

	Limit *int `url:"limit,omitempty"`
}

DerivativesKlineParam :

type DerivativesKlineResponse

type DerivativesKlineResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesKlineResult `json:"result"`
}

DerivativesKlineResponse :

type DerivativesKlineResult

type DerivativesKlineResult struct {
	Category CategoryDerivative           `json:"category"`
	Symbol   SymbolDerivative             `json:"symbol"`
	Lists    []DerivativesKlineResultList `json:"list"`
}

DerivativesKlineResult :

type DerivativesKlineResultList

type DerivativesKlineResultList struct {
	Start    string
	Open     string
	High     string
	Low      string
	Close    string
	Volume   string
	Turnover string
}

DerivativesKlineResultList :

func (*DerivativesKlineResultList) UnmarshalJSON

func (r *DerivativesKlineResultList) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type DerivativesMarkPriceKlineParam

type DerivativesMarkPriceKlineParam struct {
	Category CategoryDerivative `url:"category"`
	Symbol   SymbolDerivative   `url:"symbol"`
	Interval Interval           `url:"interval"`
	Start    int                `url:"start"` // timestamp point for result, in milliseconds
	End      int                `url:"end"`   // timestamp point for result, in milliseconds

	Limit *int `url:"limit,omitempty"`
}

DerivativesMarkPriceKlineParam :

type DerivativesMarkPriceKlineResponse

type DerivativesMarkPriceKlineResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesMarkPriceKlineResult `json:"result"`
}

DerivativesMarkPriceKlineResponse :

type DerivativesMarkPriceKlineResult

type DerivativesMarkPriceKlineResult struct {
	Category CategoryDerivative                        `json:"category"`
	Symbol   SymbolDerivative                          `json:"symbol"`
	List     []DerivativesMarkPriceKlineResultListItem `json:"list"`
}

DerivativesMarkPriceKlineResult :

type DerivativesMarkPriceKlineResultListItem

type DerivativesMarkPriceKlineResultListItem struct {
	Start string `json:"start"`
	Open  string `json:"open"`
	High  string `json:"high"`
	Low   string `json:"low"`
	Close string `json:"close"`
}

DerivativesMarkPriceKlineResultListItem :

func (*DerivativesMarkPriceKlineResultListItem) UnmarshalJSON

func (r *DerivativesMarkPriceKlineResultListItem) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type DerivativesOrderBookParam

type DerivativesOrderBookParam struct {
	Symbol   SymbolDerivative   `url:"symbol"`
	Category CategoryDerivative `url:"category"`

	Limit *int `url:"limit,omitempty"`
}

DerivativesOrderBookParam :

type DerivativesOrderBookResponse

type DerivativesOrderBookResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesOrderBookResult `json:"result"`
}

DerivativesOrderBookResponse :

type DerivativesOrderBookResult

type DerivativesOrderBookResult struct {
	Symbol    SymbolDerivative                  `json:"s"`
	Buyers    DerivativesOrderBookResultBuyers  `json:"b"`
	Sellers   DerivativesOrderBookResultSellers `json:"a"`
	Timestamp int                               `json:"ts"`
	ID        int                               `json:"u"`
}

DerivativesOrderBookResult :

type DerivativesOrderBookResultBuyer

type DerivativesOrderBookResultBuyer struct {
	Price string
	Qty   string
}

DerivativesOrderBookResultBuyer :

type DerivativesOrderBookResultBuyers

type DerivativesOrderBookResultBuyers []DerivativesOrderBookResultBuyer

DerivativesOrderBookResultBuyers :

func (*DerivativesOrderBookResultBuyers) UnmarshalJSON

func (r *DerivativesOrderBookResultBuyers) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type DerivativesOrderBookResultSeller

type DerivativesOrderBookResultSeller struct {
	Price string
	Qty   string
}

DerivativesOrderBookResultSeller :

type DerivativesOrderBookResultSellers

type DerivativesOrderBookResultSellers []DerivativesOrderBookResultSeller

DerivativesOrderBookResultSellers :

func (*DerivativesOrderBookResultSellers) UnmarshalJSON

func (r *DerivativesOrderBookResultSellers) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type DerivativesTickersForOptionParam

type DerivativesTickersForOptionParam struct {
	Symbol SymbolDerivative `url:"symbol"`
}

DerivativesTickersForOptionParam :

type DerivativesTickersForOptionResponse

type DerivativesTickersForOptionResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesTickersForOptionResult `json:"result"`
}

DerivativesTickersForOptionResponse :

type DerivativesTickersForOptionResult

type DerivativesTickersForOptionResult struct {
	Category               CategoryDerivative `json:"category"`
	Symbol                 SymbolDerivative   `json:"symbol"`
	BidPrice               string             `json:"bidPrice"`
	BidSize                string             `json:"bidSize"`
	BidIv                  string             `json:"bidIv"`
	AskPrice               string             `json:"askPrice"`
	AskSize                string             `json:"askSize"`
	AskIv                  string             `json:"askIv"`
	LastPrice              string             `json:"lastPrice"`
	HighPrice24h           string             `json:"highPrice24h"`
	LowPrice24h            string             `json:"lowPrice24h"`
	MarkPrice              string             `json:"markPrice"`
	IndexPrice             string             `json:"indexPrice"`
	MarkPriceIv            string             `json:"markPriceIv"`
	UnderlyingPrice        string             `json:"underlyingPrice"`
	OpenInterest           string             `json:"openInterest"`
	Turnover24h            string             `json:"turnover24h"`
	Volume24h              string             `json:"volume24h"`
	TotalVolume            string             `json:"totalVolume"`
	TotalTurnover          string             `json:"totalTurnover"`
	Delta                  string             `json:"delta"`
	Gamma                  string             `json:"gamma"`
	Vega                   string             `json:"vega"`
	Theta                  string             `json:"theta"`
	PredictedDeliveryPrice string             `json:"predictedDeliveryPrice"`
	Change24h              string             `json:"change24h"`
}

DerivativesTickersForOptionResult :

type DerivativesTickersParam

type DerivativesTickersParam struct {
	Category CategoryDerivative `url:"category"`

	Symbol *SymbolDerivative `url:"symbol,omitempty"`
}

DerivativesTickersParam :

type DerivativesTickersResponse

type DerivativesTickersResponse struct {
	CommonV3Response `json:",inline"`
	Result           DerivativesTickersResult `json:"result"`
}

DerivativesTickersResponse :

type DerivativesTickersResult

type DerivativesTickersResult struct {
	Category CategoryDerivative             `json:"category"`
	Lists    []DerivativesTickersResultList `json:"list"`
}

DerivativesTickersResult :

type DerivativesTickersResultList

type DerivativesTickersResultList struct {
	Symbol                 SymbolDerivative `json:"symbol"`
	BidPrice               string           `json:"bidPrice"`
	AskPrice               string           `json:"askPrice"`
	LastPrice              string           `json:"lastPrice"`
	LastTickDirection      string           `json:"lastTickDirection"`
	PrevPrice24h           string           `json:"prevPrice24h"`
	Price24hPcnt           string           `json:"price24hPcnt"`
	HighPrice24h           string           `json:"highPrice24h"`
	LowPrice24h            string           `json:"lowPrice24h"`
	PrevPrice1h            string           `json:"prevPrice1h"`
	MarkPrice              string           `json:"markPrice"`
	IndexPrice             string           `json:"indexPrice"`
	OpenInterest           string           `json:"openInterest"`
	Turnover24h            string           `json:"turnover24h"`
	Volume24h              string           `json:"volume24h"`
	FundingRate            string           `json:"fundingRate"`
	NextFundingTime        string           `json:"nextFundingTime"`
	PredictedDeliveryPrice string           `json:"predictedDeliveryPrice"` // Applicable to inverse future and option
	BasisRate              string           `json:"basisRate"`
	DeliveryFeeRate        string           `json:"deliveryFeeRate"`
	DeliveryTime           string           `json:"deliveryTime"`
}

DerivativesTickersResultList :

type Direction

type Direction string

Direction :

type ErrorResponse

type ErrorResponse struct {
	RetCode int    `json:"ret_code"`
	RetMsg  string `json:"ret_msg"`
}

ErrorResponse :

func (*ErrorResponse) Error

func (r *ErrorResponse) Error() string

Error :

type ExecType

type ExecType string

ExecType :

type FutureCommonService

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

FutureCommonService :

func (*FutureCommonService) AccountRatio

AccountRatio :

func (*FutureCommonService) Balance

func (s *FutureCommonService) Balance(coin Coin) (*BalanceResponse, error)

Balance :

func (*FutureCommonService) BigDeal

func (s *FutureCommonService) BigDeal(param BigDealParam) (*BigDealResponse, error)

BigDeal :

func (*FutureCommonService) IndexPriceKline

IndexPriceKline :

func (*FutureCommonService) ListKline

ListKline :

func (*FutureCommonService) ListLinearKline

ListLinearKline :

func (*FutureCommonService) MarkPriceKline

MarkPriceKline :

func (*FutureCommonService) OpenInterest

OpenInterest :

func (*FutureCommonService) OrderBook

func (s *FutureCommonService) OrderBook(symbol SymbolFuture) (*OrderBookResponse, error)

OrderBook :

func (*FutureCommonService) Symbols

func (s *FutureCommonService) Symbols() (*SymbolsResponse, error)

Symbols :

func (*FutureCommonService) Tickers

func (s *FutureCommonService) Tickers(symbol SymbolFuture) (*TickersResponse, error)

Tickers :

func (*FutureCommonService) TradingRecords

TradingRecords :

type FutureInverseFutureService

type FutureInverseFutureService struct {
	*FutureCommonService
	// contains filtered or unexported fields
}

FutureInverseFutureService :

func (*FutureInverseFutureService) CancelAllFuturesOrder

CancelAllFuturesOrder :

func (*FutureInverseFutureService) CancelAllFuturesStopOrder

CancelAllFuturesStopOrder :

func (*FutureInverseFutureService) CancelFuturesOrder

CancelFuturesOrder :

func (*FutureInverseFutureService) CancelFuturesStopOrder

CancelFuturesStopOrder :

func (*FutureInverseFutureService) CreateFuturesOrder

CreateFuturesOrder :

func (*FutureInverseFutureService) CreateFuturesStopOrder

CreateFuturesStopOrder :

func (*FutureInverseFutureService) FuturesSaveLeverage

FuturesSaveLeverage :

func (*FutureInverseFutureService) FuturesTradingStop

FuturesTradingStop :

func (*FutureInverseFutureService) ListFuturesOrder

ListFuturesOrder :

func (*FutureInverseFutureService) ListFuturesPositions

func (s *FutureInverseFutureService) ListFuturesPositions(symbol SymbolFuture) (*ListFuturesPositionsResponse, error)

ListFuturesPositions :

func (*FutureInverseFutureService) ListFuturesStopOrder

ListFuturesStopOrder :

func (*FutureInverseFutureService) QueryFuturesOrder

QueryFuturesOrder :

func (*FutureInverseFutureService) QueryFuturesStopOrder

QueryFuturesStopOrder :

type FutureInverseFutureServiceI

type FutureInverseFutureServiceI interface {
	// Market Data Endpoints
	OrderBook(SymbolFuture) (*OrderBookResponse, error)
	ListKline(ListKlineParam) (*ListKlineResponse, error)
	Tickers(SymbolFuture) (*TickersResponse, error)
	TradingRecords(TradingRecordsParam) (*TradingRecordsResponse, error)
	Symbols() (*SymbolsResponse, error)
	MarkPriceKline(MarkPriceKlineParam) (*MarkPriceKlineResponse, error)
	IndexPriceKline(IndexPriceKlineParam) (*IndexPriceKlineResponse, error)
	OpenInterest(OpenInterestParam) (*OpenInterestResponse, error)
	BigDeal(BigDealParam) (*BigDealResponse, error)
	AccountRatio(AccountRatioParam) (*AccountRatioResponse, error)

	// Account Data Endpoints
	CreateFuturesOrder(CreateFuturesOrderParam) (*CreateFuturesOrderResponse, error)
	ListFuturesOrder(ListFuturesOrderParam) (*ListFuturesOrderResponse, error)
	CancelFuturesOrder(CancelFuturesOrderParam) (*CancelFuturesOrderResponse, error)
	CancelAllFuturesOrder(CancelAllFuturesOrderParam) (*CancelAllFuturesOrderResponse, error)
	QueryFuturesOrder(QueryFuturesOrderParam) (*QueryFuturesOrderResponse, error)
	CreateFuturesStopOrder(CreateFuturesStopOrderParam) (*CreateFuturesStopOrderResponse, error)
	ListFuturesStopOrder(ListFuturesStopOrderParam) (*ListFuturesStopOrderResponse, error)
	CancelFuturesStopOrder(CancelFuturesStopOrderParam) (*CancelFuturesStopOrderResponse, error)
	CancelAllFuturesStopOrder(CancelAllFuturesStopOrderParam) (*CancelAllFuturesStopOrderResponse, error)
	QueryFuturesStopOrder(QueryFuturesStopOrderParam) (*QueryFuturesStopOrderResponse, error)
	ListFuturesPositions(SymbolFuture) (*ListFuturesPositionsResponse, error)
	FuturesTradingStop(FuturesTradingStopParam) (*FuturesTradingStopResponse, error)
	FuturesSaveLeverage(FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error)

	// Wallet Data Endpoints
	Balance(Coin) (*BalanceResponse, error)
}

FutureInverseFutureServiceI :

type FutureInversePerpetualService

type FutureInversePerpetualService struct {
	*FutureCommonService
	// contains filtered or unexported fields
}

FutureInversePerpetualService :

func (*FutureInversePerpetualService) CancelAllOrder

CancelAllOrder :

func (*FutureInversePerpetualService) CancelAllStopOrder

CancelAllStopOrder :

func (*FutureInversePerpetualService) CancelOrder

CancelOrder :

func (*FutureInversePerpetualService) CancelStopOrder

CancelStopOrder :

func (*FutureInversePerpetualService) CreateOrder

CreateOrder :

func (*FutureInversePerpetualService) CreateStopOrder

CreateStopOrder :

func (*FutureInversePerpetualService) ListOrder

ListOrder :

func (*FutureInversePerpetualService) ListPosition

ListPosition :

func (*FutureInversePerpetualService) ListPositions

ListPositions :

func (*FutureInversePerpetualService) ListStopOrder

ListStopOrder :

func (*FutureInversePerpetualService) PremiumIndexKline

PremiumIndexKline :

func (*FutureInversePerpetualService) QueryOrder

QueryOrder :

func (*FutureInversePerpetualService) QueryStopOrder

QueryStopOrder :

func (*FutureInversePerpetualService) SaveLeverage

SaveLeverage :

func (*FutureInversePerpetualService) TradingStop

TradingStop :

type FutureInversePerpetualServiceI

type FutureInversePerpetualServiceI interface {
	// Market Data Endpoints
	OrderBook(SymbolFuture) (*OrderBookResponse, error)
	ListKline(ListKlineParam) (*ListKlineResponse, error)
	Tickers(SymbolFuture) (*TickersResponse, error)
	TradingRecords(TradingRecordsParam) (*TradingRecordsResponse, error)
	Symbols() (*SymbolsResponse, error)
	MarkPriceKline(MarkPriceKlineParam) (*MarkPriceKlineResponse, error)
	IndexPriceKline(IndexPriceKlineParam) (*IndexPriceKlineResponse, error)
	PremiumIndexKline(PremiumIndexKlineParam) (*PremiumIndexKlineResponse, error)
	OpenInterest(OpenInterestParam) (*OpenInterestResponse, error)
	BigDeal(BigDealParam) (*BigDealResponse, error)
	AccountRatio(AccountRatioParam) (*AccountRatioResponse, error)

	// Account Data Endpoints
	CreateOrder(CreateOrderParam) (*CreateOrderResponse, error)
	ListOrder(ListOrderParam) (*ListOrderResponse, error)
	CancelOrder(CancelOrderParam) (*CancelOrderResponse, error)
	CancelAllOrder(CancelAllOrderParam) (*CancelAllOrderResponse, error)
	QueryOrder(QueryOrderParam) (*QueryOrderResponse, error)
	CreateStopOrder(CreateStopOrderParam) (*CreateStopOrderResponse, error)
	ListStopOrder(ListStopOrderParam) (*ListStopOrderResponse, error)
	CancelStopOrder(CancelStopOrderParam) (*CancelStopOrderResponse, error)
	CancelAllStopOrder(CancelAllStopOrderParam) (*CancelAllStopOrderResponse, error)
	QueryStopOrder(QueryStopOrderParam) (*QueryStopOrderResponse, error)
	ListPosition(SymbolFuture) (*ListPositionResponse, error)
	ListPositions() (*ListPositionsResponse, error)
	TradingStop(TradingStopParam) (*TradingStopResponse, error)
	SaveLeverage(SaveLeverageParam) (*SaveLeverageResponse, error)

	// Wallet Data Endpoints
	Balance(Coin) (*BalanceResponse, error)
}

FutureInversePerpetualServiceI :

type FutureService

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

FutureService :

func (*FutureService) InverseFuture

func (s *FutureService) InverseFuture() FutureInverseFutureServiceI

InverseFuture :

func (*FutureService) InversePerpetual

func (s *FutureService) InversePerpetual() FutureInversePerpetualServiceI

InversePerpetual :

func (*FutureService) USDTPerpetual

func (s *FutureService) USDTPerpetual() FutureUSDTPerpetualServiceI

USDTPerpetual :

type FutureServiceI

type FutureServiceI interface {
	InversePerpetual() FutureInversePerpetualServiceI
	USDTPerpetual() FutureUSDTPerpetualServiceI
	InverseFuture() FutureInverseFutureServiceI
}

FutureServiceI :

type FutureUSDTPerpetualService

type FutureUSDTPerpetualService struct {
	*FutureCommonService
	// contains filtered or unexported fields
}

FutureUSDTPerpetualService :

func (*FutureUSDTPerpetualService) CancelAllLinearStopOrder

CancelAllLinearStopOrder :

func (*FutureUSDTPerpetualService) CancelLinearOrder

CancelLinearOrder :

func (*FutureUSDTPerpetualService) CancelLinearStopOrder

CancelLinearStopOrder :

func (*FutureUSDTPerpetualService) CreateLinearOrder

CreateLinearOrder :

func (*FutureUSDTPerpetualService) CreateLinearStopOrder

CreateLinearStopOrder :

func (*FutureUSDTPerpetualService) LinearCancelAllOrder

LinearCancelAllOrder : Cancel all active orders that are unfilled or partially filled. Fully filled orders cannot be cancelled.

func (*FutureUSDTPerpetualService) LinearExecutionList

LinearExecutionList :

func (*FutureUSDTPerpetualService) LinearTradingStop

LinearTradingStop :

func (*FutureUSDTPerpetualService) ListLinearOrder

ListLinearOrder :

func (*FutureUSDTPerpetualService) ListLinearPosition

func (s *FutureUSDTPerpetualService) ListLinearPosition(symbol SymbolFuture) (*ListLinearPositionResponse, error)

ListLinearPosition :

func (*FutureUSDTPerpetualService) ListLinearPositions

func (s *FutureUSDTPerpetualService) ListLinearPositions() (*ListLinearPositionsResponse, error)

ListLinearPositions :

func (*FutureUSDTPerpetualService) ListLinearStopOrder

ListLinearStopOrder :

func (*FutureUSDTPerpetualService) QueryLinearOrder

QueryLinearOrder :

func (*FutureUSDTPerpetualService) QueryLinearStopOrder

QueryLinearStopOrder :

func (*FutureUSDTPerpetualService) ReplaceLinearOrder

ReplaceLinearOrder :

func (*FutureUSDTPerpetualService) SaveLinearLeverage

SaveLinearLeverage :

type FutureUSDTPerpetualServiceI

type FutureUSDTPerpetualServiceI interface {
	// Market Data Endpoints
	OrderBook(SymbolFuture) (*OrderBookResponse, error)
	ListLinearKline(ListLinearKlineParam) (*ListLinearKlineResponse, error)
	Tickers(SymbolFuture) (*TickersResponse, error)
	Symbols() (*SymbolsResponse, error)
	OpenInterest(OpenInterestParam) (*OpenInterestResponse, error)
	BigDeal(BigDealParam) (*BigDealResponse, error)
	AccountRatio(AccountRatioParam) (*AccountRatioResponse, error)

	// Account Data Endpoints
	CreateLinearOrder(CreateLinearOrderParam) (*CreateLinearOrderResponse, error)
	ListLinearOrder(ListLinearOrderParam) (*ListLinearOrderResponse, error)
	CancelLinearOrder(CancelLinearOrderParam) (*CancelLinearOrderResponse, error)
	LinearCancelAllOrder(LinearCancelAllParam) (*LinearCancelAllResponse, error)
	ReplaceLinearOrder(ReplaceLinearOrderParam) (*ReplaceLinearOrderResponse, error)
	QueryLinearOrder(QueryLinearOrderParam) (*QueryLinearOrderResponse, error)
	CreateLinearStopOrder(CreateLinearStopOrderParam) (*CreateLinearStopOrderResponse, error)
	ListLinearStopOrder(ListLinearStopOrderParam) (*ListLinearStopOrderResponse, error)
	CancelLinearStopOrder(CancelLinearStopOrderParam) (*CancelLinearStopOrderResponse, error)
	CancelAllLinearStopOrder(CancelAllLinearStopOrderParam) (*CancelAllLinearStopOrderResponse, error)
	QueryLinearStopOrder(QueryLinearStopOrderParam) (*QueryLinearStopOrderResponse, error)
	ListLinearPosition(SymbolFuture) (*ListLinearPositionResponse, error)
	ListLinearPositions() (*ListLinearPositionsResponse, error)
	SaveLinearLeverage(SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error)
	LinearTradingStop(LinearTradingStopParam) (*LinearTradingStopResponse, error)
	LinearExecutionList(LinearExecutionListParam) (*LinearExecutionListResponse, error)

	// Wallet Data Endpoints
	Balance(Coin) (*BalanceResponse, error)
}

FutureUSDTPerpetualServiceI :

type FuturesSaveLeverageParam

type FuturesSaveLeverageParam struct {
	Symbol       SymbolFuture `json:"symbol"`
	BuyLeverage  float64      `json:"buy_leverage"`
	SellLeverage float64      `json:"sell_leverage"`
}

FuturesSaveLeverageParam :

type FuturesSaveLeverageResponse

type FuturesSaveLeverageResponse struct {
	CommonResponse `json:",inline"`
	Result         float64 `json:"result"`
}

FuturesSaveLeverageResponse :

type FuturesTradingStopParam

type FuturesTradingStopParam struct {
	Symbol SymbolFuture `json:"symbol"`

	PositionIdx       *int             `json:"position_idx,omitempty"`
	TakeProfit        *float64         `json:"take_profit,omitempty"`
	StopLoss          *float64         `json:"stop_loss,omitempty"`
	TrailingStop      *float64         `json:"trailing_stop,omitempty"`
	TpTriggerBy       *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy       *TriggerByFuture `json:"sl_trigger_by,omitempty"`
	NewTrailingActive *float64         `json:"new_trailing_active,omitempty"`
	SlSize            *float64         `json:"sl_size,omitempty"`
	TpSize            *float64         `json:"tp_size,omitempty"`
}

FuturesTradingStopParam :

type FuturesTradingStopResponse

type FuturesTradingStopResponse struct {
	CommonResponse `json:",inline"`
	Result         FuturesTradingStopResult `json:"result"`
}

FuturesTradingStopResponse :

type FuturesTradingStopResult

type FuturesTradingStopResult struct {
	ID                  int                    `json:"id"`
	UserID              int                    `json:"user_id"`
	Symbol              SymbolFuture           `json:"symbol"`
	Side                Side                   `json:"side"`
	Size                float64                `json:"size"`
	PositionValue       float64                `json:"position_value"`
	EntryPrice          float64                `json:"entry_price"`
	RiskID              int                    `json:"risk_id"`
	AutoAddMargin       float64                `json:"auto_add_margin"`
	Leverage            float64                `json:"leverage"`
	PositionMargin      float64                `json:"position_margin"`
	LiqPrice            float64                `json:"liq_price"`
	BustPrice           float64                `json:"bust_price"`
	OccClosingFee       float64                `json:"occ_closing_fee"`
	OccFundingFee       float64                `json:"occ_funding_fee"`
	TakeProfit          float64                `json:"take_profit"`
	StopLoss            float64                `json:"stop_loss"`
	TrailingStop        float64                `json:"trailing_stop"`
	PositionStatus      string                 `json:"position_status"`
	DeleverageIndicator int                    `json:"deleverage_indicator"`
	OcCalcData          string                 `json:"oc_calc_data"`
	OrderMargin         float64                `json:"order_margin"`
	WalletBalance       float64                `json:"wallet_balance"`
	RealisedPnl         float64                `json:"realised_pnl"`
	CumRealisedPnl      float64                `json:"cum_realised_pnl"`
	CumCommission       float64                `json:"cum_commission"`
	CrossSeq            float64                `json:"cross_seq"`
	PositionSeq         float64                `json:"position_seq"`
	CreatedAt           string                 `json:"created_at"`
	UpdatedAt           string                 `json:"updated_at"`
	ExtFields           map[string]interface{} `json:"ext_fields"`
}

FuturesTradingStopResult :

type IndexPriceKlineParam

type IndexPriceKlineParam struct {
	Symbol   SymbolFuture `url:"symbol"`
	Interval Interval     `url:"interval"`
	From     int          `url:"from"`

	Limit *int `url:"limit,omitempty"`
}

IndexPriceKlineParam :

type IndexPriceKlineResponse

type IndexPriceKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []IndexPriceKlineResult `json:"result"`
}

IndexPriceKlineResponse :

type IndexPriceKlineResult

type IndexPriceKlineResult struct {
	Symbol   SymbolFuture `json:"symbol"`
	Period   Period       `json:"period"`
	OpenTime int          `json:"open_time"`
	Open     string       `json:"open"`
	High     string       `json:"high"`
	Low      string       `json:"low"`
	Close    string       `json:"close"`
}

IndexPriceKlineResult :

type Interval

type Interval string

Interval :

type LeverageFilter

type LeverageFilter struct {
	MinLeverage  float64 `json:"min_leverage"`
	MaxLeverage  float64 `json:"max_leverage"`
	LeverageStep string  `json:"leverage_step"`
}

LeverageFilter :

type LinearCancelAllParam

type LinearCancelAllParam struct {
	Symbol SymbolFuture `json:"symbol"`
}

LinearCancelAllParam : Parameters to be supplied to cancel all endpoint

type LinearCancelAllResponse

type LinearCancelAllResponse struct {
	CommonResponse `json:",inline"`
	Result         LinearCancelAllResult `json:"result"`
}

LinearCancelAllResponse : Response from cancel all endpoint

type LinearCancelAllResult

type LinearCancelAllResult []string

type LinearExecutionList

type LinearExecutionList struct {
	OrderID          string       `json:"order_id"`
	OrderLinkID      string       `json:"order_link_id"`
	Side             Side         `json:"side"`
	Symbol           SymbolFuture `json:"symbol"`
	OrderPrice       float64      `json:"order_price"`
	OrderQty         float64      `json:"order_qty"`
	OrderType        OrderType    `json:"order_type"`
	FeeRate          float64      `json:"fee_rate"`
	ExecPrice        float64      `json:"exec_price"`
	ExecType         ExecType     `json:"exec_type"`
	ExecQty          float64      `json:"exec_qty"`
	ExecFee          float64      `json:"exec_fee"`
	ExecValue        float64      `json:"exec_value"`
	LeavesQty        float64      `json:"leaves_qty"`
	ClosedSize       float64      `json:"closed_size"`
	LastLiquidityInd string       `json:"last_liquidity_ind"`
	TradeTimeMs      float64      `json:"trade_time_ms"`
}

LinearExecutionList :

type LinearExecutionListParam

type LinearExecutionListParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StartTime *int      `url:"start_time,omitempty"`
	EndTime   *int      `url:"end_time,omitempty"`
	ExecType  *ExecType `url:"exec_type,omitempty"`
	Page      *int      `url:"page,omitempty"`
	Limit     *int      `url:"limit,omitempty"`
}

LinearExecutionListParam :

type LinearExecutionListResponse

type LinearExecutionListResponse struct {
	CommonResponse `json:",inline"`
	Result         LinearExecutionListResult `json:"result"`
}

LinearExecutionListResponse :

type LinearExecutionListResult

type LinearExecutionListResult struct {
	CurrentPage          int                   `json:"current_page"`
	LinearExecutionLists []LinearExecutionList `json:"data"`
}

LinearExecutionListResult :

type LinearTradingStopParam

type LinearTradingStopParam struct {
	Symbol SymbolFuture `json:"symbol"`
	Side   Side         `json:"side"`

	TakeProfit   *float64         `json:"take_profit,omitempty"`
	StopLoss     *float64         `json:"stop_loss,omitempty"`
	TrailingStop *float64         `json:"trailing_stop,omitempty"`
	TpTriggerBy  *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy  *TriggerByFuture `json:"sl_trigger_by,omitempty"`
	SlSize       *float64         `json:"sl_size,omitempty"`
	TpSize       *float64         `json:"tp_size,omitempty"`
	PositionIdx  *int             `json:"position_idx,omitempty"`
}

LinearTradingStopParam :

type LinearTradingStopResponse

type LinearTradingStopResponse struct {
	CommonResponse `json:",inline"`
}

LinearTradingStopResponse :

type ListFuturesOrder

type ListFuturesOrder struct {
	UserID       int             `json:"user_id"`
	PositionIdx  int             `json:"position_idx"`
	Symbol       SymbolFuture    `json:"symbol"`
	Side         Side            `json:"side"`
	OrderType    OrderType       `json:"order_type"`
	Price        string          `json:"price"`
	Qty          string          `json:"qty"`
	TimeInForce  TimeInForce     `json:"time_in_force"`
	OrderLinkID  string          `json:"order_link_id"`
	OrderID      string          `json:"order_id"`
	CreatedAt    string          `json:"created_at"`
	UpdatedAt    string          `json:"updated_at"`
	OrderStatus  OrderStatus     `json:"order_status"`
	LeavesQty    string          `json:"leaves_qty"`
	LeavesValue  string          `json:"leaves_value"`
	CumExecQty   string          `json:"cum_exec_qty"`
	CumExecValue string          `json:"cum_exec_value"`
	CumExecFee   string          `json:"cum_exec_fee"`
	RejectReason string          `json:"reject_reason"`
	TakeProfit   string          `json:"take_profit"`
	StopLoss     string          `json:"stop_loss"`
	TpTriggerBy  TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture `json:"sl_trigger_by"`
	Cursor       string          `json:"cursor"`
}

ListFuturesOrder :

type ListFuturesOrderParam

type ListFuturesOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderStatus *OrderStatus `url:"order_status,omitempty"`
	Direction   *Direction   `url:"direction,omitempty"`
	Limit       *int         `url:"limit,omitempty"`
	Cursor      *string      `url:"cursor,omitempty"`
}

ListFuturesOrderParam :

type ListFuturesOrderResponse

type ListFuturesOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListFuturesOrderResult `json:"result"`
}

ListFuturesOrderResponse :

type ListFuturesOrderResult

type ListFuturesOrderResult struct {
	ListFuturesOrders []ListFuturesOrder `json:"data"`
}

ListFuturesOrderResult :

type ListFuturesPositionsResponse

type ListFuturesPositionsResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListFuturesPositionsResult `json:"result"`
}

ListFuturesPositionsResponse :

type ListFuturesPositionsResult

type ListFuturesPositionsResult struct {
	Data ListFuturesPositionsResultData `json:"data"`
}

ListFuturesPositionsResult :

type ListFuturesPositionsResultData

type ListFuturesPositionsResultData struct {
	ID                  int          `json:"id"`
	PositionIdx         int          `json:"position_idx"`
	Mode                int          `json:"mode"`
	UserID              int          `json:"user_id"`
	RiskID              int          `json:"risk_id"`
	Symbol              SymbolFuture `json:"symbol"`
	Side                Side         `json:"side"`
	Size                float64      `json:"size"`
	PositionValue       string       `json:"position_value"`
	EntryPrice          string       `json:"entry_price"`
	IsIsolated          bool         `json:"is_isolated"`
	AutoAddMargin       float64      `json:"auto_add_margin"`
	Leverage            string       `json:"leverage"`
	EffectiveLeverage   string       `json:"effective_leverage"`
	PositionMargin      string       `json:"position_margin"`
	LiqPrice            string       `json:"liq_price"`
	BustPrice           string       `json:"bust_price"`
	OccClosingFee       string       `json:"occ_closing_fee"`
	OccFundingFee       string       `json:"occ_funding_fee"`
	TakeProfit          string       `json:"take_profit"`
	StopLoss            string       `json:"stop_loss"`
	TrailingStop        string       `json:"trailing_stop"`
	PositionStatus      string       `json:"position_status"`
	DeleverageIndicator int          `json:"deleverage_indicator"`
	OcCalcData          string       `json:"oc_calc_data"`
	OrderMargin         string       `json:"order_margin"`
	WalletBalance       string       `json:"wallet_balance"`
	RealisedPnl         string       `json:"realised_pnl"`
	UnrealisedPnl       float64      `json:"unrealised_pnl"`
	CumRealisedPnl      string       `json:"cum_realised_pnl"`
	CrossSeq            float64      `json:"cross_seq"`
	PositionSeq         float64      `json:"position_seq"`
	CreatedAt           string       `json:"created_at"`
	UpdatedAt           string       `json:"updated_at"`
	TpSlMode            TpSlMode     `json:"tp_sl_mode"`
}

ListFuturesPositionsResultData :

type ListFuturesStopOrder

type ListFuturesStopOrder struct {
	UserID          int                 `json:"user_id"`
	PositionIdx     int                 `json:"position_idx"`
	StopOrderStatus OrderStatus         `json:"stop_order_status"`
	Symbol          SymbolFuture        `json:"symbol"`
	Side            Side                `json:"side"`
	OrderType       OrderType           `json:"order_type"`
	StopOrderType   StopOrderTypeFuture `json:"stop_order_type"`
	Price           string              `json:"price"`
	Qty             string              `json:"qty"`
	TimeInForce     TimeInForce         `json:"time_in_force"`
	BasePrice       string              `json:"base_price"`
	OrderLinkID     string              `json:"order_link_id"`
	CreatedAt       string              `json:"created_at"`
	UpdatedAt       string              `json:"updated_at"`
	StopPx          string              `json:"stop_px"`
	StopOrderID     string              `json:"stop_order_id"`
	TriggerBy       TriggerByFuture     `json:"trigger_by"`
	TakeProfit      string              `json:"take_profit"`
	StopLoss        string              `json:"stop_loss"`
	TpTriggerBy     TriggerByFuture     `json:"tp_trigger_by"`
	SlTriggerBy     TriggerByFuture     `json:"sl_trigger_by"`
	Cursor          string              `json:"cursor"`
}

ListFuturesStopOrder :

type ListFuturesStopOrderParam

type ListFuturesStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderStatus *OrderStatus `url:"stop_order_status,omitempty"`
	Direction       *Direction   `url:"direction,omitempty"`
	Limit           *int         `url:"limit,omitempty"`
	Cursor          *string      `url:"cursor,omitempty"`
}

ListFuturesStopOrderParam :

type ListFuturesStopOrderResponse

type ListFuturesStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListFuturesStopOrderResult `json:"result"`
}

ListFuturesStopOrderResponse :

type ListFuturesStopOrderResult

type ListFuturesStopOrderResult struct {
	ListFuturesStopOrders []ListFuturesStopOrder `json:"data"`
}

ListFuturesStopOrderResult :

type ListKlineParam

type ListKlineParam struct {
	Symbol   SymbolFuture `url:"symbol"`
	Interval Interval     `url:"interval"`
	From     int          `url:"from"`

	Limit *int `url:"limit,omitempty"`
}

ListKlineParam :

type ListKlineResponse

type ListKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListKlineResult `json:"result"`
}

ListKlineResponse :

type ListKlineResult

type ListKlineResult struct {
	Symbol   SymbolFuture `json:"symbol"`
	Interval string       `json:"interval"`
	OpenTime int          `json:"open_time"`
	Open     string       `json:"open"`
	High     string       `json:"high"`
	Low      string       `json:"low"`
	Close    string       `json:"close"`
	Volume   string       `json:"volume"`
	Turnover string       `json:"turnover"`
}

ListKlineResult :

type ListLinearKlineParam

type ListLinearKlineParam struct {
	Symbol   SymbolFuture `url:"symbol"`
	Interval Interval     `url:"interval"`
	From     int          `url:"from"`

	Limit *int `url:"limit,omitempty"`
}

ListLinearKlineParam :

type ListLinearKlineResponse

type ListLinearKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListLinearKlineResult `json:"result"`
}

ListLinearKlineResponse :

type ListLinearKlineResult

type ListLinearKlineResult struct {
	Symbol   SymbolFuture `json:"symbol"`
	Period   Period       `json:"period"`
	Interval string       `json:"interval"`
	StartAt  int          `json:"start_at"`
	OpenTime int          `json:"open_time"`
	Volume   float64      `json:"volume"`
	Open     float64      `json:"open"`
	High     float64      `json:"high"`
	Low      float64      `json:"low"`
	Close    float64      `json:"close"`
	Turnover float64      `json:"turnover"`
}

ListLinearKlineResult :

type ListLinearOrderParam

type ListLinearOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderID     *string      `url:"order_id,omitempty"`
	OrderLinkID *string      `url:"order_link_id,omitempty"`
	Order       *Order       `url:"order,omitempty"`
	Page        *int         `url:"page,omitempty"`
	Limit       *int         `url:"limit,omitempty"`
	OrderStatus *OrderStatus `url:"order_status,omitempty"`
}

ListLinearOrderParam :

type ListLinearOrderResponse

type ListLinearOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListLinearOrderResult `json:"result"`
}

ListLinearOrderResponse :

type ListLinearOrderResult

type ListLinearOrderResult struct {
	CurrentPage int                            `json:"current_page"`
	Content     []ListLinearOrderResultContent `json:"data"`
}

ListLinearOrderResult :

type ListLinearOrderResultContent

type ListLinearOrderResultContent struct {
	OrderID        string          `json:"order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	LastExecPrice  float64         `json:"last_exec_price"`
	CumExecQty     float64         `json:"cum_exec_qty"`
	CumExecValue   float64         `json:"cum_exec_value"`
	CumExecFee     float64         `json:"cum_exec_fee"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
}

ListLinearOrderResultContent :

type ListLinearPositionResponse

type ListLinearPositionResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListLinearPositionResult `json:"result"`
}

ListLinearPositionResponse :

type ListLinearPositionResult

type ListLinearPositionResult struct {
	UserID              int          `json:"user_id"`
	Symbol              SymbolFuture `json:"symbol"`
	Side                Side         `json:"side"`
	Size                float64      `json:"size"`
	PositionValue       float64      `json:"position_value"`
	EntryPrice          float64      `json:"entry_price"`
	LiqPrice            float64      `json:"liq_price"`
	BustPrice           float64      `json:"bust_price"`
	Leverage            float64      `json:"leverage"`
	AutoAddMargin       float64      `json:"auto_add_margin"`
	IsIsolated          bool         `json:"is_isolated"`
	PositionMargin      float64      `json:"position_margin"`
	OccClosingFee       float64      `json:"occ_closing_fee"`
	RealisedPnl         float64      `json:"realised_pnl"`
	CumRealisedPnl      float64      `json:"cum_realised_pnl"`
	FreeQty             float64      `json:"free_qty"`
	TpSlMode            TpSlMode     `json:"tp_sl_mode"`
	DeleverageIndicator int          `json:"deleverage_indicator"`
	UnrealisedPnl       float64      `json:"unrealised_pnl"`
	RiskID              int          `json:"risk_id"`
}

ListLinearPositionResult :

type ListLinearPositionsResponse

type ListLinearPositionsResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListLinearPositionsResult `json:"result"`
}

ListLinearPositionsResponse :

type ListLinearPositionsResult

type ListLinearPositionsResult struct {
	IsValid                  bool `json:"is_valid"`
	ListLinearPositionResult `json:"data,inline"`
}

ListLinearPositionsResult :

type ListLinearStopOrderParam

type ListLinearStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderID     *string      `url:"stop_order_id,omitempty"`
	OrderLinkID     *string      `url:"order_link_id,omitempty"`
	StopOrderStatus *OrderStatus `url:"stop_order_status,omitempty"`
	Order           *Order       `url:"order,omitempty"`
	Page            *int         `url:"page,omitempty"`
	Limit           *int         `url:"limit,omitempty"`
}

ListLinearStopOrderParam :

type ListLinearStopOrderResponse

type ListLinearStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListLinearStopOrderResult `json:"result"`
}

ListLinearStopOrderResponse :

type ListLinearStopOrderResult

type ListLinearStopOrderResult struct {
	CurrentPage int                                `json:"current_page"`
	LastPage    int                                `json:"last_page"`
	Content     []ListLinearStopOrderResultContent `json:"data"`
}

ListLinearStopOrderResult :

type ListLinearStopOrderResultContent

type ListLinearStopOrderResultContent struct {
	StopOrderID    string          `json:"stop_order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	TriggerPrice   float64         `json:"trigger_price"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	TriggerBy      TriggerByFuture `json:"trigger_by"`
	BasePrice      string          `json:"base_price"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
}

ListLinearStopOrderResultContent :

type ListOrder

type ListOrder struct {
	UserID       int             `json:"user_id"`
	Symbol       SymbolFuture    `json:"symbol"`
	Side         Side            `json:"side"`
	OrderType    OrderType       `json:"order_type"`
	Price        string          `json:"price"`
	Qty          string          `json:"qty"`
	TimeInForce  TimeInForce     `json:"time_in_force"`
	OrderStatus  OrderStatus     `json:"order_status"`
	LeavesQty    string          `json:"leaves_qty"`
	LeavesValue  string          `json:"leaves_value"`
	CumExecQty   string          `json:"cum_exec_qty"`
	CumExecValue string          `json:"cum_exec_value"`
	CumExecFee   string          `json:"cum_exec_fee"`
	RejectReason string          `json:"reject_reason"`
	OrderLinkID  string          `json:"order_link_id"`
	CreatedAt    string          `json:"created_at"`
	OrderID      string          `json:"order_id"`
	TakeProfit   string          `json:"take_profit"`
	StopLoss     string          `json:"stop_loss"`
	TpTriggerBy  TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture `json:"sl_trigger_by"`
}

ListOrder :

type ListOrderParam

type ListOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderStatus *OrderStatus `url:"order_status,omitempty"`
	Direction   *Direction   `url:"direction,omitempty"`
	Size        *int         `url:"size,omitempty"`
	Cursor      *string      `url:"cursor,omitempty"`
}

ListOrderParam :

type ListOrderResponse

type ListOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListOrderResult `json:"result"`
}

ListOrderResponse :

type ListOrderResult

type ListOrderResult struct {
	ListOrders []ListOrder `json:"data"`
}

ListOrderResult :

type ListPositionResponse

type ListPositionResponse struct {
	CommonResponse `json:",inline"`
	Result         ListPositionResult `json:"result"`
}

ListPositionResponse :

type ListPositionResult

type ListPositionResult struct {
	ID                  int          `json:"id"`
	UserID              int          `json:"user_id"`
	RiskID              int          `json:"risk_id"`
	Symbol              SymbolFuture `json:"symbol"`
	Side                Side         `json:"side"`
	Size                float64      `json:"size"`
	PositionValue       string       `json:"position_value"`
	EntryPrice          string       `json:"entry_price"`
	IsIsolated          bool         `json:"is_isolated"`
	AutoAddMargin       float64      `json:"auto_add_margin"`
	Leverage            string       `json:"leverage"`
	EffectiveLeverage   string       `json:"effective_leverage"`
	PositionMargin      string       `json:"position_margin"`
	LiqPrice            string       `json:"liq_price"`
	BustPrice           string       `json:"bust_price"`
	OccClosingFee       string       `json:"occ_closing_fee"`
	OccFundingFee       string       `json:"occ_funding_fee"`
	TakeProfit          string       `json:"take_profit"`
	StopLoss            string       `json:"stop_loss"`
	TrailingStop        string       `json:"trailing_stop"`
	PositionStatus      string       `json:"position_status"`
	DeleverageIndicator int          `json:"deleverage_indicator"`
	OcCalcData          string       `json:"oc_calc_data"`
	OrderMargin         string       `json:"order_margin"`
	WalletBalance       string       `json:"wallet_balance"`
	RealisedPnl         string       `json:"realised_pnl"`
	UnrealisedPnl       float64      `json:"unrealised_pnl"`
	CumRealisedPnl      string       `json:"cum_realised_pnl"`
	CrossSeq            float64      `json:"cross_seq"`
	PositionSeq         float64      `json:"position_seq"`
	CreatedAt           string       `json:"created_at"`
	UpdatedAt           string       `json:"updated_at"`
}

ListPositionResult :

type ListPositionsResponse

type ListPositionsResponse struct {
	CommonResponse `json:",inline"`
	Result         []ListPositionsResult `json:"result"`
}

ListPositionsResponse :

type ListPositionsResult

type ListPositionsResult struct {
	IsValid            bool `json:"is_valid"`
	ListPositionResult `json:"data,inline"`
}

ListPositionsResult :

type ListStopOrder

type ListStopOrder struct {
	UserID          int                 `json:"user_id"`
	PositionIdx     int                 `json:"position_idx"`
	StopOrderStatus OrderStatus         `json:"stop_order_status"`
	Symbol          SymbolFuture        `json:"symbol"`
	Side            Side                `json:"side"`
	OrderType       OrderType           `json:"order_type"`
	Price           string              `json:"price"`
	Qty             string              `json:"qty"`
	TimeInForce     TimeInForce         `json:"time_in_force"`
	StopOrderType   StopOrderTypeFuture `json:"stop_order_type"`
	TriggerBy       TriggerByFuture     `json:"trigger_by"`
	BasePrice       string              `json:"base_price"`
	OrderLinkID     string              `json:"order_link_id"`
	CreatedAt       string              `json:"created_at"`
	UpdatedAt       string              `json:"updated_at"`
	StopPx          string              `json:"stop_px"`
	StopOrderID     string              `json:"stop_order_id"`
	TakeProfit      string              `json:"take_profit"`
	StopLoss        string              `json:"stop_loss"`
	TpTriggerBy     TriggerByFuture     `json:"tp_trigger_by"`
	SlTriggerBy     TriggerByFuture     `json:"sl_trigger_by"`
	Cursor          string              `json:"cursor"`
}

ListStopOrder :

type ListStopOrderParam

type ListStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderStatus *OrderStatus `url:"stop_order_status,omitempty"`
	Direction       *Direction   `url:"direction,omitempty"`
	Limit           *int         `url:"limit,omitempty"`
	Cursor          *string      `url:"cursor,omitempty"`
}

ListStopOrderParam :

type ListStopOrderResponse

type ListStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ListStopOrderResult `json:"result"`
}

ListStopOrderResponse :

type ListStopOrderResult

type ListStopOrderResult struct {
	ListStopOrders []ListStopOrder `json:"data"`
}

ListStopOrderResult :

type LotSizeFilter

type LotSizeFilter struct {
	MaxTradingQty float64 `json:"max_trading_qty"`
	MinTradingQty float64 `json:"min_trading_qty"`
	QtyStep       float64 `json:"qty_step"`
}

LotSizeFilter :

type MarkPriceKlineParam

type MarkPriceKlineParam struct {
	Symbol   SymbolFuture `url:"symbol"`
	Interval Interval     `url:"interval"`
	From     int          `url:"from"`

	Limit *int `url:"limit,omitempty"`
}

MarkPriceKlineParam :

type MarkPriceKlineResponse

type MarkPriceKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []MarkPriceKlineResult `json:"result"`
}

MarkPriceKlineResponse :

type MarkPriceKlineResult

type MarkPriceKlineResult struct {
	Symbol  SymbolFuture `json:"symbol"`
	Period  Period       `json:"period"`
	StartAt int          `json:"start_at"`
	Open    float64      `json:"open"`
	High    float64      `json:"high"`
	Low     float64      `json:"low"`
	Close   float64      `json:"close"`
}

MarkPriceKlineResult :

type OpenInterestParam

type OpenInterestParam struct {
	Symbol SymbolFuture `url:"symbol"`
	Period Period       `url:"period"`

	Limit *int `url:"limit,omitempty"`
}

OpenInterestParam :

type OpenInterestResponse

type OpenInterestResponse struct {
	CommonResponse `json:",inline"`
	Result         []OpenInterestResult `json:"result"`
}

OpenInterestResponse :

type OpenInterestResult

type OpenInterestResult struct {
	OpenInterest float64      `json:"open_interest"`
	Timestamp    int          `json:"timestamp"`
	Symbol       SymbolFuture `json:"symbol"`
}

OpenInterestResult :

type Order

type Order string

Order :

type OrderBookResponse

type OrderBookResponse struct {
	CommonResponse `json:",inline"`
	Result         []OrderBookResult `json:"result"`
}

OrderBookResponse :

type OrderBookResult

type OrderBookResult struct {
	Symbol SymbolFuture `json:"symbol"`
	Price  string       `json:"price"`
	Size   float64      `json:"size"`
	Side   Side         `json:"side"`
}

OrderBookResult :

type OrderStatus

type OrderStatus string

OrderStatus :

type OrderStatusSpot

type OrderStatusSpot string

OrderStatusSpot :

type OrderType

type OrderType string

OrderType :

type OrderTypeSpot

type OrderTypeSpot string

OrderTypeSpot :

type Period

type Period string

Period :

type PremiumIndexKlineParam

type PremiumIndexKlineParam struct {
	Symbol   SymbolFuture `url:"symbol"`
	Interval Interval     `url:"interval"`
	From     int          `url:"from"`

	Limit *int `url:"limit,omitempty"`
}

PremiumIndexKlineParam :

type PremiumIndexKlineResponse

type PremiumIndexKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []PremiumIndexKlineResult `json:"result"`
}

PremiumIndexKlineResponse :

type PremiumIndexKlineResult

type PremiumIndexKlineResult struct {
	Symbol   SymbolFuture `json:"symbol"`
	Period   Period       `json:"period"`
	OpenTime int          `json:"open_time"`
	Open     string       `json:"open"`
	High     string       `json:"high"`
	Low      string       `json:"low"`
	Close    string       `json:"close"`
}

PremiumIndexKlineResult :

type PriceFilter

type PriceFilter struct {
	MinPrice string `json:"min_price"`
	MaxPrice string `json:"max_price"`
	TickSize string `json:"tick_size"`
}

PriceFilter :

type QueryFuturesOrderParam

type QueryFuturesOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderID     *string `url:"order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryFuturesOrderParam :

type QueryFuturesOrderResponse

type QueryFuturesOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         QueryFuturesOrderResult `json:"result"`
}

QueryFuturesOrderResponse :

type QueryFuturesOrderResult

type QueryFuturesOrderResult struct {
	UserID       int                    `json:"user_id"`
	PositionIdx  int                    `json:"position_idx"`
	Symbol       SymbolFuture           `json:"symbol"`
	Side         Side                   `json:"side"`
	OrderType    OrderType              `json:"order_type"`
	Price        string                 `json:"price"`
	Qty          float64                `json:"qty"`
	TimeInForce  TimeInForce            `json:"time_in_force"`
	OrderStatus  OrderStatus            `json:"order_status"`
	ExtFields    map[string]interface{} `json:"ext_fields"`
	LastExecTime string                 `json:"last_exec_time"`
	LeavesQty    int                    `json:"leaves_qty"`
	LeavesValue  string                 `json:"leaves_value"`
	CumExecQty   int                    `json:"cum_exec_qty"`
	CumExecValue string                 `json:"cum_exec_value"`
	CumExecFee   string                 `json:"cum_exec_fee"`
	RejectReason string                 `json:"reject_reason"`
	CancelType   string                 `json:"cancel_type"`
	OrderLinkID  string                 `json:"order_link_id"`
	CreatedAt    string                 `json:"created_at"`
	UpdatedAt    string                 `json:"updated_at"`
	OrderID      string                 `json:"order_id"`
	TakeProfit   string                 `json:"take_profit"`
	StopLoss     string                 `json:"stop_loss"`
	TpTriggerBy  TriggerByFuture        `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture        `json:"sl_trigger_by"`
}

QueryFuturesOrderResult :

type QueryFuturesStopOrderParam

type QueryFuturesStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderID *string `url:"stop_order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryFuturesStopOrderParam :

type QueryFuturesStopOrderResponse

type QueryFuturesStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         QueryFuturesStopOrderResult `json:"result"`
}

QueryFuturesStopOrderResponse :

type QueryFuturesStopOrderResult

type QueryFuturesStopOrderResult struct {
	UserID       int                    `json:"user_id"`
	PositionIdx  int                    `json:"position_idx"`
	Symbol       SymbolFuture           `json:"symbol"`
	Side         Side                   `json:"side"`
	OrderType    OrderType              `json:"order_type"`
	Price        string                 `json:"price"`
	Qty          float64                `json:"qty"`
	StopPx       string                 `json:"stop_px"`
	BasePrice    string                 `json:"base_price"`
	TimeInForce  TimeInForce            `json:"time_in_force"`
	OrderStatus  OrderStatus            `json:"order_status"`
	ExtFields    map[string]interface{} `json:"ext_fields"`
	LeavesQty    int                    `json:"leaves_qty"`
	LeavesValue  string                 `json:"leaves_value"`
	CumExecQty   int                    `json:"cum_exec_qty"`
	CumExecValue string                 `json:"cum_exec_value"`
	CumExecFee   string                 `json:"cum_exec_fee"`
	RejectReason string                 `json:"reject_reason"`
	OrderLinkID  string                 `json:"order_link_id"`
	CreatedAt    string                 `json:"created_at"`
	UpdatedAt    string                 `json:"updated_at"`
	OrderID      string                 `json:"order_id"`
	TriggerBy    TriggerByFuture        `json:"trigger_by"`
	TakeProfit   string                 `json:"take_profit"`
	StopLoss     string                 `json:"stop_loss"`
	TpTriggerBy  TriggerByFuture        `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture        `json:"sl_trigger_by"`
}

QueryFuturesStopOrderResult :

type QueryLinearOrderParam

type QueryLinearOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderID     *string `url:"order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryLinearOrderParam :

type QueryLinearOrderResponse

type QueryLinearOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []QueryLinearOrderResult `json:"result"`
}

QueryLinearOrderResponse :

type QueryLinearOrderResult

type QueryLinearOrderResult struct {
	OrderID        string          `json:"order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	LastExecPrice  float64         `json:"last_exec_price"`
	CumExecQty     float64         `json:"cum_exec_qty"`
	CumExecValue   float64         `json:"cum_exec_value"`
	CumExecFee     float64         `json:"cum_exec_fee"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
}

QueryLinearOrderResult :

type QueryLinearStopOrderParam

type QueryLinearStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderID *string `url:"stop_order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryLinearStopOrderParam :

type QueryLinearStopOrderResponse

type QueryLinearStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []QueryLinearStopOrderResult `json:"result"`
}

QueryLinearStopOrderResponse :

type QueryLinearStopOrderResult

type QueryLinearStopOrderResult struct {
	StopOrderID    string          `json:"stop_order_id"`
	UserID         int             `json:"user_id"`
	Symbol         SymbolFuture    `json:"symbol"`
	Side           Side            `json:"side"`
	OrderType      OrderType       `json:"order_type"`
	Price          float64         `json:"price"`
	Qty            float64         `json:"qty"`
	TimeInForce    TimeInForce     `json:"time_in_force"`
	OrderStatus    OrderStatus     `json:"order_status"`
	TriggerPrice   float64         `json:"trigger_price"`
	BasePrice      string          `json:"base_price"`
	OrderLinkID    string          `json:"order_link_id"`
	CreatedTime    string          `json:"created_time"`
	UpdatedTime    string          `json:"updated_time"`
	TakeProfit     float64         `json:"take_profit"`
	StopLoss       float64         `json:"stop_loss"`
	TpTriggerBy    TriggerByFuture `json:"tp_trigger_by"`
	SlTriggerBy    TriggerByFuture `json:"sl_trigger_by"`
	TriggerBy      TriggerByFuture `json:"trigger_by"`
	ReduceOnly     bool            `json:"reduce_only"`
	CloseOnTrigger bool            `json:"close_on_trigger"`
}

QueryLinearStopOrderResult :

type QueryOrderParam

type QueryOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	OrderID     *string `url:"order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryOrderParam :

type QueryOrderResponse

type QueryOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []QueryOrderResult `json:"result"`
}

QueryOrderResponse :

type QueryOrderResult

type QueryOrderResult struct {
	UserID       int                    `json:"user_id"`
	PositionIdx  int                    `json:"position_idx"`
	Symbol       SymbolFuture           `json:"symbol"`
	Side         Side                   `json:"side"`
	OrderType    OrderType              `json:"order_type"`
	Price        string                 `json:"price"`
	Qty          float64                `json:"qty"`
	TimeInForce  TimeInForce            `json:"time_in_force"`
	OrderStatus  OrderStatus            `json:"order_status"`
	ExtFields    map[string]interface{} `json:"ext_fields"`
	LastExecTime string                 `json:"last_exec_time"`
	LeavesQty    int                    `json:"leaves_qty"`
	LeavesValue  string                 `json:"leaves_value"`
	CumExecQty   int                    `json:"cum_exec_qty"`
	CumExecValue string                 `json:"cum_exec_value"`
	CumExecFee   string                 `json:"cum_exec_fee"`
	RejectReason string                 `json:"reject_reason"`
	CancelType   string                 `json:"cancel_type"`
	OrderLinkID  string                 `json:"order_link_id"`
	CreatedAt    string                 `json:"created_at"`
	UpdatedAt    string                 `json:"updated_at"`
	OrderID      string                 `json:"order_id"`
	TakeProfit   string                 `json:"take_profit"`
	StopLoss     string                 `json:"stop_loss"`
	TpTriggerBy  TriggerByFuture        `json:"tp_trigger_by"`
	SlTriggerBy  TriggerByFuture        `json:"sl_trigger_by"`
}

QueryOrderResult :

type QueryStopOrderParam

type QueryStopOrderParam struct {
	Symbol SymbolFuture `url:"symbol"`

	StopOrderID *string `url:"stop_order_id,omitempty"`
	OrderLinkID *string `url:"order_link_id,omitempty"`
}

QueryStopOrderParam :

type QueryStopOrderResponse

type QueryStopOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         []QueryStopOrderResult `json:"result"`
}

QueryStopOrderResponse :

type QueryStopOrderResult

type QueryStopOrderResult struct {
	UserID          int                    `json:"user_id"`
	PositionIdx     int                    `json:"position_idx"`
	Symbol          SymbolFuture           `json:"symbol"`
	Side            Side                   `json:"side"`
	OrderType       OrderType              `json:"order_type"`
	Price           string                 `json:"price"`
	Qty             float64                `json:"qty"`
	StopPx          string                 `json:"stop_px"`
	BasePrice       string                 `json:"base_price"`
	TimeInForce     TimeInForce            `json:"time_in_force"`
	StopOrderStatus OrderStatus            `json:"stop_order_status"`
	ExtFields       map[string]interface{} `json:"ext_fields"`
	LeavesQty       int                    `json:"leaves_qty"`
	LeavesValue     string                 `json:"leaves_value"`
	CumExecQty      int                    `json:"cum_exec_qty"`
	CumExecValue    string                 `json:"cum_exec_value"`
	CumExecFee      string                 `json:"cum_exec_fee"`
	RejectReason    string                 `json:"reject_reason"`
	OrderLinkID     string                 `json:"order_link_id"`
	CreatedAt       string                 `json:"created_at"`
	UpdatedAt       string                 `json:"updated_at"`
	OrderID         string                 `json:"order_id"`
	TriggerBy       TriggerByFuture        `json:"trigger_by"`
	TakeProfit      string                 `json:"take_profit"`
	StopLoss        string                 `json:"stop_loss"`
	TpTriggerBy     TriggerByFuture        `json:"tp_trigger_by"`
	SlTriggerBy     TriggerByFuture        `json:"sl_trigger_by"`
}

QueryStopOrderResult :

type RateLimitError

type RateLimitError struct {
	*CommonResponse `json:",inline"`
}

RateLimitError :

func (*RateLimitError) Error

func (r *RateLimitError) Error() string

type ReplaceLinearOrderParam

type ReplaceLinearOrderParam struct {
	Symbol SymbolFuture `json:"symbol"`

	OrderID     *string          `json:"order_id,omitempty"`
	OrderLinkID *string          `json:"order_link_id,omitempty"`
	NewQuantity *float64         `json:"p_r_qty,omitempty"`
	NewPrice    *float64         `json:"p_r_price,omitempty"`
	TakeProfit  *float64         `json:"take_profit,omitempty"`
	StopLoss    *float64         `json:"stop_loss,omitempty"`
	TpTriggerBy *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy *TriggerByFuture `json:"sl_trigger_by,omitempty"`
}

ReplaceLinearOrderParam :

type ReplaceLinearOrderResponse

type ReplaceLinearOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         ReplaceLinearOrderResult `json:"result"`
}

ReplaceLinearOrderResponse :

type ReplaceLinearOrderResult

type ReplaceLinearOrderResult struct {
	OrderID string `json:"order_id"`
}

ReplaceLinearOrderResult :

type SaveLeverageParam

type SaveLeverageParam struct {
	Symbol   SymbolFuture `json:"symbol"`
	Leverage float64      `json:"leverage"`
}

SaveLeverageParam :

type SaveLeverageResponse

type SaveLeverageResponse struct {
	CommonResponse `json:",inline"`
	Result         float64 `json:"result"`
}

SaveLeverageResponse :

type SaveLinearLeverageParam

type SaveLinearLeverageParam struct {
	Symbol       SymbolFuture `json:"symbol"`
	BuyLeverage  float64      `json:"buy_leverage"`
	SellLeverage float64      `json:"sell_leverage"`
}

SaveLinearLeverageParam :

type SaveLinearLeverageResponse

type SaveLinearLeverageResponse struct {
	CommonResponse `json:",inline"`
}

SaveLinearLeverageResponse :

type Side

type Side string

Side :

type SpotDeleteOrderFastParam

type SpotDeleteOrderFastParam struct {
	Symbol SymbolSpot `url:"symbolId"`

	OrderID     *string `url:"orderId,omitempty"`
	OrderLinkID *string `url:"orderLinkId,omitempty"`
}

type SpotDeleteOrderFastResponse

type SpotDeleteOrderFastResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotDeleteOrderFastResult `json:"result"`
}

type SpotDeleteOrderFastResult

type SpotDeleteOrderFastResult struct {
	IsCancelled bool `json:"isCancelled"`
}

type SpotDeleteOrderParam

type SpotDeleteOrderParam struct {
	OrderID     *string `url:"orderId,omitempty"`
	OrderLinkID *string `url:"orderLinkId,omitempty"`
}

SpotDeleteOrderParam :

type SpotDeleteOrderResponse

type SpotDeleteOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotDeleteOrderResult `json:"result"`
}

SpotDeleteOrderResponse :

type SpotDeleteOrderResult

type SpotDeleteOrderResult struct {
	OrderId      string `json:"orderId"`
	OrderLinkId  string `json:"orderLinkId"`
	Symbol       string `json:"symbol"`
	Status       string `json:"status"`
	AccountId    string `json:"accountId"`
	TransactTime string `json:"transactTime"`
	Price        string `json:"price"`
	OrigQty      string `json:"origQty"`
	ExecutedQty  string `json:"executedQty"`
	TimeInForce  string `json:"timeInForce"`
	Type         string `json:"type"`
	Side         string `json:"side"`
}

SpotDeleteOrderResult :

type SpotGetOrderParam

type SpotGetOrderParam struct {
	OrderID     *string `url:"orderId,omitempty"`
	OrderLinkID *string `url:"orderLinkId,omitempty"`
}

SpotGetOrderParam :

type SpotGetOrderResponse

type SpotGetOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotGetOrderResult `json:"result"`
}

SpotGetOrderResponse :

type SpotGetOrderResult

type SpotGetOrderResult struct {
	AccountId           string `json:"accountId"`
	ExchangeId          string `json:"exchangeId"`
	Symbol              string `json:"symbol"`
	SymbolName          string `json:"symbolName"`
	OrderLinkId         string `json:"orderLinkId"`
	OrderId             string `json:"orderId"`
	Price               string `json:"price"`
	OrigQty             string `json:"origQty"`
	ExecutedQty         string `json:"executedQty"`
	CummulativeQuoteQty string `json:"cummulativeQuoteQty"`
	AvgPrice            string `json:"avgPrice"`
	Status              string `json:"status"`
	TimeInForce         string `json:"timeInForce"`
	Type                string `json:"type"`
	Side                string `json:"side"`
	StopPrice           string `json:"stopPrice"`
	IcebergQty          string `json:"icebergQty"`
	Time                string `json:"time"`
	UpdateTime          string `json:"updateTime"`
	IsWorking           bool   `json:"isWorking"`
}

SpotGetOrderResult :

type SpotGetWalletBalanceResponse

type SpotGetWalletBalanceResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotGetWalletBalanceResult `json:"result"`
}

SpotGetWalletBalanceResponse :

type SpotGetWalletBalanceResult

type SpotGetWalletBalanceResult struct {
	Balances []SpotGetWalletBalanceResultBalance `json:"balances"`
}

SpotGetWalletBalanceResult :

type SpotGetWalletBalanceResultBalance

type SpotGetWalletBalanceResultBalance struct {
	Coin     string `json:"coin"`
	CoinID   string `json:"coinId"`
	CoinName string `json:"coinName"`
	Total    string `json:"total"`
	Free     string `json:"free"`
	Locked   string `json:"locked"`
}

SpotGetWalletBalanceResultBalance :

type SpotInterval

type SpotInterval string

SpotInterval :

type SpotOpenOrdersParam

type SpotOpenOrdersParam struct {
	Symbol  *SymbolSpot `url:"symbol,omitempty"`
	OrderID *string     `url:"orderId,omitempty"`
	Limit   *int        `url:"limit,omitempty"`
}

SpotOpenOrdersParam :

type SpotOpenOrdersResponse

type SpotOpenOrdersResponse struct {
	CommonResponse `json:",inline"`
	Result         []SpotOpenOrdersResult `json:"result"`
}

SpotOpenOrdersResponse :

type SpotOpenOrdersResult

type SpotOpenOrdersResult struct {
	AccountID           string `json:"accountId"`
	ExchangeID          string `json:"exchangeId"`
	Symbol              string `json:"symbol"`
	SymbolName          string `json:"symbolName"`
	OrderLinkID         string `json:"orderLinkId"`
	OrderID             string `json:"orderId"`
	Price               string `json:"price"`
	OrigQty             string `json:"origQty"`
	ExecutedQty         string `json:"executedQty"`
	CummulativeQuoteQty string `json:"cummulativeQuoteQty"`
	AvgPrice            string `json:"avgPrice"`
	Status              string `json:"status"`
	TimeInForce         string `json:"timeInForce"`
	Type                string `json:"type"`
	Side                string `json:"side"`
	StopPrice           string `json:"stopPrice"`
	IcebergQty          string `json:"icebergQty"`
	Time                string `json:"time"`
	UpdateTime          string `json:"updateTime"`
	IsWorking           bool   `json:"isWorking"`
}

SpotOpenOrdersResult :

type SpotOrderBatchCancelByIDsResponse

type SpotOrderBatchCancelByIDsResponse struct {
	CommonResponse `json:",inline"`
	Result         []SpotOrderBatchCancelByIDsResult `json:"result"`
}

type SpotOrderBatchCancelByIDsResult

type SpotOrderBatchCancelByIDsResult struct {
	OrderID string `json:"orderId"`
	Code    string `json:"code"`
}

type SpotOrderBatchCancelParam

type SpotOrderBatchCancelParam struct {
	Symbol SymbolSpot `url:"symbolId"`

	Side  *Side           `url:"side,omitempty"`
	Types []OrderTypeSpot `url:"orderTypes,omitempty" del:","`
}

type SpotOrderBatchCancelResponse

type SpotOrderBatchCancelResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotOrderBatchCancelResult `json:"result"`
}

type SpotOrderBatchCancelResult

type SpotOrderBatchCancelResult struct {
	Success bool `json:"success"`
}

type SpotOrderBatchFastCancelParam

type SpotOrderBatchFastCancelParam struct {
	Symbol SymbolSpot `url:"symbolId"`

	Side  *Side           `url:"side,omitempty"`
	Types []OrderTypeSpot `url:"orderTypes,omitempty" del:","`
}

type SpotOrderBatchFastCancelResponse

type SpotOrderBatchFastCancelResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotOrderBatchFastCancelResult `json:"result"`
}

type SpotOrderBatchFastCancelResult

type SpotOrderBatchFastCancelResult struct {
	Success bool `json:"success"`
}

type SpotPostOrderParam

type SpotPostOrderParam struct {
	Symbol SymbolSpot    `url:"symbol"`
	Qty    float64       `url:"qty"`
	Side   Side          `url:"side"`
	Type   OrderTypeSpot `url:"type"`

	TimeInForce *TimeInForceSpot `url:"timeInForce,omitempty"`
	Price       *float64         `url:"price,omitempty"`
	OrderLinkID *string          `url:"orderLinkId,omitempty"`
}

SpotPostOrderParam :

type SpotPostOrderResponse

type SpotPostOrderResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotPostOrderResult `json:"result"`
}

SpotPostOrderResponse :

type SpotPostOrderResult

type SpotPostOrderResult struct {
	OrderID      string          `json:"orderId"`
	OrderLinkID  string          `json:"orderLinkId"`
	Symbol       string          `json:"symbol"`
	TransactTime string          `json:"transactTime"`
	Price        string          `json:"price"`
	OrigQty      string          `json:"origQty"`
	Type         OrderTypeSpot   `json:"type"`
	Side         string          `json:"side"`
	Status       OrderStatusSpot `json:"status"`
	TimeInForce  TimeInForceSpot `json:"timeInForce"`
	AccountID    string          `json:"accountId"`
	SymbolName   string          `json:"symbolName"`
	ExecutedQty  string          `json:"executedQty"`
}

SpotPostOrderResult :

type SpotQuoteDepthBidAsk

type SpotQuoteDepthBidAsk struct {
	Price    string
	Quantity string
}

SpotQuoteDepthBidAsk :

type SpotQuoteDepthBidsAsks

type SpotQuoteDepthBidsAsks []SpotQuoteDepthBidAsk

SpotQuoteDepthBidsAsks :

func (*SpotQuoteDepthBidsAsks) UnmarshalJSON

func (r *SpotQuoteDepthBidsAsks) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type SpotQuoteDepthMergedParam

type SpotQuoteDepthMergedParam struct {
	Symbol SymbolSpot `url:"symbol"`

	Scale *int `url:"scale,omitempty"`
	Limit *int `url:"limit,omitempty"`
}

SpotQuoteDepthMergedParam :

type SpotQuoteDepthMergedResponse

type SpotQuoteDepthMergedResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotQuoteDepthMergedResult `json:"result"`
}

SpotQuoteDepthMergedResponse :

type SpotQuoteDepthMergedResult

type SpotQuoteDepthMergedResult struct {
	Time int                    `json:"time"`
	Bids SpotQuoteDepthBidsAsks `json:"bids"`
	Asks SpotQuoteDepthBidsAsks `json:"asks"`
}

SpotQuoteDepthMergedResult :

type SpotQuoteDepthParam

type SpotQuoteDepthParam struct {
	Symbol SymbolSpot `url:"symbol"`

	Limit *int `url:"limit,omitempty"`
}

SpotQuoteDepthParam :

type SpotQuoteDepthResponse

type SpotQuoteDepthResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotQuoteDepthResult `json:"result"`
}

SpotQuoteDepthResponse :

type SpotQuoteDepthResult

type SpotQuoteDepthResult struct {
	Time int                    `json:"time"`
	Bids SpotQuoteDepthBidsAsks `json:"bids"`
	Asks SpotQuoteDepthBidsAsks `json:"asks"`
}

SpotQuoteDepthResult :

type SpotQuoteKline

type SpotQuoteKline struct {
	StartTime        int
	Open             string
	High             string
	Low              string
	Close            string
	Volume           string
	EndTime          int
	QuoteAssetVolume string
	Trades           int
	TakerBaseVolume  float64
	TakerQuoteVolume float64
}

SpotQuoteKline :

type SpotQuoteKlineParam

type SpotQuoteKlineParam struct {
	Symbol   SymbolSpot `url:"symbol"`
	Interval Interval   `url:"interval"`

	Limit     *int `url:"limit,omitempty"`
	StartTime *int `url:"startTime,omitempty"`
	EndTime   *int `url:"endTime,omitempty"`
}

SpotQuoteKlineParam :

type SpotQuoteKlineResponse

type SpotQuoteKlineResponse struct {
	CommonResponse `json:",inline"`
	Result         []SpotQuoteKlineResult `json:"result"`
}

SpotQuoteKlineResponse :

type SpotQuoteKlineResult

type SpotQuoteKlineResult struct {
	SpotQuoteKline SpotQuoteKline
}

SpotQuoteKlineResult :

func (*SpotQuoteKlineResult) UnmarshalJSON

func (r *SpotQuoteKlineResult) UnmarshalJSON(data []byte) error

UnmarshalJSON :

type SpotQuoteTicker24hrParam

type SpotQuoteTicker24hrParam struct {
	Symbol *SymbolSpot `url:"symbol,omitempty"`
}

SpotQuoteTicker24hrParam :

type SpotQuoteTicker24hrResponse

type SpotQuoteTicker24hrResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotQuoteTicker24hrResult `json:"result"`
}

SpotQuoteTicker24hrResponse :

type SpotQuoteTicker24hrResult

type SpotQuoteTicker24hrResult struct {
	Time         int    `json:"time"`
	Symbol       string `json:"symbol"`
	BestBidPrice string `json:"bestBidPrice"`
	BestAskPrice string `json:"bestAskPrice"`
	LastPrice    string `json:"lastPrice"`
	OpenPrice    string `json:"openPrice"`
	HighPrice    string `json:"highPrice"`
	LowPrice     string `json:"lowPrice"`
	Volume       string `json:"volume"`
	QuoteVolume  string `json:"quoteVolume"`
}

SpotQuoteTicker24hrResult :

type SpotQuoteTickerBookTickerParam

type SpotQuoteTickerBookTickerParam struct {
	Symbol *SymbolSpot `url:"symbol,omitempty"`
}

SpotQuoteTickerBookTickerParam :

type SpotQuoteTickerBookTickerResponse

type SpotQuoteTickerBookTickerResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotQuoteTickerBookTickerResult `json:"result"`
}

SpotQuoteTickerBookTickerResponse :

type SpotQuoteTickerBookTickerResult

type SpotQuoteTickerBookTickerResult struct {
	Symbol   string `json:"symbol"`
	BidPrice string `json:"bidPrice"`
	BidQty   string `json:"bidQty"`
	AskPrice string `json:"askPrice"`
	AskQty   string `json:"askQty"`
	Time     int    `json:"time"`
}

SpotQuoteTickerBookTickerResult :

type SpotQuoteTickerPriceParam

type SpotQuoteTickerPriceParam struct {
	Symbol *SymbolSpot `url:"symbol,omitempty"`
}

SpotQuoteTickerPriceParam :

type SpotQuoteTickerPriceResponse

type SpotQuoteTickerPriceResponse struct {
	CommonResponse `json:",inline"`
	Result         SpotQuoteTickerPriceResult `json:"result"`
}

SpotQuoteTickerPriceResponse :

type SpotQuoteTickerPriceResult

type SpotQuoteTickerPriceResult struct {
	Symbol string `json:"symbol"`
	Price  string `json:"price"`
}

SpotQuoteTickerPriceResult :

type SpotQuoteTradesParam

type SpotQuoteTradesParam struct {
	Symbol SymbolSpot `url:"symbol"`

	Limit *int `url:"limit,omitempty"`
}

SpotQuoteTradesParam :

type SpotQuoteTradesResponse

type SpotQuoteTradesResponse struct {
	CommonResponse `json:",inline"`
	Result         []SpotQuoteTradesResult `json:"result"`
}

SpotQuoteTradesResponse :

type SpotQuoteTradesResult

type SpotQuoteTradesResult struct {
	Price        string `json:"price"`
	Time         int    `json:"time"`
	Qty          string `json:"qty"`
	IsBuyerMaker bool   `json:"isBuyerMaker"`
}

SpotQuoteTradesResult :

type SpotService

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

SpotService :

func (*SpotService) V1

func (s *SpotService) V1() SpotV1ServiceI

V1 :

func (*SpotService) V3

func (s *SpotService) V3() *SpotV3Service

V3 :

type SpotServiceI

type SpotServiceI interface {
	V1() SpotV1ServiceI
	V3() *SpotV3Service
}

SpotServiceI :

type SpotSymbolsResponse

type SpotSymbolsResponse struct {
	CommonResponse `json:",inline"`
	Result         []SpotSymbolsResult `json:"result"`
}

SpotSymbolsResponse :

type SpotSymbolsResult

type SpotSymbolsResult struct {
	Name              string `json:"name"`
	Alias             string `json:"alias"`
	BaseCurrency      string `json:"baseCurrency"`
	QuoteCurrency     string `json:"quoteCurrency"`
	BasePrecision     string `json:"basePrecision"`
	QuotePrecision    string `json:"quotePrecision"`
	MinTradeQuantity  string `json:"minTradeQuantity"`
	MinTradeAmount    string `json:"minTradeAmount"`
	MinPricePrecision string `json:"minPricePrecision"`
	MaxTradeQuantity  string `json:"maxTradeQuantity"`
	MaxTradeAmount    string `json:"maxTradeAmount"`
	Category          int    `json:"category"`
}

SpotSymbolsResult :

type SpotV1Service

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

SpotV1Service :

func (*SpotV1Service) SpotDeleteOrder

func (s *SpotV1Service) SpotDeleteOrder(param SpotDeleteOrderParam) (*SpotDeleteOrderResponse, error)

SpotDeleteOrder :

func (*SpotV1Service) SpotDeleteOrderFast

func (s *SpotV1Service) SpotDeleteOrderFast(param SpotDeleteOrderFastParam) (*SpotDeleteOrderFastResponse, error)

SpotDeleteOrderFast :

func (*SpotV1Service) SpotGetOrder

func (s *SpotV1Service) SpotGetOrder(param SpotGetOrderParam) (*SpotGetOrderResponse, error)

SpotGetOrder :

func (*SpotV1Service) SpotGetWalletBalance

func (s *SpotV1Service) SpotGetWalletBalance() (*SpotGetWalletBalanceResponse, error)

SpotGetWalletBalance :

func (*SpotV1Service) SpotOpenOrders

func (s *SpotV1Service) SpotOpenOrders(param SpotOpenOrdersParam) (*SpotOpenOrdersResponse, error)

SpotOpenOrders :

func (*SpotV1Service) SpotOrderBatchCancel

func (*SpotV1Service) SpotOrderBatchCancelByIDs

func (s *SpotV1Service) SpotOrderBatchCancelByIDs(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error)

TODO : have bug multiple orderIds

func (*SpotV1Service) SpotOrderBatchFastCancel

func (*SpotV1Service) SpotPostOrder

func (s *SpotV1Service) SpotPostOrder(param SpotPostOrderParam) (*SpotPostOrderResponse, error)

SpotPostOrder :

func (*SpotV1Service) SpotQuoteDepth

func (s *SpotV1Service) SpotQuoteDepth(param SpotQuoteDepthParam) (*SpotQuoteDepthResponse, error)

SpotQuoteDepth :

func (*SpotV1Service) SpotQuoteDepthMerged

SpotQuoteDepthMerged :

func (*SpotV1Service) SpotQuoteKline

func (s *SpotV1Service) SpotQuoteKline(param SpotQuoteKlineParam) (*SpotQuoteKlineResponse, error)

SpotQuoteKline :

func (*SpotV1Service) SpotQuoteTicker24hr

func (s *SpotV1Service) SpotQuoteTicker24hr(param SpotQuoteTicker24hrParam) (*SpotQuoteTicker24hrResponse, error)

SpotQuoteTicker24hr :

func (*SpotV1Service) SpotQuoteTickerBookTicker

SpotQuoteTickerBookTicker :

func (*SpotV1Service) SpotQuoteTickerPrice

SpotQuoteTickerPrice :

func (*SpotV1Service) SpotQuoteTrades

func (s *SpotV1Service) SpotQuoteTrades(param SpotQuoteTradesParam) (*SpotQuoteTradesResponse, error)

SpotQuoteTrades :

func (*SpotV1Service) SpotSymbols

func (s *SpotV1Service) SpotSymbols() (*SpotSymbolsResponse, error)

SpotSymbols :

type SpotV1ServiceI

type SpotV1ServiceI interface {
	// Market Data Endpoints
	SpotSymbols() (*SpotSymbolsResponse, error)
	SpotQuoteDepth(SpotQuoteDepthParam) (*SpotQuoteDepthResponse, error)
	SpotQuoteDepthMerged(SpotQuoteDepthMergedParam) (*SpotQuoteDepthMergedResponse, error)
	SpotQuoteTrades(SpotQuoteTradesParam) (*SpotQuoteTradesResponse, error)
	SpotQuoteKline(SpotQuoteKlineParam) (*SpotQuoteKlineResponse, error)
	SpotQuoteTicker24hr(SpotQuoteTicker24hrParam) (*SpotQuoteTicker24hrResponse, error)
	SpotQuoteTickerPrice(SpotQuoteTickerPriceParam) (*SpotQuoteTickerPriceResponse, error)
	SpotQuoteTickerBookTicker(SpotQuoteTickerBookTickerParam) (*SpotQuoteTickerBookTickerResponse, error)

	// Account Data Endpoints
	SpotPostOrder(SpotPostOrderParam) (*SpotPostOrderResponse, error)
	SpotGetOrder(SpotGetOrderParam) (*SpotGetOrderResponse, error)
	SpotDeleteOrder(SpotDeleteOrderParam) (*SpotDeleteOrderResponse, error)
	SpotDeleteOrderFast(SpotDeleteOrderFastParam) (*SpotDeleteOrderFastResponse, error)
	SpotOrderBatchCancel(SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error)
	SpotOrderBatchFastCancel(SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error)
	SpotOrderBatchCancelByIDs(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error)
	SpotOpenOrders(SpotOpenOrdersParam) (*SpotOpenOrdersResponse, error)

	// Wallet Data Endpoints
	SpotGetWalletBalance() (*SpotGetWalletBalanceResponse, error)
}

SpotV1ServiceI :

type SpotV3Service

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

SpotV3Service :

type SpotWebsocketService

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

SpotWebsocketService :

func (*SpotWebsocketService) V1

V1 :

type SpotWebsocketV1PrivateEventType

type SpotWebsocketV1PrivateEventType string

SpotWebsocketV1PrivateEventType :

type SpotWebsocketV1PrivateOutboundAccountInfoResponse

type SpotWebsocketV1PrivateOutboundAccountInfoResponse struct {
	Content SpotWebsocketV1PrivateOutboundAccountInfoResponseContent
}

SpotWebsocketV1PrivateOutboundAccountInfoResponse :

func (*SpotWebsocketV1PrivateOutboundAccountInfoResponse) Key

Key :

func (*SpotWebsocketV1PrivateOutboundAccountInfoResponse) MarshalJSON

MarshalJSON :

func (*SpotWebsocketV1PrivateOutboundAccountInfoResponse) UnmarshalJSON

UnmarshalJSON :

type SpotWebsocketV1PrivateOutboundAccountInfoResponseContent

type SpotWebsocketV1PrivateOutboundAccountInfoResponseContent struct {
	EventType            SpotWebsocketV1PrivateEventType                                        `json:"e"`
	Timestamp            string                                                                 `json:"E"`
	AllowTrade           bool                                                                   `json:"T"`
	AllowWithdraw        bool                                                                   `json:"W"`
	AllowWDeposit        bool                                                                   `json:"D"`
	WalletBalanceChanges []SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange `json:"B"`
}

SpotWebsocketV1PrivateOutboundAccountInfoResponseContent :

type SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange

type SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange struct {
	SymbolName       string `json:"a"`
	AvailableBalance string `json:"f"`
	ReservedBalance  string `json:"l"`
}

SpotWebsocketV1PrivateOutboundAccountInfoResponseWalletBalanceChange :

type SpotWebsocketV1PrivateParamKey

type SpotWebsocketV1PrivateParamKey struct {
	EventType SpotWebsocketV1PrivateEventType
}

SpotWebsocketV1PrivateParamKey :

type SpotWebsocketV1PrivateService

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

SpotWebsocketV1PrivateService :

func (*SpotWebsocketV1PrivateService) Close

Close :

func (*SpotWebsocketV1PrivateService) Ping

Ping :

func (*SpotWebsocketV1PrivateService) RegisterFuncOutboundAccountInfo

RegisterFuncOutboundAccountInfo :

func (*SpotWebsocketV1PrivateService) Run

Run :

func (*SpotWebsocketV1PrivateService) Start

Start :

func (*SpotWebsocketV1PrivateService) Subscribe

func (s *SpotWebsocketV1PrivateService) Subscribe() error

Subscribe :

type SpotWebsocketV1PublicV1Event

type SpotWebsocketV1PublicV1Event string

SpotWebsocketV1PublicV1Event :

type SpotWebsocketV1PublicV1Service

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

SpotWebsocketV1PublicV1Service :

func (*SpotWebsocketV1PublicV1Service) Close

Close :

func (*SpotWebsocketV1PublicV1Service) Ping

Ping :

func (*SpotWebsocketV1PublicV1Service) Run

Run :

func (*SpotWebsocketV1PublicV1Service) Start

Start :

func (*SpotWebsocketV1PublicV1Service) SubscribeTrade

func (s *SpotWebsocketV1PublicV1Service) SubscribeTrade(symbol SymbolSpot, f func(response SpotWebsocketV1PublicV1TradeResponse) error) (func() error, error)

SubscribeTrade :

type SpotWebsocketV1PublicV1Topic

type SpotWebsocketV1PublicV1Topic string

SpotWebsocketV1PublicV1Topic :

type SpotWebsocketV1PublicV1TradeContent

type SpotWebsocketV1PublicV1TradeContent struct {
	TradeID        string `json:"v"`
	Timestamp      int    `json:"t"`
	Price          string `json:"p"`
	Quantity       string `json:"q"`
	IsBuySideTaker bool   `json:"m"`
}

SpotWebsocketV1PublicV1TradeContent :

type SpotWebsocketV1PublicV1TradeParam

type SpotWebsocketV1PublicV1TradeParam struct {
	Symbol SymbolSpot                             `json:"symbol"`
	Topic  SpotWebsocketV1PublicV1Topic           `json:"topic"`
	Event  SpotWebsocketV1PublicV1Event           `json:"event"`
	Params SpotWebsocketV1PublicV1TradeParamChild `json:"params"`
}

SpotWebsocketV1PublicV1TradeParam :

func (*SpotWebsocketV1PublicV1TradeParam) Key

Key :

type SpotWebsocketV1PublicV1TradeParamChild

type SpotWebsocketV1PublicV1TradeParamChild struct {
	Binary bool `json:"binary"`
}

SpotWebsocketV1PublicV1TradeParamChild :

type SpotWebsocketV1PublicV1TradeParamKey

type SpotWebsocketV1PublicV1TradeParamKey struct {
	Symbol SymbolSpot
	Topic  SpotWebsocketV1PublicV1Topic
}

SpotWebsocketV1PublicV1TradeParamKey :

type SpotWebsocketV1PublicV1TradeResponse

type SpotWebsocketV1PublicV1TradeResponse struct {
	Symbol         SymbolSpot                   `json:"symbol"`
	SymbolName     string                       `json:"symbolName"`
	Topic          SpotWebsocketV1PublicV1Topic `json:"topic"`
	SendTime       int                          `json:"sendTime"`
	IsFirstMessage bool                         `json:"f"`

	Params SpotWebsocketV1PublicV1TradeResponseParams `json:"params"`
	Data   []SpotWebsocketV1PublicV1TradeContent      `json:"data"`
}

SpotWebsocketV1PublicV1TradeResponse :

func (*SpotWebsocketV1PublicV1TradeResponse) Key

Key :

type SpotWebsocketV1PublicV1TradeResponseParams

type SpotWebsocketV1PublicV1TradeResponseParams struct {
	RealtimeInterval string `json:"realtimeInterval"`
	Binary           string `json:"binary"`
}

SpotWebsocketV1PublicV1TradeResponseParams :

type SpotWebsocketV1PublicV2Event

type SpotWebsocketV1PublicV2Event string

SpotWebsocketV1PublicV2Event :

type SpotWebsocketV1PublicV2Service

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

SpotWebsocketV1PublicV2Service :

func (*SpotWebsocketV1PublicV2Service) Close

Close :

func (*SpotWebsocketV1PublicV2Service) Ping

Ping :

func (*SpotWebsocketV1PublicV2Service) Run

Run :

func (*SpotWebsocketV1PublicV2Service) Start

Start :

func (*SpotWebsocketV1PublicV2Service) SubscribeTrade

func (s *SpotWebsocketV1PublicV2Service) SubscribeTrade(symbol SymbolSpot, f func(response SpotWebsocketV1PublicV2TradeResponse) error) (func() error, error)

SubscribeTrade :

type SpotWebsocketV1PublicV2Topic

type SpotWebsocketV1PublicV2Topic string

SpotWebsocketV1PublicV2Topic :

type SpotWebsocketV1PublicV2TradeContent

type SpotWebsocketV1PublicV2TradeContent struct {
	TradeID        string `json:"v"`
	Timestamp      int    `json:"t"`
	Price          string `json:"p"`
	Quantity       string `json:"q"`
	IsBuySideTaker bool   `json:"m"`
}

SpotWebsocketV1PublicV2TradeContent :

type SpotWebsocketV1PublicV2TradeParam

type SpotWebsocketV1PublicV2TradeParam struct {
	Topic  SpotWebsocketV1PublicV2Topic           `json:"topic"`
	Event  SpotWebsocketV1PublicV2Event           `json:"event"`
	Params SpotWebsocketV1PublicV2TradeParamChild `json:"params"`
}

SpotWebsocketV1PublicV2TradeParam :

func (*SpotWebsocketV1PublicV2TradeParam) Key

Key :

type SpotWebsocketV1PublicV2TradeParamChild

type SpotWebsocketV1PublicV2TradeParamChild struct {
	Symbol SymbolSpot `json:"symbol"`
	Binary bool       `json:"binary"`
}

SpotWebsocketV1PublicV2TradeParamChild :

type SpotWebsocketV1PublicV2TradeParamKey

type SpotWebsocketV1PublicV2TradeParamKey struct {
	Symbol SymbolSpot
	Topic  SpotWebsocketV1PublicV2Topic
}

SpotWebsocketV1PublicV2TradeParamKey :

type SpotWebsocketV1PublicV2TradeResponse

type SpotWebsocketV1PublicV2TradeResponse struct {
	Topic  SpotWebsocketV1PublicV2Topic               `json:"topic"`
	Params SpotWebsocketV1PublicV2TradeResponseParams `json:"params"`
	Data   SpotWebsocketV1PublicV2TradeContent        `json:"data"`
}

SpotWebsocketV1PublicV2TradeResponse :

func (*SpotWebsocketV1PublicV2TradeResponse) Key

Key :

type SpotWebsocketV1PublicV2TradeResponseParams

type SpotWebsocketV1PublicV2TradeResponseParams struct {
	Symbol     SymbolSpot `json:"symbol"`
	SymbolName string     `json:"symbolName"`
	Binary     string     `json:"binary"`
}

SpotWebsocketV1PublicV2TradeResponseParams :

type SpotWebsocketV1Service

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

SpotWebsocketV1Service :

func (*SpotWebsocketV1Service) Private

Private :

func (*SpotWebsocketV1Service) PublicV1

PublicV1 :

func (*SpotWebsocketV1Service) PublicV2

PublicV2 :

type StatusDerivative

type StatusDerivative string

StatusDerivative :

type StopOrderTypeFuture

type StopOrderTypeFuture string

StopOrderTypeFuture :

type SymbolDerivative

type SymbolDerivative string

SymbolDerivative :

type SymbolFuture

type SymbolFuture string

SymbolFuture :

type SymbolSpot

type SymbolSpot string

SymbolSpot :

type SymbolsResponse

type SymbolsResponse struct {
	CommonResponse `json:",inline"`
	Result         []SymbolsResult `json:"result"`
}

SymbolsResponse :

type SymbolsResult

type SymbolsResult struct {
	Name           string         `json:"name"`
	BaseCurrency   string         `json:"base_currency"`
	QuoteCurrency  string         `json:"quote_currency"`
	PriceScale     float64        `json:"price_scale"`
	TakerFee       string         `json:"taker_fee"`
	MakerFee       string         `json:"maker_fee"`
	LeverageFilter LeverageFilter `json:"leverage_filter"`
	PriceFilter    PriceFilter    `json:"price_filter"`
	LotSizeFilter  LotSizeFilter  `json:"lot_size_filter"`
}

SymbolsResult :

type TestClient

type TestClient struct {
	*Client
}

TestClient :

func NewTestClient

func NewTestClient() *TestClient

NewTestClient :

func (*TestClient) WithAuthFromEnv

func (c *TestClient) WithAuthFromEnv() *TestClient

WithAuthFromEnv :

type TestWebSocketClient

type TestWebSocketClient struct {
	*WebSocketClient
}

TestWebSocketClient :

func NewTestWebsocketClient

func NewTestWebsocketClient() *TestWebSocketClient

NewTestWebsocketClient :

func (*TestWebSocketClient) WithAuthFromEnv

func (c *TestWebSocketClient) WithAuthFromEnv() *TestWebSocketClient

WithAuthFromEnv :

type TickDirection

type TickDirection string

TickDirection :

type TickersResponse

type TickersResponse struct {
	CommonResponse `json:",inline"`
	Result         []TickersResult `json:"result"`
}

TickersResponse :

type TickersResult

type TickersResult struct {
	Symbol               SymbolFuture  `json:"symbol"`
	BidPrice             string        `json:"bid_price"`
	AskPrice             string        `json:"ask_price"`
	LastPrice            string        `json:"last_price"`
	LastTickDirection    TickDirection `json:"last_tick_direction"`
	PrevPrice24h         string        `json:"prev_price_24h"`
	Price24hPcnt         string        `json:"price_24h_pcnt"`
	HighPrice24h         string        `json:"high_price_24h"`
	LowPrice24h          string        `json:"low_price_24h"`
	PrevPrice1h          string        `json:"prev_price_1h"`
	Price1hPcnt          string        `json:"price_1h_pcnt"`
	MarkPrice            string        `json:"mark_price"`
	IndexPrice           string        `json:"index_price"`
	OpenInterest         float64       `json:"open_interest"`
	OpenValue            string        `json:"open_value"`
	TotalTurnover        string        `json:"total_turnover"`
	Turnover24h          string        `json:"turnover_24h"`
	TotalVolume          float64       `json:"total_volume"`
	Volume24h            float64       `json:"volume_24h"`
	FundingRate          string        `json:"funding_rate"`
	PredictedFundingRate string        `json:"predicted_funding_rate"`
	NextFundingTime      string        `json:"next_funding_time"`
	CountdownHour        float64       `json:"countdown_hour"`
}

TickersResult :

type TimeInForce

type TimeInForce string

TimeInForce :

type TimeInForceSpot

type TimeInForceSpot string

TimeInForceSpot :

type TpSlMode

type TpSlMode string

TpSlMode :

type TradingRecordsParam

type TradingRecordsParam struct {
	Symbol SymbolFuture `url:"symbol"`

	From  *int `url:"from,omitempty"`
	Limit *int `url:"limit,omitempty"`
}

TradingRecordsParam :

type TradingRecordsResponse

type TradingRecordsResponse struct {
	CommonResponse `json:",inline"`
	Result         []TradingRecordsResult `json:"result"`
}

TradingRecordsResponse :

type TradingRecordsResult

type TradingRecordsResult struct {
	ID     float64      `json:"id"`
	Symbol SymbolFuture `json:"symbol"`
	Price  float64      `json:"price"`
	Qty    float64      `json:"qty"`
	Side   Side         `json:"side"`
	Time   string       `json:"time"`
}

TradingRecordsResult :

type TradingStopParam

type TradingStopParam struct {
	Symbol SymbolFuture `json:"symbol"`

	TakeProfit        *float64         `json:"take_profit,omitempty"`
	StopLoss          *float64         `json:"stop_loss,omitempty"`
	TrailingStop      *float64         `json:"trailing_stop,omitempty"`
	TpTriggerBy       *TriggerByFuture `json:"tp_trigger_by,omitempty"`
	SlTriggerBy       *TriggerByFuture `json:"sl_trigger_by,omitempty"`
	NewTrailingActive *float64         `json:"new_trailing_active,omitempty"`
	SlSize            *float64         `json:"sl_size,omitempty"`
	TpSize            *float64         `json:"tp_size,omitempty"`
}

TradingStopParam :

type TradingStopResponse

type TradingStopResponse struct {
	CommonResponse `json:",inline"`
	Result         TradingStopResult `json:"result"`
}

TradingStopResponse :

type TradingStopResult

type TradingStopResult struct {
	ID                  int                    `json:"id"`
	UserID              int                    `json:"user_id"`
	Symbol              SymbolFuture           `json:"symbol"`
	Side                Side                   `json:"side"`
	Size                float64                `json:"size"`
	PositionValue       float64                `json:"position_value"`
	EntryPrice          float64                `json:"entry_price"`
	RiskID              int                    `json:"risk_id"`
	AutoAddMargin       float64                `json:"auto_add_margin"`
	Leverage            float64                `json:"leverage"`
	PositionMargin      float64                `json:"position_margin"`
	LiqPrice            float64                `json:"liq_price"`
	BustPrice           float64                `json:"bust_price"`
	OccClosingFee       float64                `json:"occ_closing_fee"`
	OccFundingFee       float64                `json:"occ_funding_fee"`
	TakeProfit          float64                `json:"take_profit"`
	StopLoss            float64                `json:"stop_loss"`
	TrailingStop        float64                `json:"trailing_stop"`
	PositionStatus      string                 `json:"position_status"`
	DeleverageIndicator int                    `json:"deleverage_indicator"`
	OcCalcData          string                 `json:"oc_calc_data"`
	OrderMargin         float64                `json:"order_margin"`
	WalletBalance       float64                `json:"wallet_balance"`
	RealisedPnl         float64                `json:"realised_pnl"`
	CumRealisedPnl      float64                `json:"cum_realised_pnl"`
	CumCommission       float64                `json:"cum_commission"`
	CrossSeq            float64                `json:"cross_seq"`
	PositionSeq         float64                `json:"position_seq"`
	CreatedAt           string                 `json:"created_at"`
	UpdatedAt           string                 `json:"updated_at"`
	ExtFields           map[string]interface{} `json:"ext_fields"`
}

TradingStopResult :

type TriggerByFuture

type TriggerByFuture string

TriggerByFuture :

type USDCContractOptionService

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

USDCContractOptionService :

type USDCContractPerpetualService

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

USDCContractPerpetualService :

type USDCContractService

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

USDCContractService :

func (*USDCContractService) Option

Option :

func (*USDCContractService) Perpetual

Perpetual :

type USDCContractServiceI

type USDCContractServiceI interface {
	Option() *USDCContractOptionService
	Perpetual() *USDCContractPerpetualService
}

USDCContractServiceI :

type WebSocketClient

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

WebSocketClient :

func NewWebsocketClient

func NewWebsocketClient() *WebSocketClient

NewWebsocketClient :

func (*WebSocketClient) Spot

Spot :

func (*WebSocketClient) Start

func (c *WebSocketClient) Start(ctx context.Context, executors []WebsocketExecutor)

Start :

func (*WebSocketClient) WithAuth

func (c *WebSocketClient) WithAuth(key string, secret string) *WebSocketClient

WithAuth :

func (*WebSocketClient) WithBaseURL

func (c *WebSocketClient) WithBaseURL(url string) *WebSocketClient

WithBaseURL :

type WebsocketExecutor

type WebsocketExecutor interface {
	Run() error
	Close() error
	Ping() error
}

WebsocketExecutor :

Directories

Path Synopsis
integrationtest
integrationtest-ws

Jump to

Keyboard shortcuts

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