Documentation ¶
Index ¶
- Constants
- Variables
- type APIKeyInfoResponse
- type APIKeyInfoResult
- type AccountAssetService
- type AccountRatioParam
- type AccountRatioResponse
- type AccountRatioResult
- type Balance
- type BalanceResponse
- type BalanceResult
- type BigDealParam
- type BigDealResponse
- type BigDealResult
- type CancelAllFuturesOrderParam
- type CancelAllFuturesOrderResponse
- type CancelAllFuturesOrderResult
- type CancelAllFuturesStopOrderParam
- type CancelAllFuturesStopOrderResponse
- type CancelAllFuturesStopOrderResult
- type CancelAllLinearStopOrderParam
- type CancelAllLinearStopOrderResponse
- type CancelAllLinearStopOrderResult
- type CancelAllOrderParam
- type CancelAllOrderResponse
- type CancelAllOrderResult
- type CancelAllStopOrderParam
- type CancelAllStopOrderResponse
- type CancelAllStopOrderResult
- type CancelFuturesOrderParam
- type CancelFuturesOrderResponse
- type CancelFuturesOrderResult
- type CancelFuturesStopOrderParam
- type CancelFuturesStopOrderResponse
- type CancelFuturesStopOrderResult
- type CancelLinearOrder
- type CancelLinearOrderParam
- type CancelLinearOrderResponse
- type CancelLinearOrderResult
- type CancelLinearStopOrderParam
- type CancelLinearStopOrderResponse
- type CancelLinearStopOrderResult
- type CancelOrder
- type CancelOrderParam
- type CancelOrderResponse
- type CancelOrderResult
- type CancelStopOrderParam
- type CancelStopOrderResponse
- type CancelStopOrderResult
- type Client
- func (c *Client) AccountAsset() *AccountAssetService
- func (c *Client) CopyTrading() *CopyTradingService
- func (c *Client) Derivative() DerivativeServiceI
- func (c *Client) Future() FutureServiceI
- func (c *Client) Request(req *http.Request, dst interface{}) error
- func (c *Client) Spot() SpotServiceI
- func (c *Client) USDCContract() USDCContractServiceI
- func (c *Client) V5() V5ServiceI
- func (c *Client) WithAuth(key string, secret string) *Client
- func (c *Client) WithBaseURL(url string) *Client
- func (c *Client) WithHTTPClient(httpClient *http.Client) *Client
- func (c *Client) WithTestnet() *Client
- type CommonResponse
- type CommonV3Response
- type CommonV5Response
- type CopyTradingService
- type CreateFuturesOrderParam
- type CreateFuturesOrderResponse
- type CreateFuturesOrderResult
- type CreateFuturesStopOrderParam
- type CreateFuturesStopOrderResponse
- type CreateFuturesStopOrderResult
- type CreateLinearOrder
- type CreateLinearOrderParam
- type CreateLinearOrderResponse
- type CreateLinearOrderResult
- type CreateLinearStopOrderParam
- type CreateLinearStopOrderResponse
- type CreateLinearStopOrderResult
- type CreateOrder
- type CreateOrderParam
- type CreateOrderResponse
- type CreateOrderResult
- type CreateStopOrderParam
- type CreateStopOrderResponse
- type CreateStopOrderResult
- type DerivativeCommonService
- func (s *DerivativeCommonService) DerivativesIndexPriceKline(param DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error)
- func (s *DerivativeCommonService) DerivativesInstruments(param DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error)
- func (s *DerivativeCommonService) DerivativesInstrumentsForOption(param DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error)
- func (s *DerivativeCommonService) DerivativesKline(param DerivativesKlineParam) (*DerivativesKlineResponse, error)
- func (s *DerivativeCommonService) DerivativesMarkPriceKline(param DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error)
- func (s *DerivativeCommonService) DerivativesOrderBook(param DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error)
- func (s *DerivativeCommonService) DerivativesTickers(param DerivativesTickersParam) (*DerivativesTickersResponse, error)
- func (s *DerivativeCommonService) DerivativesTickersForOption(param DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error)
- type DerivativeContractService
- type DerivativeContractServiceI
- type DerivativeService
- type DerivativeServiceI
- type DerivativeUnifiedMarginService
- type DerivativeUnifiedMarginServiceI
- type DerivativesIndexPriceKlineParam
- type DerivativesIndexPriceKlineResponse
- type DerivativesIndexPriceKlineResult
- type DerivativesIndexPriceKlineResultListItem
- type DerivativesInstrumentsForOptionParam
- type DerivativesInstrumentsForOptionResponse
- type DerivativesInstrumentsForOptionResult
- type DerivativesInstrumentsParam
- type DerivativesInstrumentsResponse
- type DerivativesInstrumentsResult
- type DerivativesKlineParam
- type DerivativesKlineResponse
- type DerivativesKlineResult
- type DerivativesKlineResultList
- type DerivativesMarkPriceKlineParam
- type DerivativesMarkPriceKlineResponse
- type DerivativesMarkPriceKlineResult
- type DerivativesMarkPriceKlineResultListItem
- type DerivativesOrderBookParam
- type DerivativesOrderBookResponse
- type DerivativesOrderBookResult
- type DerivativesOrderBookResultBuyer
- type DerivativesOrderBookResultBuyers
- type DerivativesOrderBookResultSeller
- type DerivativesOrderBookResultSellers
- type DerivativesTickersForOptionParam
- type DerivativesTickersForOptionResponse
- type DerivativesTickersForOptionResult
- type DerivativesTickersParam
- type DerivativesTickersResponse
- type DerivativesTickersResult
- type DerivativesTickersResultList
- type ErrorResponse
- type FutureCommonService
- func (s *FutureCommonService) APIKeyInfo() (*APIKeyInfoResponse, error)
- func (s *FutureCommonService) AccountRatio(param AccountRatioParam) (*AccountRatioResponse, error)
- func (s *FutureCommonService) Balance(coin bybit.Coin) (*BalanceResponse, error)
- func (s *FutureCommonService) BigDeal(param BigDealParam) (*BigDealResponse, error)
- func (s *FutureCommonService) IndexPriceKline(param IndexPriceKlineParam) (*IndexPriceKlineResponse, error)
- func (s *FutureCommonService) ListKline(param ListKlineParam) (*ListKlineResponse, error)
- func (s *FutureCommonService) ListLinearKline(param ListLinearKlineParam) (*ListLinearKlineResponse, error)
- func (s *FutureCommonService) MarkPriceKline(param MarkPriceKlineParam) (*MarkPriceKlineResponse, error)
- func (s *FutureCommonService) OpenInterest(param OpenInterestParam) (*OpenInterestResponse, error)
- func (s *FutureCommonService) OrderBook(symbol bybit.SymbolFuture) (*OrderBookResponse, error)
- func (s *FutureCommonService) Symbols() (*SymbolsResponse, error)
- func (s *FutureCommonService) Tickers(symbol bybit.SymbolFuture) (*TickersResponse, error)
- func (s *FutureCommonService) TradingRecords(param TradingRecordsParam) (*TradingRecordsResponse, error)
- type FutureInverseFutureService
- func (s *FutureInverseFutureService) CancelAllFuturesOrder(param CancelAllFuturesOrderParam) (*CancelAllFuturesOrderResponse, error)
- func (s *FutureInverseFutureService) CancelAllFuturesStopOrder(param CancelAllFuturesStopOrderParam) (*CancelAllFuturesStopOrderResponse, error)
- func (s *FutureInverseFutureService) CancelFuturesOrder(param CancelFuturesOrderParam) (*CancelFuturesOrderResponse, error)
- func (s *FutureInverseFutureService) CancelFuturesStopOrder(param CancelFuturesStopOrderParam) (*CancelFuturesStopOrderResponse, error)
- func (s *FutureInverseFutureService) CreateFuturesOrder(param CreateFuturesOrderParam) (*CreateFuturesOrderResponse, error)
- func (s *FutureInverseFutureService) CreateFuturesStopOrder(param CreateFuturesStopOrderParam) (*CreateFuturesStopOrderResponse, error)
- func (s *FutureInverseFutureService) FuturesSaveLeverage(param FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error)
- func (s *FutureInverseFutureService) FuturesTradingStop(param FuturesTradingStopParam) (*FuturesTradingStopResponse, error)
- func (s *FutureInverseFutureService) ListFuturesOrder(param ListFuturesOrderParam) (*ListFuturesOrderResponse, error)
- func (s *FutureInverseFutureService) ListFuturesPositions(symbol bybit.SymbolFuture) (*ListFuturesPositionsResponse, error)
- func (s *FutureInverseFutureService) ListFuturesStopOrder(param ListFuturesStopOrderParam) (*ListFuturesStopOrderResponse, error)
- func (s *FutureInverseFutureService) QueryFuturesOrder(param QueryFuturesOrderParam) (*QueryFuturesOrderResponse, error)
- func (s *FutureInverseFutureService) QueryFuturesStopOrder(param QueryFuturesStopOrderParam) (*QueryFuturesStopOrderResponse, error)
- type FutureInverseFutureServiceI
- type FutureInversePerpetualService
- func (s *FutureInversePerpetualService) CancelAllOrder(param CancelAllOrderParam) (*CancelAllOrderResponse, error)
- func (s *FutureInversePerpetualService) CancelAllStopOrder(param CancelAllStopOrderParam) (*CancelAllStopOrderResponse, error)
- func (s *FutureInversePerpetualService) CancelOrder(param CancelOrderParam) (*CancelOrderResponse, error)
- func (s *FutureInversePerpetualService) CancelStopOrder(param CancelStopOrderParam) (*CancelStopOrderResponse, error)
- func (s *FutureInversePerpetualService) CreateOrder(param CreateOrderParam) (*CreateOrderResponse, error)
- func (s *FutureInversePerpetualService) CreateStopOrder(param CreateStopOrderParam) (*CreateStopOrderResponse, error)
- func (s *FutureInversePerpetualService) ListOrder(param ListOrderParam) (*ListOrderResponse, error)
- func (s *FutureInversePerpetualService) ListPosition(symbol bybit.SymbolFuture) (*ListPositionResponse, error)
- func (s *FutureInversePerpetualService) ListPositions() (*ListPositionsResponse, error)
- func (s *FutureInversePerpetualService) ListStopOrder(param ListStopOrderParam) (*ListStopOrderResponse, error)
- func (s *FutureInversePerpetualService) PremiumIndexKline(param PremiumIndexKlineParam) (*PremiumIndexKlineResponse, error)
- func (s *FutureInversePerpetualService) QueryOrder(param QueryOrderParam) (*QueryOrderResponse, error)
- func (s *FutureInversePerpetualService) QueryStopOrder(param QueryStopOrderParam) (*QueryStopOrderResponse, error)
- func (s *FutureInversePerpetualService) SaveLeverage(param SaveLeverageParam) (*SaveLeverageResponse, error)
- func (s *FutureInversePerpetualService) TradingStop(param TradingStopParam) (*TradingStopResponse, error)
- type FutureInversePerpetualServiceI
- type FutureService
- type FutureServiceI
- type FutureUSDTPerpetualService
- func (s *FutureUSDTPerpetualService) CancelAllLinearStopOrder(param CancelAllLinearStopOrderParam) (*CancelAllLinearStopOrderResponse, error)
- func (s *FutureUSDTPerpetualService) CancelLinearOrder(param CancelLinearOrderParam) (*CancelLinearOrderResponse, error)
- func (s *FutureUSDTPerpetualService) CancelLinearStopOrder(param CancelLinearStopOrderParam) (*CancelLinearStopOrderResponse, error)
- func (s *FutureUSDTPerpetualService) CreateLinearOrder(param CreateLinearOrderParam) (*CreateLinearOrderResponse, error)
- func (s *FutureUSDTPerpetualService) CreateLinearStopOrder(param CreateLinearStopOrderParam) (*CreateLinearStopOrderResponse, error)
- func (s *FutureUSDTPerpetualService) LinearCancelAllOrder(param LinearCancelAllParam) (*LinearCancelAllResponse, error)
- func (s *FutureUSDTPerpetualService) LinearExecutionList(param LinearExecutionListParam) (*LinearExecutionListResponse, error)
- func (s *FutureUSDTPerpetualService) LinearTradingStop(param LinearTradingStopParam) (*LinearTradingStopResponse, error)
- func (s *FutureUSDTPerpetualService) ListLinearOrder(param ListLinearOrderParam) (*ListLinearOrderResponse, error)
- func (s *FutureUSDTPerpetualService) ListLinearPosition(symbol bybit.SymbolFuture) (*ListLinearPositionResponse, error)
- func (s *FutureUSDTPerpetualService) ListLinearPositions() (*ListLinearPositionsResponse, error)
- func (s *FutureUSDTPerpetualService) ListLinearStopOrder(param ListLinearStopOrderParam) (*ListLinearStopOrderResponse, error)
- func (s *FutureUSDTPerpetualService) QueryLinearOrder(param QueryLinearOrderParam) (*QueryLinearOrderResponse, error)
- func (s *FutureUSDTPerpetualService) QueryLinearStopOrder(param QueryLinearStopOrderParam) (*QueryLinearStopOrderResponse, error)
- func (s *FutureUSDTPerpetualService) ReplaceLinearOrder(param ReplaceLinearOrderParam) (*ReplaceLinearOrderResponse, error)
- func (s *FutureUSDTPerpetualService) SaveLinearLeverage(param SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error)
- type FutureUSDTPerpetualServiceI
- type FuturesSaveLeverageParam
- type FuturesSaveLeverageResponse
- type FuturesTradingStopParam
- type FuturesTradingStopResponse
- type FuturesTradingStopResult
- type IndexPriceKlineParam
- type IndexPriceKlineResponse
- type IndexPriceKlineResult
- type LeverageFilter
- type LinearCancelAllParam
- type LinearCancelAllResponse
- type LinearCancelAllResult
- type LinearExecutionList
- type LinearExecutionListParam
- type LinearExecutionListResponse
- type LinearExecutionListResult
- type LinearTradingStopParam
- type LinearTradingStopResponse
- type ListFuturesOrder
- type ListFuturesOrderParam
- type ListFuturesOrderResponse
- type ListFuturesOrderResult
- type ListFuturesPositionsResponse
- type ListFuturesPositionsResult
- type ListFuturesPositionsResultData
- type ListFuturesStopOrder
- type ListFuturesStopOrderParam
- type ListFuturesStopOrderResponse
- type ListFuturesStopOrderResult
- type ListKlineParam
- type ListKlineResponse
- type ListKlineResult
- type ListLinearKlineParam
- type ListLinearKlineResponse
- type ListLinearKlineResult
- type ListLinearOrderParam
- type ListLinearOrderResponse
- type ListLinearOrderResult
- type ListLinearOrderResultContent
- type ListLinearPositionResponse
- type ListLinearPositionResult
- type ListLinearPositionsResponse
- type ListLinearPositionsResult
- type ListLinearStopOrderParam
- type ListLinearStopOrderResponse
- type ListLinearStopOrderResult
- type ListLinearStopOrderResultContent
- type ListOrder
- type ListOrderParam
- type ListOrderResponse
- type ListOrderResult
- type ListPositionResponse
- type ListPositionResult
- type ListPositionsResponse
- type ListPositionsResult
- type ListStopOrder
- type ListStopOrderParam
- type ListStopOrderResponse
- type ListStopOrderResult
- type LotSizeFilter
- type MarkPriceKlineParam
- type MarkPriceKlineResponse
- type MarkPriceKlineResult
- type OpenInterestParam
- type OpenInterestResponse
- type OpenInterestResult
- type OrderBookResponse
- type OrderBookResult
- type PremiumIndexKlineParam
- type PremiumIndexKlineResponse
- type PremiumIndexKlineResult
- type PriceFilter
- type QueryFuturesOrderParam
- type QueryFuturesOrderResponse
- type QueryFuturesOrderResult
- type QueryFuturesStopOrderParam
- type QueryFuturesStopOrderResponse
- type QueryFuturesStopOrderResult
- type QueryLinearOrderParam
- type QueryLinearOrderResponse
- type QueryLinearOrderResult
- type QueryLinearStopOrderParam
- type QueryLinearStopOrderResponse
- type QueryLinearStopOrderResult
- type QueryOrderParam
- type QueryOrderResponse
- type QueryOrderResult
- type QueryStopOrderParam
- type QueryStopOrderResponse
- type QueryStopOrderResult
- type RateLimitError
- type ReplaceLinearOrderParam
- type ReplaceLinearOrderResponse
- type ReplaceLinearOrderResult
- type SaveLeverageParam
- type SaveLeverageResponse
- type SaveLinearLeverageParam
- type SaveLinearLeverageResponse
- type SpotDeleteOrderFastParam
- type SpotDeleteOrderFastResponse
- type SpotDeleteOrderFastResult
- type SpotDeleteOrderParam
- type SpotDeleteOrderResponse
- type SpotDeleteOrderResult
- type SpotGetOrderParam
- type SpotGetOrderResponse
- type SpotGetOrderResult
- type SpotGetWalletBalanceResponse
- type SpotGetWalletBalanceResult
- type SpotGetWalletBalanceResultBalance
- type SpotOpenOrdersParam
- type SpotOpenOrdersResponse
- type SpotOpenOrdersResult
- type SpotOrderBatchCancelByIDsResponse
- type SpotOrderBatchCancelByIDsResult
- type SpotOrderBatchCancelParam
- type SpotOrderBatchCancelResponse
- type SpotOrderBatchCancelResult
- type SpotOrderBatchFastCancelParam
- type SpotOrderBatchFastCancelResponse
- type SpotOrderBatchFastCancelResult
- type SpotPostOrderParam
- type SpotPostOrderResponse
- type SpotPostOrderResult
- type SpotQuoteDepthBidAsk
- type SpotQuoteDepthBidsAsks
- type SpotQuoteDepthMergedParam
- type SpotQuoteDepthMergedResponse
- type SpotQuoteDepthMergedResult
- type SpotQuoteDepthParam
- type SpotQuoteDepthResponse
- type SpotQuoteDepthResult
- type SpotQuoteKline
- type SpotQuoteKlineParam
- type SpotQuoteKlineResponse
- type SpotQuoteKlineResult
- type SpotQuoteTicker24hrParam
- type SpotQuoteTicker24hrResponse
- type SpotQuoteTicker24hrResult
- type SpotQuoteTickerBookTickerParam
- type SpotQuoteTickerBookTickerResponse
- type SpotQuoteTickerBookTickerResult
- type SpotQuoteTickerPriceParam
- type SpotQuoteTickerPriceResponse
- type SpotQuoteTickerPriceResult
- type SpotQuoteTradesParam
- type SpotQuoteTradesResponse
- type SpotQuoteTradesResult
- type SpotService
- type SpotServiceI
- type SpotSymbolsResponse
- type SpotSymbolsResult
- type SpotV1Service
- func (s *SpotV1Service) SpotDeleteOrder(param SpotDeleteOrderParam) (*SpotDeleteOrderResponse, error)
- func (s *SpotV1Service) SpotDeleteOrderFast(param SpotDeleteOrderFastParam) (*SpotDeleteOrderFastResponse, error)
- func (s *SpotV1Service) SpotGetOrder(param SpotGetOrderParam) (*SpotGetOrderResponse, error)
- func (s *SpotV1Service) SpotGetWalletBalance() (*SpotGetWalletBalanceResponse, error)
- func (s *SpotV1Service) SpotOpenOrders(param SpotOpenOrdersParam) (*SpotOpenOrdersResponse, error)
- func (s *SpotV1Service) SpotOrderBatchCancel(param SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error)
- func (s *SpotV1Service) SpotOrderBatchCancelByIDs(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error)
- func (s *SpotV1Service) SpotOrderBatchFastCancel(param SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error)
- func (s *SpotV1Service) SpotPostOrder(param SpotPostOrderParam) (*SpotPostOrderResponse, error)
- func (s *SpotV1Service) SpotQuoteDepth(param SpotQuoteDepthParam) (*SpotQuoteDepthResponse, error)
- func (s *SpotV1Service) SpotQuoteDepthMerged(param SpotQuoteDepthMergedParam) (*SpotQuoteDepthMergedResponse, error)
- func (s *SpotV1Service) SpotQuoteKline(param SpotQuoteKlineParam) (*SpotQuoteKlineResponse, error)
- func (s *SpotV1Service) SpotQuoteTicker24hr(param SpotQuoteTicker24hrParam) (*SpotQuoteTicker24hrResponse, error)
- func (s *SpotV1Service) SpotQuoteTickerBookTicker(param SpotQuoteTickerBookTickerParam) (*SpotQuoteTickerBookTickerResponse, error)
- func (s *SpotV1Service) SpotQuoteTickerPrice(param SpotQuoteTickerPriceParam) (*SpotQuoteTickerPriceResponse, error)
- func (s *SpotV1Service) SpotQuoteTrades(param SpotQuoteTradesParam) (*SpotQuoteTradesResponse, error)
- func (s *SpotV1Service) SpotSymbols() (*SpotSymbolsResponse, error)
- type SpotV1ServiceI
- type SpotV3Service
- type SymbolsResponse
- type SymbolsResult
- type TickersResponse
- type TickersResult
- type TradingRecordsParam
- type TradingRecordsResponse
- type TradingRecordsResult
- type TradingStopParam
- type TradingStopResponse
- type TradingStopResult
- type USDCContractOptionService
- type USDCContractPerpetualService
- type USDCContractService
- type USDCContractServiceI
- type V5APIKeyResponse
- type V5AccountService
- type V5AccountServiceI
- type V5ApiKeyResult
- type V5AssetService
- type V5AssetServiceI
- type V5CancelOrderParam
- type V5CancelOrderResponse
- type V5CancelOrderResult
- type V5CreateOrderParam
- type V5CreateOrderResponse
- type V5CreateOrderResult
- type V5ExecutionService
- type V5ExecutionServiceI
- type V5GetIndexPriceKlineItem
- type V5GetIndexPriceKlineList
- type V5GetIndexPriceKlineParam
- type V5GetIndexPriceKlineResponse
- type V5GetIndexPriceKlineResult
- type V5GetInstrumentsInfoLinearInverseResult
- type V5GetInstrumentsInfoOptionResult
- type V5GetInstrumentsInfoParam
- type V5GetInstrumentsInfoResponse
- type V5GetInstrumentsInfoResult
- type V5GetInstrumentsInfoSpotResult
- type V5GetKlineItem
- type V5GetKlineList
- type V5GetKlineParam
- type V5GetKlineResponse
- type V5GetKlineResult
- type V5GetMarkPriceKlineItem
- type V5GetMarkPriceKlineList
- type V5GetMarkPriceKlineParam
- type V5GetMarkPriceKlineResponse
- type V5GetMarkPriceKlineResult
- type V5GetOpenOrder
- type V5GetOpenOrdersParam
- type V5GetOpenOrdersResponse
- type V5GetOpenOrdersResult
- type V5GetPositionInfoItem
- type V5GetPositionInfoList
- type V5GetPositionInfoParam
- type V5GetPositionInfoResponse
- type V5GetPositionInfoResult
- type V5GetPremiumIndexPriceKlineItem
- type V5GetPremiumIndexPriceKlineList
- type V5GetPremiumIndexPriceKlineParam
- type V5GetPremiumIndexPriceKlineResponse
- type V5GetPremiumIndexPriceKlineResult
- type V5GetTickersLinearInverseResult
- type V5GetTickersOptionResult
- type V5GetTickersParam
- type V5GetTickersResponse
- type V5GetTickersResult
- type V5GetTickersSpotResult
- type V5MarketService
- func (s *V5MarketService) GetIndexPriceKline(param V5GetIndexPriceKlineParam) (*V5GetIndexPriceKlineResponse, error)
- func (s *V5MarketService) GetInstrumentsInfo(param V5GetInstrumentsInfoParam) (*V5GetInstrumentsInfoResponse, error)
- func (s *V5MarketService) GetKline(param V5GetKlineParam) (*V5GetKlineResponse, error)
- func (s *V5MarketService) GetMarkPriceKline(param V5GetMarkPriceKlineParam) (*V5GetMarkPriceKlineResponse, error)
- func (s *V5MarketService) GetPremiumIndexPriceKline(param V5GetPremiumIndexPriceKlineParam) (*V5GetPremiumIndexPriceKlineResponse, error)
- func (s *V5MarketService) GetTickers(param V5GetTickersParam) (*V5GetTickersResponse, error)
- type V5MarketServiceI
- type V5OrderService
- type V5OrderServiceI
- type V5PositionService
- type V5PositionServiceI
- type V5Service
- func (s *V5Service) Account() V5AccountServiceI
- func (s *V5Service) Asset() V5AssetServiceI
- func (s *V5Service) Execution() V5ExecutionServiceI
- func (s *V5Service) Market() V5MarketServiceI
- func (s *V5Service) Order() V5OrderServiceI
- func (s *V5Service) Position() V5PositionServiceI
- func (s *V5Service) SpotLeverageToken() V5SpotLeverageTokenServiceI
- func (s *V5Service) SpotMarginTrade() V5SpotMarginTradeServiceI
- func (s *V5Service) User() V5UserServiceI
- type V5ServiceI
- type V5SpotLeverageTokenService
- type V5SpotLeverageTokenServiceI
- type V5SpotMarginTradeService
- type V5SpotMarginTradeServiceI
- type V5UserService
- type V5UserServiceI
- type V5WalletBalanceCoin
- type V5WalletBalanceList
- type V5WalletBalanceResponse
- type V5WalletBalanceResult
Constants ¶
const ( // MainNetBaseURL : MainNetBaseURL = "https://api.bybit.com" // MainNetBaseURL2 : MainNetBaseURL2 = "https://api.bytick.com" TestNetBaseURL = "https://api-testnet.bybit.com" )
Variables ¶
var ( // ErrPathNotFound : Request path not found ErrPathNotFound = errors.New("path not found") // ErrAccessDenied : Access denied ErrAccessDenied = errors.New("access denied") )
Functions ¶
This section is empty.
Types ¶
type APIKeyInfoResponse ¶
type APIKeyInfoResponse struct { CommonResponse `json:",inline"` Result []APIKeyInfoResult `json:"result"` }
APIKeyInfoResponse :
type APIKeyInfoResult ¶
type APIKeyInfoResult struct { APIKey string `json:"api_key"` Type string `json:"type"` UserID int `json:"user_id"` InviterID int `json:"inviter_id"` Ips []string `json:"ips"` Note string `json:"note"` Permissions []string `json:"permissions"` CreatedAt time.Time `json:"created_at"` ExpiredAt time.Time `json:"expired_at"` ReadOnly bool `json:"read_only"` VipLevel string `json:"vip_level"` MktMakerLevel string `json:"mkt_maker_level"` AffiliateID int `json:"affiliate_id"` }
APIKeyInfoResult :
type AccountAssetService ¶
type AccountAssetService struct {
// contains filtered or unexported fields
}
AccountAssetService :
type AccountRatioParam ¶
type AccountRatioParam struct { Symbol bybit.SymbolFuture `url:"symbol"` Period bybit.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 bybit.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[bybit.Coin]Balance
}
BalanceResult :
func (*BalanceResult) UnmarshalJSON ¶
func (r *BalanceResult) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type BigDealParam ¶
type BigDealParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` Timestamp int `json:"timestamp"` Value float64 `json:"value"` }
BigDealResult :
type CancelAllFuturesOrderParam ¶
type CancelAllFuturesOrderParam struct {
Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` CreateType string `json:"create_type"` CancelType string `json:"cancel_type"` OrderStatus bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` CreateType string `json:"create_type"` CancelType string `json:"cancel_type"` OrderStatus bybit.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 bybit.StopOrderTypeFuture `json:"stop_order_type"` TriggerBy bybit.TriggerByFuture `json:"trigger_by"` BasePrice string `json:"base_price"` ExpectedDirection string `json:"expected_direction"` }
CancelAllFuturesStopOrderResult :
type CancelAllLinearStopOrderParam ¶
type CancelAllLinearStopOrderParam struct {
Symbol bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` CreateType string `json:"create_type"` CancelType string `json:"cancel_type"` OrderStatus bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` CreateType string `json:"create_type"` CancelType string `json:"cancel_type"` OrderStatus bybit.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 bybit.StopOrderTypeFuture `json:"stop_order_type"` TriggerBy bybit.TriggerByFuture `json:"trigger_by"` BasePrice string `json:"base_price"` ExpectedDirection string `json:"expected_direction"` }
CancelAllStopOrderResult :
type CancelFuturesOrderParam ¶
type CancelFuturesOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.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 bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.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 bybit.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 Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client :
func (*Client) WithHTTPClient ¶
WithHTTPClient :
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 CommonV5Response ¶
type CommonV5Response struct { RetCode int `json:"retCode"` RetMsg string `json:"retMsg"` RetExtInfo interface{} `json:"retExtInfo"` Time int `json:"time"` }
CommonV5Response :
type CopyTradingService ¶
type CopyTradingService struct {
// contains filtered or unexported fields
}
CopyTradingService :
type CreateFuturesOrderParam ¶
type CreateFuturesOrderParam struct { Side bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty int `json:"qty"` TimeInForce bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
CreateFuturesOrderResult :
type CreateFuturesStopOrderParam ¶
type CreateFuturesStopOrderParam struct { Side bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty float64 `json:"qty"` BasePrice float64 `json:"base_price"` StopPx float64 `json:"stop_px"` TimeInForce bybit.TimeInForce `json:"time_in_force"` PositionIdx *int `json:"position_idx,omitempty"` Price *float64 `json:"price,omitempty"` TriggerBy *bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.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 bybit.TriggerByFuture `json:"trigger_by"` BasePrice string `json:"base_price"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
CreateLinearOrder :
type CreateLinearOrderParam ¶
type CreateLinearOrderParam struct { Side bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty float64 `json:"qty"` TimeInForce bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty float64 `json:"qty"` BasePrice float64 `json:"base_price"` StopPx float64 `json:"stop_px"` TimeInForce bybit.TimeInForce `json:"time_in_force"` TriggerBy bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"trigger_by"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty int `json:"qty"` TimeInForce bybit.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 bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderType bybit.OrderType `json:"order_type"` Qty int `json:"qty"` BasePrice float64 `json:"base_price"` StopPx float64 `json:"stop_px"` TimeInForce bybit.TimeInForce `json:"time_in_force"` Price *float64 `json:"price,omitempty"` TriggerBy *bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.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 bybit.TriggerByFuture `json:"trigger_by"` BasePrice string `json:"base_price"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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) DerivativesIndexPriceKline ¶
func (s *DerivativeCommonService) DerivativesIndexPriceKline(param DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error)
DerivativesIndexPriceKline :
func (*DerivativeCommonService) DerivativesInstruments ¶
func (s *DerivativeCommonService) DerivativesInstruments(param DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error)
DerivativesInstruments :
func (*DerivativeCommonService) DerivativesInstrumentsForOption ¶
func (s *DerivativeCommonService) DerivativesInstrumentsForOption(param DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error)
DerivativesInstrumentsForOption :
func (*DerivativeCommonService) DerivativesKline ¶
func (s *DerivativeCommonService) DerivativesKline(param DerivativesKlineParam) (*DerivativesKlineResponse, error)
DerivativesKline :
func (*DerivativeCommonService) DerivativesMarkPriceKline ¶
func (s *DerivativeCommonService) DerivativesMarkPriceKline(param DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error)
DerivativesMarkPriceKline :
func (*DerivativeCommonService) DerivativesOrderBook ¶
func (s *DerivativeCommonService) DerivativesOrderBook(param DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error)
DerivativesOrderBook :
func (*DerivativeCommonService) DerivativesTickers ¶
func (s *DerivativeCommonService) DerivativesTickers(param DerivativesTickersParam) (*DerivativesTickersResponse, error)
DerivativesTickers :
func (*DerivativeCommonService) DerivativesTickersForOption ¶
func (s *DerivativeCommonService) DerivativesTickersForOption(param DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error)
DerivativesTickersForOption :
type DerivativeContractService ¶
type DerivativeContractService struct { *DerivativeCommonService // contains filtered or unexported fields }
DerivativeContractService :
type DerivativeContractServiceI ¶
type DerivativeContractServiceI interface { // Market Data Endpoints DerivativesOrderBook(DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error) DerivativesKline(DerivativesKlineParam) (*DerivativesKlineResponse, error) DerivativesTickers(DerivativesTickersParam) (*DerivativesTickersResponse, error) DerivativesTickersForOption(DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error) DerivativesInstruments(DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error) DerivativesInstrumentsForOption(DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error) DerivativesMarkPriceKline(DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error) DerivativesIndexPriceKline(DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error) }
DerivativeContractServiceI :
type DerivativeService ¶
type DerivativeService struct {
// contains filtered or unexported fields
}
DerivativeService :
func (*DerivativeService) Contract ¶
func (s *DerivativeService) Contract() DerivativeContractServiceI
Contract :
func (*DerivativeService) UnifiedMargin ¶
func (s *DerivativeService) UnifiedMargin() DerivativeUnifiedMarginServiceI
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 ¶
type DerivativeUnifiedMarginServiceI interface { // Market Data Endpoints DerivativesOrderBook(DerivativesOrderBookParam) (*DerivativesOrderBookResponse, error) DerivativesKline(DerivativesKlineParam) (*DerivativesKlineResponse, error) DerivativesTickers(DerivativesTickersParam) (*DerivativesTickersResponse, error) DerivativesTickersForOption(DerivativesTickersForOptionParam) (*DerivativesTickersForOptionResponse, error) DerivativesInstruments(DerivativesInstrumentsParam) (*DerivativesInstrumentsResponse, error) DerivativesInstrumentsForOption(DerivativesInstrumentsForOptionParam) (*DerivativesInstrumentsForOptionResponse, error) DerivativesMarkPriceKline(DerivativesMarkPriceKlineParam) (*DerivativesMarkPriceKlineResponse, error) DerivativesIndexPriceKline(DerivativesIndexPriceKlineParam) (*DerivativesIndexPriceKlineResponse, error) }
DerivativeUnifiedMarginServiceI :
type DerivativesIndexPriceKlineParam ¶
type DerivativesIndexPriceKlineParam struct { Category bybit.CategoryDerivative `url:"category"` Symbol bybit.SymbolDerivative `url:"symbol"` Interval bybit.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 bybit.CategoryDerivative `json:"category"` Symbol bybit.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 *bybit.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 bybit.CategoryDerivative `json:"category"` Symbol bybit.SymbolDerivative `json:"symbol"` Status bybit.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 bybit.CategoryDerivative `url:"category"` Symbol *bybit.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 bybit.CategoryDerivative `json:"category"` List []struct { Symbol bybit.SymbolDerivative `json:"symbol"` ContractType bybit.ContractTypeDerivative `json:"contractType"` Status bybit.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 bybit.SymbolDerivative `url:"symbol"` Category bybit.CategoryDerivative `url:"category"` Interval bybit.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 bybit.CategoryDerivative `json:"category"` Symbol bybit.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 bybit.CategoryDerivative `url:"category"` Symbol bybit.SymbolDerivative `url:"symbol"` Interval bybit.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 bybit.CategoryDerivative `json:"category"` Symbol bybit.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 bybit.SymbolDerivative `url:"symbol"` Category bybit.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 bybit.SymbolDerivative `json:"s"` Buyers DerivativesOrderBookResultBuyers `json:"b"` Sellers DerivativesOrderBookResultSellers `json:"a"` Timestamp int `json:"ts"` ID int `json:"u"` }
DerivativesOrderBookResult :
type DerivativesOrderBookResultBuyer ¶
DerivativesOrderBookResultBuyer :
type DerivativesOrderBookResultBuyers ¶
type DerivativesOrderBookResultBuyers []DerivativesOrderBookResultBuyer
DerivativesOrderBookResultBuyers :
func (*DerivativesOrderBookResultBuyers) UnmarshalJSON ¶
func (r *DerivativesOrderBookResultBuyers) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type DerivativesOrderBookResultSeller ¶
DerivativesOrderBookResultSeller :
type DerivativesOrderBookResultSellers ¶
type DerivativesOrderBookResultSellers []DerivativesOrderBookResultSeller
DerivativesOrderBookResultSellers :
func (*DerivativesOrderBookResultSellers) UnmarshalJSON ¶
func (r *DerivativesOrderBookResultSellers) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type DerivativesTickersForOptionParam ¶
type DerivativesTickersForOptionParam struct {
Symbol bybit.SymbolDerivative `url:"symbol"`
}
DerivativesTickersForOptionParam :
type DerivativesTickersForOptionResponse ¶
type DerivativesTickersForOptionResponse struct { CommonV3Response `json:",inline"` Result DerivativesTickersForOptionResult `json:"result"` }
DerivativesTickersForOptionResponse :
type DerivativesTickersForOptionResult ¶
type DerivativesTickersForOptionResult struct { Category bybit.CategoryDerivative `json:"category"` Symbol bybit.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 bybit.CategoryDerivative `url:"category"` Symbol *bybit.SymbolDerivative `url:"symbol,omitempty"` }
DerivativesTickersParam :
type DerivativesTickersResponse ¶
type DerivativesTickersResponse struct { CommonV3Response `json:",inline"` Result DerivativesTickersResult `json:"result"` }
DerivativesTickersResponse :
type DerivativesTickersResult ¶
type DerivativesTickersResult struct { Category bybit.CategoryDerivative `json:"category"` Lists []DerivativesTickersResultList `json:"list"` }
DerivativesTickersResult :
type DerivativesTickersResultList ¶
type DerivativesTickersResultList struct { Symbol bybit.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 ErrorResponse ¶
ErrorResponse :
type FutureCommonService ¶
type FutureCommonService struct {
// contains filtered or unexported fields
}
FutureCommonService :
func (*FutureCommonService) APIKeyInfo ¶
func (s *FutureCommonService) APIKeyInfo() (*APIKeyInfoResponse, error)
APIKeyInfo :
func (*FutureCommonService) AccountRatio ¶
func (s *FutureCommonService) AccountRatio(param AccountRatioParam) (*AccountRatioResponse, error)
AccountRatio :
func (*FutureCommonService) Balance ¶
func (s *FutureCommonService) Balance(coin bybit.Coin) (*BalanceResponse, error)
Balance :
func (*FutureCommonService) BigDeal ¶
func (s *FutureCommonService) BigDeal(param BigDealParam) (*BigDealResponse, error)
BigDeal :
func (*FutureCommonService) IndexPriceKline ¶
func (s *FutureCommonService) IndexPriceKline(param IndexPriceKlineParam) (*IndexPriceKlineResponse, error)
IndexPriceKline :
func (*FutureCommonService) ListKline ¶
func (s *FutureCommonService) ListKline(param ListKlineParam) (*ListKlineResponse, error)
ListKline :
func (*FutureCommonService) ListLinearKline ¶
func (s *FutureCommonService) ListLinearKline(param ListLinearKlineParam) (*ListLinearKlineResponse, error)
ListLinearKline :
func (*FutureCommonService) MarkPriceKline ¶
func (s *FutureCommonService) MarkPriceKline(param MarkPriceKlineParam) (*MarkPriceKlineResponse, error)
MarkPriceKline :
func (*FutureCommonService) OpenInterest ¶
func (s *FutureCommonService) OpenInterest(param OpenInterestParam) (*OpenInterestResponse, error)
OpenInterest :
func (*FutureCommonService) OrderBook ¶
func (s *FutureCommonService) OrderBook(symbol bybit.SymbolFuture) (*OrderBookResponse, error)
OrderBook :
func (*FutureCommonService) Symbols ¶
func (s *FutureCommonService) Symbols() (*SymbolsResponse, error)
Symbols :
func (*FutureCommonService) Tickers ¶
func (s *FutureCommonService) Tickers(symbol bybit.SymbolFuture) (*TickersResponse, error)
Tickers :
func (*FutureCommonService) TradingRecords ¶
func (s *FutureCommonService) TradingRecords(param TradingRecordsParam) (*TradingRecordsResponse, error)
TradingRecords :
type FutureInverseFutureService ¶
type FutureInverseFutureService struct { *FutureCommonService // contains filtered or unexported fields }
FutureInverseFutureService :
func (*FutureInverseFutureService) CancelAllFuturesOrder ¶
func (s *FutureInverseFutureService) CancelAllFuturesOrder(param CancelAllFuturesOrderParam) (*CancelAllFuturesOrderResponse, error)
CancelAllFuturesOrder :
func (*FutureInverseFutureService) CancelAllFuturesStopOrder ¶
func (s *FutureInverseFutureService) CancelAllFuturesStopOrder(param CancelAllFuturesStopOrderParam) (*CancelAllFuturesStopOrderResponse, error)
CancelAllFuturesStopOrder :
func (*FutureInverseFutureService) CancelFuturesOrder ¶
func (s *FutureInverseFutureService) CancelFuturesOrder(param CancelFuturesOrderParam) (*CancelFuturesOrderResponse, error)
CancelFuturesOrder :
func (*FutureInverseFutureService) CancelFuturesStopOrder ¶
func (s *FutureInverseFutureService) CancelFuturesStopOrder(param CancelFuturesStopOrderParam) (*CancelFuturesStopOrderResponse, error)
CancelFuturesStopOrder :
func (*FutureInverseFutureService) CreateFuturesOrder ¶
func (s *FutureInverseFutureService) CreateFuturesOrder(param CreateFuturesOrderParam) (*CreateFuturesOrderResponse, error)
CreateFuturesOrder :
func (*FutureInverseFutureService) CreateFuturesStopOrder ¶
func (s *FutureInverseFutureService) CreateFuturesStopOrder(param CreateFuturesStopOrderParam) (*CreateFuturesStopOrderResponse, error)
CreateFuturesStopOrder :
func (*FutureInverseFutureService) FuturesSaveLeverage ¶
func (s *FutureInverseFutureService) FuturesSaveLeverage(param FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error)
FuturesSaveLeverage :
func (*FutureInverseFutureService) FuturesTradingStop ¶
func (s *FutureInverseFutureService) FuturesTradingStop(param FuturesTradingStopParam) (*FuturesTradingStopResponse, error)
FuturesTradingStop :
func (*FutureInverseFutureService) ListFuturesOrder ¶
func (s *FutureInverseFutureService) ListFuturesOrder(param ListFuturesOrderParam) (*ListFuturesOrderResponse, error)
ListFuturesOrder :
func (*FutureInverseFutureService) ListFuturesPositions ¶
func (s *FutureInverseFutureService) ListFuturesPositions(symbol bybit.SymbolFuture) (*ListFuturesPositionsResponse, error)
ListFuturesPositions :
func (*FutureInverseFutureService) ListFuturesStopOrder ¶
func (s *FutureInverseFutureService) ListFuturesStopOrder(param ListFuturesStopOrderParam) (*ListFuturesStopOrderResponse, error)
ListFuturesStopOrder :
func (*FutureInverseFutureService) QueryFuturesOrder ¶
func (s *FutureInverseFutureService) QueryFuturesOrder(param QueryFuturesOrderParam) (*QueryFuturesOrderResponse, error)
QueryFuturesOrder :
func (*FutureInverseFutureService) QueryFuturesStopOrder ¶
func (s *FutureInverseFutureService) QueryFuturesStopOrder(param QueryFuturesStopOrderParam) (*QueryFuturesStopOrderResponse, error)
QueryFuturesStopOrder :
type FutureInverseFutureServiceI ¶
type FutureInverseFutureServiceI interface { // Market Data Endpoints OrderBook(bybit.SymbolFuture) (*OrderBookResponse, error) ListKline(ListKlineParam) (*ListKlineResponse, error) Tickers(bybit.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(bybit.SymbolFuture) (*ListFuturesPositionsResponse, error) FuturesTradingStop(FuturesTradingStopParam) (*FuturesTradingStopResponse, error) FuturesSaveLeverage(FuturesSaveLeverageParam) (*FuturesSaveLeverageResponse, error) APIKeyInfo() (*APIKeyInfoResponse, error) // Wallet Data Endpoints Balance(bybit.Coin) (*BalanceResponse, error) }
FutureInverseFutureServiceI :
type FutureInversePerpetualService ¶
type FutureInversePerpetualService struct { *FutureCommonService // contains filtered or unexported fields }
FutureInversePerpetualService :
func (*FutureInversePerpetualService) CancelAllOrder ¶
func (s *FutureInversePerpetualService) CancelAllOrder(param CancelAllOrderParam) (*CancelAllOrderResponse, error)
CancelAllOrder :
func (*FutureInversePerpetualService) CancelAllStopOrder ¶
func (s *FutureInversePerpetualService) CancelAllStopOrder(param CancelAllStopOrderParam) (*CancelAllStopOrderResponse, error)
CancelAllStopOrder :
func (*FutureInversePerpetualService) CancelOrder ¶
func (s *FutureInversePerpetualService) CancelOrder(param CancelOrderParam) (*CancelOrderResponse, error)
CancelOrder :
func (*FutureInversePerpetualService) CancelStopOrder ¶
func (s *FutureInversePerpetualService) CancelStopOrder(param CancelStopOrderParam) (*CancelStopOrderResponse, error)
CancelStopOrder :
func (*FutureInversePerpetualService) CreateOrder ¶
func (s *FutureInversePerpetualService) CreateOrder(param CreateOrderParam) (*CreateOrderResponse, error)
CreateOrder :
func (*FutureInversePerpetualService) CreateStopOrder ¶
func (s *FutureInversePerpetualService) CreateStopOrder(param CreateStopOrderParam) (*CreateStopOrderResponse, error)
CreateStopOrder :
func (*FutureInversePerpetualService) ListOrder ¶
func (s *FutureInversePerpetualService) ListOrder(param ListOrderParam) (*ListOrderResponse, error)
ListOrder :
func (*FutureInversePerpetualService) ListPosition ¶
func (s *FutureInversePerpetualService) ListPosition(symbol bybit.SymbolFuture) (*ListPositionResponse, error)
ListPosition :
func (*FutureInversePerpetualService) ListPositions ¶
func (s *FutureInversePerpetualService) ListPositions() (*ListPositionsResponse, error)
ListPositions :
func (*FutureInversePerpetualService) ListStopOrder ¶
func (s *FutureInversePerpetualService) ListStopOrder(param ListStopOrderParam) (*ListStopOrderResponse, error)
ListStopOrder :
func (*FutureInversePerpetualService) PremiumIndexKline ¶
func (s *FutureInversePerpetualService) PremiumIndexKline(param PremiumIndexKlineParam) (*PremiumIndexKlineResponse, error)
PremiumIndexKline :
func (*FutureInversePerpetualService) QueryOrder ¶
func (s *FutureInversePerpetualService) QueryOrder(param QueryOrderParam) (*QueryOrderResponse, error)
QueryOrder :
func (*FutureInversePerpetualService) QueryStopOrder ¶
func (s *FutureInversePerpetualService) QueryStopOrder(param QueryStopOrderParam) (*QueryStopOrderResponse, error)
QueryStopOrder :
func (*FutureInversePerpetualService) SaveLeverage ¶
func (s *FutureInversePerpetualService) SaveLeverage(param SaveLeverageParam) (*SaveLeverageResponse, error)
SaveLeverage :
func (*FutureInversePerpetualService) TradingStop ¶
func (s *FutureInversePerpetualService) TradingStop(param TradingStopParam) (*TradingStopResponse, error)
TradingStop :
type FutureInversePerpetualServiceI ¶
type FutureInversePerpetualServiceI interface { // Market Data Endpoints OrderBook(bybit.SymbolFuture) (*OrderBookResponse, error) ListKline(ListKlineParam) (*ListKlineResponse, error) Tickers(bybit.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(bybit.SymbolFuture) (*ListPositionResponse, error) ListPositions() (*ListPositionsResponse, error) TradingStop(TradingStopParam) (*TradingStopResponse, error) SaveLeverage(SaveLeverageParam) (*SaveLeverageResponse, error) APIKeyInfo() (*APIKeyInfoResponse, error) // Wallet Data Endpoints Balance(bybit.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 ¶
func (s *FutureUSDTPerpetualService) CancelAllLinearStopOrder(param CancelAllLinearStopOrderParam) (*CancelAllLinearStopOrderResponse, error)
CancelAllLinearStopOrder :
func (*FutureUSDTPerpetualService) CancelLinearOrder ¶
func (s *FutureUSDTPerpetualService) CancelLinearOrder(param CancelLinearOrderParam) (*CancelLinearOrderResponse, error)
CancelLinearOrder :
func (*FutureUSDTPerpetualService) CancelLinearStopOrder ¶
func (s *FutureUSDTPerpetualService) CancelLinearStopOrder(param CancelLinearStopOrderParam) (*CancelLinearStopOrderResponse, error)
CancelLinearStopOrder :
func (*FutureUSDTPerpetualService) CreateLinearOrder ¶
func (s *FutureUSDTPerpetualService) CreateLinearOrder(param CreateLinearOrderParam) (*CreateLinearOrderResponse, error)
CreateLinearOrder :
func (*FutureUSDTPerpetualService) CreateLinearStopOrder ¶
func (s *FutureUSDTPerpetualService) CreateLinearStopOrder(param CreateLinearStopOrderParam) (*CreateLinearStopOrderResponse, error)
CreateLinearStopOrder :
func (*FutureUSDTPerpetualService) LinearCancelAllOrder ¶
func (s *FutureUSDTPerpetualService) LinearCancelAllOrder(param LinearCancelAllParam) (*LinearCancelAllResponse, error)
LinearCancelAllOrder : Cancel all active orders that are unfilled or partially filled. Fully filled orders cannot be cancelled.
func (*FutureUSDTPerpetualService) LinearExecutionList ¶
func (s *FutureUSDTPerpetualService) LinearExecutionList(param LinearExecutionListParam) (*LinearExecutionListResponse, error)
LinearExecutionList :
func (*FutureUSDTPerpetualService) LinearTradingStop ¶
func (s *FutureUSDTPerpetualService) LinearTradingStop(param LinearTradingStopParam) (*LinearTradingStopResponse, error)
LinearTradingStop :
func (*FutureUSDTPerpetualService) ListLinearOrder ¶
func (s *FutureUSDTPerpetualService) ListLinearOrder(param ListLinearOrderParam) (*ListLinearOrderResponse, error)
ListLinearOrder :
func (*FutureUSDTPerpetualService) ListLinearPosition ¶
func (s *FutureUSDTPerpetualService) ListLinearPosition(symbol bybit.SymbolFuture) (*ListLinearPositionResponse, error)
ListLinearPosition :
func (*FutureUSDTPerpetualService) ListLinearPositions ¶
func (s *FutureUSDTPerpetualService) ListLinearPositions() (*ListLinearPositionsResponse, error)
ListLinearPositions :
func (*FutureUSDTPerpetualService) ListLinearStopOrder ¶
func (s *FutureUSDTPerpetualService) ListLinearStopOrder(param ListLinearStopOrderParam) (*ListLinearStopOrderResponse, error)
ListLinearStopOrder :
func (*FutureUSDTPerpetualService) QueryLinearOrder ¶
func (s *FutureUSDTPerpetualService) QueryLinearOrder(param QueryLinearOrderParam) (*QueryLinearOrderResponse, error)
QueryLinearOrder :
func (*FutureUSDTPerpetualService) QueryLinearStopOrder ¶
func (s *FutureUSDTPerpetualService) QueryLinearStopOrder(param QueryLinearStopOrderParam) (*QueryLinearStopOrderResponse, error)
QueryLinearStopOrder :
func (*FutureUSDTPerpetualService) ReplaceLinearOrder ¶
func (s *FutureUSDTPerpetualService) ReplaceLinearOrder(param ReplaceLinearOrderParam) (*ReplaceLinearOrderResponse, error)
ReplaceLinearOrder :
func (*FutureUSDTPerpetualService) SaveLinearLeverage ¶
func (s *FutureUSDTPerpetualService) SaveLinearLeverage(param SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error)
SaveLinearLeverage :
type FutureUSDTPerpetualServiceI ¶
type FutureUSDTPerpetualServiceI interface { // Market Data Endpoints OrderBook(bybit.SymbolFuture) (*OrderBookResponse, error) ListLinearKline(ListLinearKlineParam) (*ListLinearKlineResponse, error) Tickers(bybit.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(bybit.SymbolFuture) (*ListLinearPositionResponse, error) ListLinearPositions() (*ListLinearPositionsResponse, error) SaveLinearLeverage(SaveLinearLeverageParam) (*SaveLinearLeverageResponse, error) LinearTradingStop(LinearTradingStopParam) (*LinearTradingStopResponse, error) LinearExecutionList(LinearExecutionListParam) (*LinearExecutionListResponse, error) APIKeyInfo() (*APIKeyInfoResponse, error) // Wallet Data Endpoints Balance(bybit.Coin) (*BalanceResponse, error) }
FutureUSDTPerpetualServiceI :
type FuturesSaveLeverageParam ¶
type FuturesSaveLeverageParam struct { Symbol bybit.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 bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.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 bybit.SymbolFuture `url:"symbol"` Interval bybit.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 bybit.SymbolFuture `json:"symbol"` Period bybit.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 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 bybit.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 bybit.Side `json:"side"` Symbol bybit.SymbolFuture `json:"symbol"` OrderPrice float64 `json:"order_price"` OrderQty float64 `json:"order_qty"` OrderType bybit.OrderType `json:"order_type"` FeeRate float64 `json:"fee_rate"` ExecPrice float64 `json:"exec_price"` ExecType bybit.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 bybit.SymbolFuture `url:"symbol"` StartTime *int `url:"start_time,omitempty"` EndTime *int `url:"end_time,omitempty"` ExecType *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` TakeProfit *float64 `json:"take_profit,omitempty"` StopLoss *float64 `json:"stop_loss,omitempty"` TrailingStop *float64 `json:"trailing_stop,omitempty"` TpTriggerBy *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.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 bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` Cursor string `json:"cursor"` }
ListFuturesOrder :
type ListFuturesOrderParam ¶
type ListFuturesOrderParam struct { Symbol bybit.SymbolFuture `url:"symbol"` OrderStatus *bybit.OrderStatus `url:"order_status,omitempty"` Direction *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.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 bybit.TpSlMode `json:"tp_sl_mode"` }
ListFuturesPositionsResultData :
type ListFuturesStopOrder ¶
type ListFuturesStopOrder struct { UserID int `json:"user_id"` PositionIdx int `json:"position_idx"` StopOrderStatus bybit.OrderStatus `json:"stop_order_status"` Symbol bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` StopOrderType bybit.StopOrderTypeFuture `json:"stop_order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.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 bybit.TriggerByFuture `json:"trigger_by"` TakeProfit string `json:"take_profit"` StopLoss string `json:"stop_loss"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` Cursor string `json:"cursor"` }
ListFuturesStopOrder :
type ListFuturesStopOrderParam ¶
type ListFuturesStopOrderParam struct { Symbol bybit.SymbolFuture `url:"symbol"` StopOrderStatus *bybit.OrderStatus `url:"stop_order_status,omitempty"` Direction *bybit.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 bybit.SymbolFuture `url:"symbol"` Interval bybit.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 bybit.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 bybit.SymbolFuture `url:"symbol"` Interval bybit.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 bybit.SymbolFuture `json:"symbol"` Period bybit.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 bybit.SymbolFuture `url:"symbol"` OrderID *string `url:"order_id,omitempty"` OrderLinkID *string `url:"order_link_id,omitempty"` Order *bybit.Order `url:"order,omitempty"` Page *int `url:"page,omitempty"` Limit *int `url:"limit,omitempty"` OrderStatus *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.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 bybit.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 bybit.SymbolFuture `url:"symbol"` StopOrderID *string `url:"stop_order_id,omitempty"` OrderLinkID *string `url:"order_link_id,omitempty"` StopOrderStatus *bybit.OrderStatus `url:"stop_order_status,omitempty"` Order *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"trigger_by"` BasePrice string `json:"base_price"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
ListOrder :
type ListOrderParam ¶
type ListOrderParam struct { Symbol bybit.SymbolFuture `url:"symbol"` OrderStatus *bybit.OrderStatus `url:"order_status,omitempty"` Direction *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.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 bybit.OrderStatus `json:"stop_order_status"` Symbol bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty string `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` StopOrderType bybit.StopOrderTypeFuture `json:"stop_order_type"` TriggerBy bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` Cursor string `json:"cursor"` }
ListStopOrder :
type ListStopOrderParam ¶
type ListStopOrderParam struct { Symbol bybit.SymbolFuture `url:"symbol"` StopOrderStatus *bybit.OrderStatus `url:"stop_order_status,omitempty"` Direction *bybit.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 bybit.SymbolFuture `url:"symbol"` Interval bybit.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 bybit.SymbolFuture `json:"symbol"` Period bybit.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 bybit.SymbolFuture `url:"symbol"` Period bybit.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 bybit.SymbolFuture `json:"symbol"` }
OpenInterestResult :
type OrderBookResponse ¶
type OrderBookResponse struct { CommonResponse `json:",inline"` Result []OrderBookResult `json:"result"` }
OrderBookResponse :
type OrderBookResult ¶
type OrderBookResult struct { Symbol bybit.SymbolFuture `json:"symbol"` Price string `json:"price"` Size float64 `json:"size"` Side bybit.Side `json:"side"` }
OrderBookResult :
type PremiumIndexKlineParam ¶
type PremiumIndexKlineParam struct { Symbol bybit.SymbolFuture `url:"symbol"` Interval bybit.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 bybit.SymbolFuture `json:"symbol"` Period bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
QueryFuturesOrderResult :
type QueryFuturesStopOrderParam ¶
type QueryFuturesStopOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` StopPx string `json:"stop_px"` BasePrice string `json:"base_price"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"trigger_by"` TakeProfit string `json:"take_profit"` StopLoss string `json:"stop_loss"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
QueryFuturesStopOrderResult :
type QueryLinearOrderParam ¶
type QueryLinearOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
QueryLinearOrderResult :
type QueryLinearStopOrderParam ¶
type QueryLinearStopOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price float64 `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` TriggerBy bybit.TriggerByFuture `json:"trigger_by"` ReduceOnly bool `json:"reduce_only"` CloseOnTrigger bool `json:"close_on_trigger"` }
QueryLinearStopOrderResult :
type QueryOrderParam ¶
type QueryOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` TimeInForce bybit.TimeInForce `json:"time_in_force"` OrderStatus bybit.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 bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.TriggerByFuture `json:"sl_trigger_by"` }
QueryOrderResult :
type QueryStopOrderParam ¶
type QueryStopOrderParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"order_type"` Price string `json:"price"` Qty float64 `json:"qty"` StopPx string `json:"stop_px"` BasePrice string `json:"base_price"` TimeInForce bybit.TimeInForce `json:"time_in_force"` StopOrderStatus bybit.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 bybit.TriggerByFuture `json:"trigger_by"` TakeProfit string `json:"take_profit"` StopLoss string `json:"stop_loss"` TpTriggerBy bybit.TriggerByFuture `json:"tp_trigger_by"` SlTriggerBy bybit.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 bybit.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 *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.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 bybit.SymbolFuture `json:"symbol"` BuyLeverage float64 `json:"buy_leverage"` SellLeverage float64 `json:"sell_leverage"` }
SaveLinearLeverageParam :
type SaveLinearLeverageResponse ¶
type SaveLinearLeverageResponse struct {
CommonResponse `json:",inline"`
}
SaveLinearLeverageResponse :
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 SpotOpenOrdersParam ¶
type SpotOpenOrdersParam struct { Symbol *bybit.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 SpotOrderBatchCancelParam ¶
type SpotOrderBatchCancelParam struct { Symbol bybit.SymbolSpot `url:"symbolId"` Side *bybit.Side `url:"side,omitempty"` Types []bybit.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 bybit.SymbolSpot `url:"symbolId"` Side *bybit.Side `url:"side,omitempty"` Types []bybit.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 bybit.SymbolSpot `url:"symbol"` Qty float64 `url:"qty"` Side bybit.Side `url:"side"` Type bybit.OrderTypeSpot `url:"type"` TimeInForce *bybit.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 bybit.OrderTypeSpot `json:"type"` Side string `json:"side"` Status bybit.OrderStatusSpot `json:"status"` TimeInForce bybit.TimeInForceSpot `json:"timeInForce"` AccountID string `json:"accountId"` SymbolName string `json:"symbolName"` ExecutedQty string `json:"executedQty"` }
SpotPostOrderResult :
type SpotQuoteDepthBidAsk ¶
SpotQuoteDepthBidAsk :
type SpotQuoteDepthBidsAsks ¶
type SpotQuoteDepthBidsAsks []SpotQuoteDepthBidAsk
SpotQuoteDepthBidsAsks :
func (*SpotQuoteDepthBidsAsks) UnmarshalJSON ¶
func (r *SpotQuoteDepthBidsAsks) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type SpotQuoteDepthMergedParam ¶
type SpotQuoteDepthMergedParam struct { Symbol bybit.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 bybit.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 bybit.SymbolSpot `url:"symbol"` Interval bybit.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 *bybit.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 *bybit.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 *bybit.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 bybit.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 :
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 (s *SpotV1Service) SpotOrderBatchCancel(param SpotOrderBatchCancelParam) (*SpotOrderBatchCancelResponse, error)
func (*SpotV1Service) SpotOrderBatchCancelByIDs ¶
func (s *SpotV1Service) SpotOrderBatchCancelByIDs(orderIDs []string) (*SpotOrderBatchCancelByIDsResponse, error)
TODO : have bug multiple orderIds
func (*SpotV1Service) SpotOrderBatchFastCancel ¶
func (s *SpotV1Service) SpotOrderBatchFastCancel(param SpotOrderBatchFastCancelParam) (*SpotOrderBatchFastCancelResponse, error)
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 ¶
func (s *SpotV1Service) SpotQuoteDepthMerged(param SpotQuoteDepthMergedParam) (*SpotQuoteDepthMergedResponse, error)
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 ¶
func (s *SpotV1Service) SpotQuoteTickerBookTicker(param SpotQuoteTickerBookTickerParam) (*SpotQuoteTickerBookTickerResponse, error)
SpotQuoteTickerBookTicker :
func (*SpotV1Service) SpotQuoteTickerPrice ¶
func (s *SpotV1Service) SpotQuoteTickerPrice(param SpotQuoteTickerPriceParam) (*SpotQuoteTickerPriceResponse, error)
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 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 TickersResponse ¶
type TickersResponse struct { CommonResponse `json:",inline"` Result []TickersResult `json:"result"` }
TickersResponse :
type TickersResult ¶
type TickersResult struct { Symbol bybit.SymbolFuture `json:"symbol"` BidPrice string `json:"bid_price"` AskPrice string `json:"ask_price"` LastPrice string `json:"last_price"` LastTickDirection bybit.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 TradingRecordsParam ¶
type TradingRecordsParam struct { Symbol bybit.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 bybit.SymbolFuture `json:"symbol"` Price float64 `json:"price"` Qty float64 `json:"qty"` Side bybit.Side `json:"side"` Time string `json:"time"` }
TradingRecordsResult :
type TradingStopParam ¶
type TradingStopParam struct { Symbol bybit.SymbolFuture `json:"symbol"` TakeProfit *float64 `json:"take_profit,omitempty"` StopLoss *float64 `json:"stop_loss,omitempty"` TrailingStop *float64 `json:"trailing_stop,omitempty"` TpTriggerBy *bybit.TriggerByFuture `json:"tp_trigger_by,omitempty"` SlTriggerBy *bybit.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 bybit.SymbolFuture `json:"symbol"` Side bybit.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 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 ¶
func (s *USDCContractService) Option() *USDCContractOptionService
Option :
func (*USDCContractService) Perpetual ¶
func (s *USDCContractService) Perpetual() *USDCContractPerpetualService
Perpetual :
type USDCContractServiceI ¶
type USDCContractServiceI interface { Option() *USDCContractOptionService Perpetual() *USDCContractPerpetualService }
USDCContractServiceI :
type V5APIKeyResponse ¶
type V5APIKeyResponse struct { CommonV5Response `json:",inline"` Result V5ApiKeyResult `json:"result"` }
V5APIKeyResponse :
type V5AccountService ¶
type V5AccountService struct {
// contains filtered or unexported fields
}
V5AccountService :
func (*V5AccountService) GetWalletBalance ¶
func (s *V5AccountService) GetWalletBalance(at bybit.AccountType, coins []bybit.Coin) (*V5WalletBalanceResponse, error)
GetWalletBalance :
at: UNIFIED or CONTRACT
coin: If not passed, it returns non-zero asset info You can pass multiple coins to query, separated by comma. "USDT,USDC".
type V5AccountServiceI ¶
type V5AccountServiceI interface {
GetWalletBalance(bybit.AccountType, []bybit.Coin) (*V5WalletBalanceResponse, error)
}
V5AccountServiceI :
type V5ApiKeyResult ¶
type V5ApiKeyResult struct { ID string `json:"id"` Note string `json:"note"` APIKey string `json:"apiKey"` ReadOnly int `json:"readOnly"` Secret string `json:"secret"` Permissions struct { ContractTrade []string `json:"ContractTrade"` Spot []string `json:"Spot"` Wallet []string `json:"Wallet"` Options []string `json:"Options"` Derivatives []string `json:"Derivatives"` CopyTrading []string `json:"CopyTrading"` BlockTrade []string `json:"BlockTrade"` Exchange []string `json:"Exchange"` Nft []string `json:"NFT"` } `json:"permissions"` Ips []string `json:"ips"` Type int `json:"type"` DeadlineDay int `json:"deadlineDay"` ExpiredAt time.Time `json:"expiredAt"` CreatedAt time.Time `json:"createdAt"` Unified int `json:"unified"` Uta int `json:"uta"` UserID int `json:"userID"` InviterID int `json:"inviterID"` VipLevel string `json:"vipLevel"` MktMakerLevel string `json:"mktMakerLevel"` AffiliateID int `json:"affiliateID"` }
V5ApiKeyResult :
type V5AssetService ¶
type V5AssetService struct {
// contains filtered or unexported fields
}
V5AssetService :
type V5CancelOrderParam ¶
type V5CancelOrderParam struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` OrderID *string `json:"orderId,omitempty"` OrderLinkID *string `json:"orderLinkId,omitempty"` OrderFilter *bybit.OrderFilter `json:"orderFilter,omitempty"` // If not passed, Order by default }
V5CancelOrderParam :
type V5CancelOrderResponse ¶
type V5CancelOrderResponse struct { CommonV5Response `json:",inline"` Result V5CancelOrderResult `json:"result"` }
V5CancelOrderResponse :
type V5CancelOrderResult ¶
type V5CancelOrderResult struct { OrderID string `json:"orderId"` OrderLinkID string `json:"orderLinkId"` }
V5CancelOrderResult :
type V5CreateOrderParam ¶
type V5CreateOrderParam struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` Side bybit.Side `json:"side"` OrderType bybit.OrderType `json:"orderType"` Qty string `json:"qty"` IsLeverage *bybit.IsLeverage `json:"isLeverage,omitempty"` Price *string `json:"price,omitempty"` TriggerDirection *bybit.TriggerDirection `json:"triggerDirection,omitempty"` OrderFilter *bybit.OrderFilter `json:"orderFilter,omitempty"` // If not passed, Order by default TriggerPrice *string `json:"triggerPrice,omitempty"` TriggerBy *bybit.TriggerBy `json:"triggerBy,omitempty"` OrderIv *string `json:"orderIv,omitempty"` // option only. TimeInForce *bybit.TimeInForce `json:"timeInForce,omitempty"` // If not passed, GTC is used by default PositionIdx *bybit.PositionIdx `json:"positionIdx,omitempty"` // Under hedge-mode, this param is required OrderLinkID *string `json:"orderLinkId,omitempty"` TakeProfit *string `json:"takeProfit,omitempty"` StopLoss *string `json:"stopLoss,omitempty"` TpTriggerBy *bybit.TriggerBy `json:"tpTriggerBy,omitempty"` SlTriggerBy *bybit.TriggerBy `json:"slTriggerBy,omitempty"` ReduceOnly *bool `json:"reduce_only,omitempty"` CloseOnTrigger *bool `json:"closeOnTrigger,omitempty"` MarketMakerProtection *bool `json:"mmp,omitempty"` // option only }
V5CreateOrderParam :
type V5CreateOrderResponse ¶
type V5CreateOrderResponse struct { CommonV5Response `json:",inline"` Result V5CreateOrderResult `json:"result"` }
V5CreateOrderResponse :
type V5CreateOrderResult ¶
type V5CreateOrderResult struct { OrderID string `json:"orderId"` OrderLinkID string `json:"orderLinkId"` }
V5CreateOrderResult :
type V5ExecutionService ¶
type V5ExecutionService struct {
// contains filtered or unexported fields
}
V5ExecutionService :
type V5GetIndexPriceKlineItem ¶
type V5GetIndexPriceKlineItem struct { StartTime string Open string High string Low string Close string }
V5GetIndexPriceKlineItem :
type V5GetIndexPriceKlineList ¶
type V5GetIndexPriceKlineList []V5GetIndexPriceKlineItem
V5GetIndexPriceKlineList :
func (*V5GetIndexPriceKlineList) UnmarshalJSON ¶
func (l *V5GetIndexPriceKlineList) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetIndexPriceKlineParam ¶
type V5GetIndexPriceKlineParam struct { Category bybit.CategoryV5 `url:"category"` Symbol bybit.SymbolV5 `url:"symbol"` Interval bybit.Interval `url:"interval"` Start *int `url:"start,omitempty"` // timestamp point for result, in milliseconds End *int `url:"end,omitempty"` // timestamp point for result, in milliseconds Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 200]. Default: 200 }
V5GetIndexPriceKlineParam :
type V5GetIndexPriceKlineResponse ¶
type V5GetIndexPriceKlineResponse struct { CommonV5Response `json:",inline"` Result V5GetIndexPriceKlineResult `json:"result"` }
V5GetIndexPriceKlineResponse :
type V5GetIndexPriceKlineResult ¶
type V5GetIndexPriceKlineResult struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` List V5GetIndexPriceKlineList `json:"list"` }
V5GetIndexPriceKlineResult :
type V5GetInstrumentsInfoLinearInverseResult ¶
type V5GetInstrumentsInfoLinearInverseResult struct { Category bybit.CategoryV5 `json:"category"` NextPageCursor string `json:"nextPageCursor"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` ContractType bybit.ContractType `json:"contractType"` Status bybit.InstrumentStatus `json:"status"` BaseCoin bybit.Coin `json:"baseCoin"` QuoteCoin bybit.Coin `json:"quoteCoin"` SettleCoin bybit.Coin `json:"settleCoin"` 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 { MaxOrderQty string `json:"maxOrderQty"` MinOrderQty string `json:"minOrderQty"` QtyStep string `json:"qtyStep"` PostOnlyMaxOrderQty string `json:"postOnlyMaxOrderQty"` } `json:"lotSizeFilter"` UnifiedMarginTrade bool `json:"unifiedMarginTrade"` FundingInterval int `json:"fundingInterval"` } `json:"list"` }
V5GetInstrumentsInfoLinearInverseResult :
type V5GetInstrumentsInfoOptionResult ¶
type V5GetInstrumentsInfoOptionResult struct { Category bybit.CategoryV5 `json:"category"` NextPageCursor string `json:"nextPageCursor"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` OptionsType bybit.OptionsType `json:"optionsType"` Status bybit.InstrumentStatus `json:"status"` BaseCoin bybit.Coin `json:"baseCoin"` QuoteCoin bybit.Coin `json:"quoteCoin"` SettleCoin bybit.Coin `json:"settleCoin"` 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:"list"` }
V5GetInstrumentsInfoOptionResult :
type V5GetInstrumentsInfoParam ¶
type V5GetInstrumentsInfoParam struct { Category bybit.CategoryV5 `url:"category"` Symbol *bybit.SymbolV5 `url:"symbol,omitempty"` BaseCoin *bybit.Coin `url:"baseCoin,omitempty"` // Base coin. linear,inverse,option only Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 1000]. Default: 500 Cursor *string `url:"cursor,omitempty"` }
V5GetInstrumentsInfoParam : Spot does not support pagination, so limit, cursor are invalid. When query by baseCoin, regardless of category=linear or inverse, the result will have Linear contract and Inverse contract symbols.
type V5GetInstrumentsInfoResponse ¶
type V5GetInstrumentsInfoResponse struct { CommonV5Response `json:",inline"` Result V5GetInstrumentsInfoResult `json:"result"` }
V5GetInstrumentsInfoResponse :
type V5GetInstrumentsInfoResult ¶
type V5GetInstrumentsInfoResult struct { LinearInverse *V5GetInstrumentsInfoLinearInverseResult Option *V5GetInstrumentsInfoOptionResult Spot *V5GetInstrumentsInfoSpotResult }
V5GetInstrumentsInfoResult : Responses are filled according to category.
func (*V5GetInstrumentsInfoResult) UnmarshalJSON ¶
func (r *V5GetInstrumentsInfoResult) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetInstrumentsInfoSpotResult ¶
type V5GetInstrumentsInfoSpotResult struct { Category bybit.CategoryV5 `json:"category"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` BaseCoin bybit.Coin `json:"baseCoin"` QuoteCoin bybit.Coin `json:"quoteCoin"` Innovation bybit.Innovation `json:"innovation"` Status bybit.InstrumentStatus `json:"status"` LotSizeFilter struct { BasePrecision string `json:"basePrecision"` QuotePrecision string `json:"quotePrecision"` MaxOrderQty string `json:"maxOrderQty"` MinOrderQty string `json:"minOrderQty"` MinOrderAmt string `json:"minOrderAmt"` MaxOrderAmt string `json:"maxOrderAmt"` } `json:"lotSizeFilter"` PriceFilter struct { TickSize string `json:"tickSize"` } `json:"priceFilter"` } `json:"list"` }
V5GetInstrumentsInfoSpotResult :
type V5GetKlineItem ¶
type V5GetKlineItem struct { StartTime string Open string High string Low string Close string Volume string Turnover string }
V5GetKlineItem :
type V5GetKlineList ¶
type V5GetKlineList []V5GetKlineItem
V5GetKlineList :
func (*V5GetKlineList) UnmarshalJSON ¶
func (l *V5GetKlineList) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetKlineParam ¶
type V5GetKlineParam struct { Category bybit.CategoryV5 `url:"category"` Symbol bybit.SymbolV5 `url:"symbol"` Interval bybit.Interval `url:"interval"` Start *int `url:"start,omitempty"` // timestamp point for result, in milliseconds End *int `url:"end,omitempty"` // timestamp point for result, in milliseconds Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 200]. Default: 200 }
V5GetKlineParam :
type V5GetKlineResponse ¶
type V5GetKlineResponse struct { CommonV5Response `json:",inline"` Result V5GetKlineResult `json:"result"` }
V5GetKlineResponse :
type V5GetKlineResult ¶
type V5GetKlineResult struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` List V5GetKlineList `json:"list"` }
V5GetKlineResult :
type V5GetMarkPriceKlineItem ¶
type V5GetMarkPriceKlineItem struct { StartTime string Open string High string Low string Close string }
V5GetMarkPriceKlineItem :
type V5GetMarkPriceKlineList ¶
type V5GetMarkPriceKlineList []V5GetMarkPriceKlineItem
V5GetMarkPriceKlineList :
func (*V5GetMarkPriceKlineList) UnmarshalJSON ¶
func (l *V5GetMarkPriceKlineList) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetMarkPriceKlineParam ¶
type V5GetMarkPriceKlineParam struct { Category bybit.CategoryV5 `url:"category"` Symbol bybit.SymbolV5 `url:"symbol"` Interval bybit.Interval `url:"interval"` Start *int `url:"start,omitempty"` // timestamp point for result, in milliseconds End *int `url:"end,omitempty"` // timestamp point for result, in milliseconds Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 200]. Default: 200 }
V5GetMarkPriceKlineParam :
type V5GetMarkPriceKlineResponse ¶
type V5GetMarkPriceKlineResponse struct { CommonV5Response `json:",inline"` Result V5GetMarkPriceKlineResult `json:"result"` }
V5GetMarkPriceKlineResponse :
type V5GetMarkPriceKlineResult ¶
type V5GetMarkPriceKlineResult struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` List V5GetMarkPriceKlineList `json:"list"` }
V5GetMarkPriceKlineResult :
type V5GetOpenOrder ¶ added in v0.0.2
type V5GetOpenOrder struct { Symbol bybit.SymbolV5 `json:"symbol"` OrderType bybit.OrderType `json:"orderType"` OrderLinkID string `json:"orderLinkId"` OrderID string `json:"orderId"` CancelType string `json:"cancelType"` AvgPrice string `json:"avgPrice"` StopOrderType string `json:"stopOrderType"` LastPriceOnCreated string `json:"lastPriceOnCreated"` OrderStatus bybit.OrderStatus `json:"orderStatus"` TakeProfit string `json:"takeProfit"` CumExecValue string `json:"cumExecValue"` TriggerDirection int `json:"triggerDirection"` IsLeverage string `json:"isLeverage"` RejectReason string `json:"rejectReason"` Price string `json:"price"` OrderIv string `json:"orderIv"` CreatedTime string `json:"createdTime"` TpTriggerBy string `json:"tpTriggerBy"` PositionIdx int `json:"positionIdx"` TimeInForce bybit.TimeInForce `json:"timeInForce"` LeavesValue string `json:"leavesValue"` UpdatedTime string `json:"updatedTime"` Side bybit.Side `json:"side"` TriggerPrice string `json:"triggerPrice"` CumExecFee string `json:"cumExecFee"` LeavesQty string `json:"leavesQty"` SlTriggerBy string `json:"slTriggerBy"` CloseOnTrigger bool `json:"closeOnTrigger"` CumExecQty string `json:"cumExecQty"` ReduceOnly bool `json:"reduceOnly"` Qty string `json:"qty"` StopLoss string `json:"stopLoss"` TriggerBy bybit.TriggerBy `json:"triggerBy"` }
type V5GetOpenOrdersParam ¶
type V5GetOpenOrdersParam struct { Category bybit.CategoryV5 `url:"category"` Symbol *bybit.SymbolV5 `url:"symbol,omitempty"` BaseCoin *bybit.Coin `url:"baseCoin,omitempty"` SettleCoin *bybit.Coin `url:"settleCoin,omitempty"` OrderID *string `url:"orderId,omitempty"` OrderLinkID *string `url:"orderLinkId,omitempty"` OpenOnly *int `url:"openOnly,omitempty"` OrderFilter *bybit.OrderFilter `url:"orderFilter,omitempty"` // If not passed, Order by default Limit *int `url:"limit,omitempty"` Cursor *string `url:"cursor,omitempty"` }
V5GetOpenOrdersParam :
type V5GetOpenOrdersResponse ¶
type V5GetOpenOrdersResponse struct { CommonV5Response `json:",inline"` Result V5GetOpenOrdersResult `json:"result"` }
V5GetOpenOrdersResponse :
type V5GetOpenOrdersResult ¶
type V5GetOpenOrdersResult struct { Category bybit.CategoryV5 `json:"category"` NextPageCursor string `json:"nextPageCursor"` List []V5GetOpenOrder `json:"list"` }
V5GetOpenOrdersResult :
type V5GetPositionInfoItem ¶
type V5GetPositionInfoItem struct { Symbol bybit.SymbolV5 `json:"symbol"` Leverage string `json:"leverage"` AvgPrice string `json:"avgPrice"` LiqPrice string `json:"liqPrice"` RiskLimitValue string `json:"riskLimitValue"` TakeProfit string `json:"takeProfit"` PositionValue string `json:"positionValue"` TpSlMode bybit.TpSlMode `json:"tpslMode"` RiskID int `json:"riskId"` TrailingStop string `json:"trailingStop"` UnrealisedPnl string `json:"unrealisedPnl"` MarkPrice string `json:"markPrice"` CumRealisedPnl string `json:"cumRealisedPnl"` PositionMM string `json:"positionMM"` CreatedTime string `json:"createdTime"` PositionIdx int `json:"positionIdx"` PositionIM string `json:"positionIM"` UpdatedTime string `json:"updatedTime"` Side bybit.Side `json:"side"` BustPrice string `json:"bustPrice"` Size string `json:"size"` PositionStatus string `json:"positionStatus"` StopLoss string `json:"stopLoss"` TradeMode int `json:"tradeMode"` }
V5GetPositionInfoItem :
type V5GetPositionInfoList ¶
type V5GetPositionInfoList []V5GetPositionInfoItem
V5GetPositionInfoList :
type V5GetPositionInfoParam ¶
type V5GetPositionInfoParam struct { Category bybit.CategoryV5 `url:"category"` Symbol *bybit.SymbolV5 `url:"symbol,omitempty"` BaseCoin *bybit.Coin `url:"baseCoin,omitempty"` // option only SettleCoin *bybit.Coin `url:"settleCoin,omitempty"` // Settle coin. For linear & inverse, either symbol or settleCon is required. symbol has a higher priority Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 200]. Default: 200 Cursor *string `url:"cursor,omitempty"` // Cursor. Used for pagination }
V5GetPositionInfoParam :
type V5GetPositionInfoResponse ¶
type V5GetPositionInfoResponse struct { CommonV5Response `json:",inline"` Result V5GetPositionInfoResult `json:"result"` }
V5GetPositionInfoResponse :
type V5GetPositionInfoResult ¶
type V5GetPositionInfoResult struct { Category bybit.CategoryV5 `json:"category"` NextPageCursor string `json:"nextPageCursor"` List V5GetPositionInfoList `json:"list"` }
V5GetPositionInfoResult :
type V5GetPremiumIndexPriceKlineItem ¶
type V5GetPremiumIndexPriceKlineItem struct { StartTime string Open string High string Low string Close string }
V5GetPremiumIndexPriceKlineItem :
type V5GetPremiumIndexPriceKlineList ¶
type V5GetPremiumIndexPriceKlineList []V5GetPremiumIndexPriceKlineItem
V5GetPremiumIndexPriceKlineList :
func (*V5GetPremiumIndexPriceKlineList) UnmarshalJSON ¶
func (l *V5GetPremiumIndexPriceKlineList) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetPremiumIndexPriceKlineParam ¶
type V5GetPremiumIndexPriceKlineParam struct { Category bybit.CategoryV5 `url:"category"` Symbol bybit.SymbolV5 `url:"symbol"` Interval bybit.Interval `url:"interval"` Start *int `url:"start,omitempty"` // timestamp point for result, in milliseconds End *int `url:"end,omitempty"` // timestamp point for result, in milliseconds Limit *int `url:"limit,omitempty"` // Limit for data size per page. [1, 200]. Default: 200 }
V5GetPremiumIndexPriceKlineParam :
type V5GetPremiumIndexPriceKlineResponse ¶
type V5GetPremiumIndexPriceKlineResponse struct { CommonV5Response `json:",inline"` Result V5GetPremiumIndexPriceKlineResult `json:"result"` }
V5GetPremiumIndexPriceKlineResponse :
type V5GetPremiumIndexPriceKlineResult ¶
type V5GetPremiumIndexPriceKlineResult struct { Category bybit.CategoryV5 `json:"category"` Symbol bybit.SymbolV5 `json:"symbol"` List V5GetPremiumIndexPriceKlineList `json:"list"` }
V5GetPremiumIndexPriceKlineResult :
type V5GetTickersLinearInverseResult ¶ added in v0.0.2
type V5GetTickersLinearInverseResult struct { Category bybit.CategoryV5 `json:"category"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` LastPrice string `json:"lastPrice"` IndexPrice string `json:"indexPrice"` MarkPrice string `json:"markPrice"` PrevPrice24H string `json:"prevPrice24h"` Price24HPcnt string `json:"price24hPcnt"` HighPrice24H string `json:"highPrice24h"` LowPrice24H string `json:"lowPrice24h"` PrevPrice1H string `json:"prevPrice1h"` OpenInterest string `json:"openInterest"` OpenInterestValue string `json:"openInterestValue"` Turnover24H string `json:"turnover24h"` Volume24H string `json:"volume24h"` FundingRate string `json:"fundingRate"` NextFundingTime string `json:"nextFundingTime"` PredictedDeliveryPrice string `json:"predictedDeliveryPrice"` BasisRate string `json:"basisRate"` DeliveryFeeRate string `json:"deliveryFeeRate"` DeliveryTime string `json:"deliveryTime"` Ask1Size string `json:"ask1Size"` Bid1Price string `json:"bid1Price"` Ask1Price string `json:"ask1Price"` Bid1Size string `json:"bid1Size"` } `json:"list"` }
V5GetTickersLinearInverseResult :
type V5GetTickersOptionResult ¶ added in v0.0.2
type V5GetTickersOptionResult struct { Category bybit.CategoryV5 `json:"category"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` Bid1Price string `json:"bid1Price"` Bid1Size string `json:"bid1Size"` Bid1Iv string `json:"bid1Iv"` Ask1Price string `json:"ask1Price"` Ask1Size string `json:"ask1Size"` Ask1Iv string `json:"ask1Iv"` LastPrice string `json:"lastPrice"` HighPrice24H string `json:"highPrice24h"` LowPrice24H string `json:"lowPrice24h"` MarkPrice string `json:"markPrice"` IndexPrice string `json:"indexPrice"` MarkIv string `json:"markIv"` 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"` } `json:"list"` }
V5GetTickersOptionResult :
type V5GetTickersParam ¶ added in v0.0.2
type V5GetTickersParam struct { Category bybit.CategoryV5 `url:"category"` Symbol *bybit.SymbolV5 `url:"symbol,omitempty"` BaseCoin *bybit.Coin `url:"baseCoin,omitempty"` // Base coin. For option only ExpDate *string `url:"expDate,omitempty"` // Expiry date. e.g., 25DEC22. For option only }
V5GetTickersParam :
type V5GetTickersResponse ¶ added in v0.0.2
type V5GetTickersResponse struct { CommonV5Response `json:",inline"` Result V5GetTickersResult `json:"result"` }
V5GetTickersResponse :
type V5GetTickersResult ¶ added in v0.0.2
type V5GetTickersResult struct { LinearInverse *V5GetTickersLinearInverseResult Option *V5GetTickersOptionResult Spot *V5GetTickersSpotResult }
V5GetTickersResult : Responses are filled according to category.
func (*V5GetTickersResult) UnmarshalJSON ¶ added in v0.0.2
func (r *V5GetTickersResult) UnmarshalJSON(data []byte) error
UnmarshalJSON :
type V5GetTickersSpotResult ¶ added in v0.0.2
type V5GetTickersSpotResult struct { Category bybit.CategoryV5 `json:"category"` List []struct { Symbol bybit.SymbolV5 `json:"symbol"` Bid1Price string `json:"bid1Price"` Bid1Size string `json:"bid1Size"` Ask1Price string `json:"ask1Price"` Ask1Size string `json:"ask1Size"` LastPrice string `json:"lastPrice"` PrevPrice24H string `json:"prevPrice24h"` Price24HPcnt string `json:"price24hPcnt"` HighPrice24H string `json:"highPrice24h"` LowPrice24H string `json:"lowPrice24h"` Turnover24H string `json:"turnover24h"` Volume24H string `json:"volume24h"` UsdIndexPrice string `json:"usdIndexPrice"` } `json:"list"` }
V5GetTickersSpotResult :
type V5MarketService ¶
type V5MarketService struct {
// contains filtered or unexported fields
}
V5MarketService :
func (*V5MarketService) GetIndexPriceKline ¶
func (s *V5MarketService) GetIndexPriceKline(param V5GetIndexPriceKlineParam) (*V5GetIndexPriceKlineResponse, error)
GetIndexPriceKline :
func (*V5MarketService) GetInstrumentsInfo ¶
func (s *V5MarketService) GetInstrumentsInfo(param V5GetInstrumentsInfoParam) (*V5GetInstrumentsInfoResponse, error)
GetInstrumentsInfo :
func (*V5MarketService) GetKline ¶
func (s *V5MarketService) GetKline(param V5GetKlineParam) (*V5GetKlineResponse, error)
GetKline :
func (*V5MarketService) GetMarkPriceKline ¶
func (s *V5MarketService) GetMarkPriceKline(param V5GetMarkPriceKlineParam) (*V5GetMarkPriceKlineResponse, error)
GetMarkPriceKline :
func (*V5MarketService) GetPremiumIndexPriceKline ¶
func (s *V5MarketService) GetPremiumIndexPriceKline(param V5GetPremiumIndexPriceKlineParam) (*V5GetPremiumIndexPriceKlineResponse, error)
GetPremiumIndexPriceKline :
func (*V5MarketService) GetTickers ¶ added in v0.0.2
func (s *V5MarketService) GetTickers(param V5GetTickersParam) (*V5GetTickersResponse, error)
GetTickers :
type V5MarketServiceI ¶
type V5MarketServiceI interface { GetKline(V5GetKlineParam) (*V5GetKlineResponse, error) GetMarkPriceKline(V5GetMarkPriceKlineParam) (*V5GetMarkPriceKlineResponse, error) GetIndexPriceKline(V5GetIndexPriceKlineParam) (*V5GetIndexPriceKlineResponse, error) GetPremiumIndexPriceKline(V5GetPremiumIndexPriceKlineParam) (*V5GetPremiumIndexPriceKlineResponse, error) GetInstrumentsInfo(V5GetInstrumentsInfoParam) (*V5GetInstrumentsInfoResponse, error) GetTickers(V5GetTickersParam) (*V5GetTickersResponse, error) }
V5MarketServiceI :
type V5OrderService ¶
type V5OrderService struct {
// contains filtered or unexported fields
}
V5OrderService :
func (*V5OrderService) CancelOrder ¶
func (s *V5OrderService) CancelOrder(param V5CancelOrderParam) (*V5CancelOrderResponse, error)
CancelOrder :
func (*V5OrderService) CreateOrder ¶
func (s *V5OrderService) CreateOrder(param V5CreateOrderParam) (*V5CreateOrderResponse, error)
CreateOrder :
func (*V5OrderService) GetOpenOrders ¶
func (s *V5OrderService) GetOpenOrders(param V5GetOpenOrdersParam) (*V5GetOpenOrdersResponse, error)
GetOpenOrders :
type V5OrderServiceI ¶
type V5OrderServiceI interface { CreateOrder(V5CreateOrderParam) (*V5CreateOrderResponse, error) CancelOrder(V5CancelOrderParam) (*V5CancelOrderResponse, error) GetOpenOrders(V5GetOpenOrdersParam) (*V5GetOpenOrdersResponse, error) }
V5OrderServiceI :
type V5PositionService ¶
type V5PositionService struct {
// contains filtered or unexported fields
}
V5PositionService :
func (*V5PositionService) GetPositionInfo ¶
func (s *V5PositionService) GetPositionInfo(param V5GetPositionInfoParam) (*V5GetPositionInfoResponse, error)
GetPositionInfo :
type V5PositionServiceI ¶
type V5PositionServiceI interface {
GetPositionInfo(V5GetPositionInfoParam) (*V5GetPositionInfoResponse, error)
}
V5PositionServiceI :
type V5Service ¶
type V5Service struct {
// contains filtered or unexported fields
}
V5Service :
func (*V5Service) SpotLeverageToken ¶
func (s *V5Service) SpotLeverageToken() V5SpotLeverageTokenServiceI
SpotLeverageToken :
func (*V5Service) SpotMarginTrade ¶
func (s *V5Service) SpotMarginTrade() V5SpotMarginTradeServiceI
SpotMarginTrade :
type V5ServiceI ¶
type V5ServiceI interface { Market() V5MarketServiceI Order() V5OrderServiceI Position() V5PositionServiceI Execution() V5ExecutionServiceI Account() V5AccountServiceI SpotLeverageToken() V5SpotLeverageTokenServiceI SpotMarginTrade() V5SpotMarginTradeServiceI Asset() V5AssetServiceI User() V5UserServiceI }
V5ServiceI :
type V5SpotLeverageTokenService ¶
type V5SpotLeverageTokenService struct {
// contains filtered or unexported fields
}
V5SpotLeverageTokenService :
type V5SpotLeverageTokenServiceI ¶
type V5SpotLeverageTokenServiceI interface { }
V5SpotLeverageTokenServiceI :
type V5SpotMarginTradeService ¶
type V5SpotMarginTradeService struct {
// contains filtered or unexported fields
}
V5SpotMarginTradeService :
type V5SpotMarginTradeServiceI ¶
type V5SpotMarginTradeServiceI interface { }
V5SpotMarginTradeServiceI :
type V5UserService ¶
type V5UserService struct {
// contains filtered or unexported fields
}
V5UserService :
func (*V5UserService) GetAPIKey ¶
func (s *V5UserService) GetAPIKey() (*V5APIKeyResponse, error)
GetAPIKey :
type V5UserServiceI ¶
type V5UserServiceI interface {
GetAPIKey() (*V5APIKeyResponse, error)
}
V5UserServiceI :
type V5WalletBalanceCoin ¶
type V5WalletBalanceCoin struct { AvailableToBorrow string `json:"availableToBorrow"` AccruedInterest string `json:"accruedInterest"` AvailableToWithdraw string `json:"availableToWithdraw"` TotalOrderIM string `json:"totalOrderIM"` Equity string `json:"equity"` TotalPositionMM string `json:"totalPositionMM"` UsdValue string `json:"usdValue"` UnrealisedPnl string `json:"unrealisedPnl"` BorrowAmount string `json:"borrowAmount"` TotalPositionIM string `json:"totalPositionIM"` WalletBalance string `json:"walletBalance"` CumRealisedPnl string `json:"cumRealisedPnl"` Coin bybit.Coin `json:"coin"` }
V5WalletBalanceCoin :
type V5WalletBalanceList ¶
type V5WalletBalanceList struct { TotalEquity string `json:"totalEquity"` AccountIMRate string `json:"accountIMRate"` TotalMarginBalance string `json:"totalMarginBalance"` TotalInitialMargin string `json:"totalInitialMargin"` AccountType string `json:"accountType"` TotalAvailableBalance string `json:"totalAvailableBalance"` AccountMMRate string `json:"accountMMRate"` TotalPerpUPL string `json:"totalPerpUPL"` TotalWalletBalance string `json:"totalWalletBalance"` TotalMaintenanceMargin string `json:"totalMaintenanceMargin"` Coin []V5WalletBalanceCoin `json:"coin"` }
V5WalletBalanceList :
type V5WalletBalanceResponse ¶
type V5WalletBalanceResponse struct { CommonV5Response `json:",inline"` Result V5WalletBalanceResult `json:"result"` }
V5WalletBalanceResponse :
type V5WalletBalanceResult ¶
type V5WalletBalanceResult struct {
List []V5WalletBalanceList `json:"list"`
}
V5WalletBalanceResult :
Source Files ¶
- account_asset.go
- client.go
- client_service.go
- copy_trading.go
- derivative_common.go
- derivative_contract.go
- derivative_unified_margin.go
- future_common.go
- future_inverse_future.go
- future_inverse_perpetual.go
- future_usdt_perpetual.go
- response.go
- spot_v1.go
- spot_v3.go
- usdc_contract_option.go
- usdc_contract_perpetual.go
- v5_account_service.go
- v5_asset_service.go
- v5_client_service.go
- v5_execution_service.go
- v5_market_service.go
- v5_order_service.go
- v5_position_service.go
- v5_spot_leverage_token_service.go
- v5_spot_margin_trade_service.go
- v5_user_service.go