Documentation ¶
Index ¶
- type SpotAccountClient
- func (c *SpotAccountClient) BatchCancelActiveOrder(ctx context.Context, params spot.BatchCancelActiveOrderParams) (res *spot.BatchCancelActiveOrderResponse, err error)
- func (c *SpotAccountClient) BatchCancelActiveOrdersByIDs(ctx context.Context, params spot.BatchCancelActiveOrdersByIDsParams) (res *spot.BatchCancelActiveOrdersByIDsResponse, err error)
- func (c *SpotAccountClient) BatchFastCancelActiveOrder(ctx context.Context, params spot.BatchFastCancelActiveOrderParams) (res *spot.BatchFastCancelActiveOrderResponse, err error)
- func (c *SpotAccountClient) CancelActiveOrder(ctx context.Context, params spot.CancelActiveOrderParams) (res *spot.CancelActiveOrderResponse, err error)
- func (c *SpotAccountClient) FastCancelActiveOrder(ctx context.Context, params spot.FastCancelActiveOrderParams) (res *spot.FastCancelActiveOrderResponse, err error)
- func (c *SpotAccountClient) GetActiveOrder(ctx context.Context, params spot.GetActiveOrderParams) (res *spot.GetActiveOrderResponse, err error)
- func (c *SpotAccountClient) GetOpenOrders(ctx context.Context, params spot.GetOpenOrdersParams) (res *spot.GetOpenOrdersResponse, err error)
- func (c *SpotAccountClient) GetOrderHistory(ctx context.Context, params spot.GetOrderHistoryParams) (res *spot.GetOrderHistoryResponse, err error)
- func (c *SpotAccountClient) GetTradeHistory(ctx context.Context, params spot.GetTradeHistoryParams) (res *spot.GetTradeHistoryResponse, err error)
- func (c *SpotAccountClient) PlaceActiveOrder(ctx context.Context, params spot.PlaceActiveOrderParams) (res *spot.PlaceActiveOrderResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpotAccountClient ¶ added in v0.0.3
type SpotAccountClient struct {
Transporter transport.Transporter
}
func NewSpotAccountClient ¶ added in v0.0.3
func NewSpotAccountClient(url, apiKey, apiSecret string) *SpotAccountClient
NewSpotAccountClient - creates a new bybit spot account client
func (*SpotAccountClient) BatchCancelActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) BatchCancelActiveOrder(ctx context.Context, params spot.BatchCancelActiveOrderParams) (res *spot.BatchCancelActiveOrderResponse, err error)
BatchCancelActiveOrder - cancel multiple active orders. [/spot/order/batch-cancel - DELETE]
docs - https://bybit-exchange.github.io/docs/spot/#t-batchcancelactiveorder
func (*SpotAccountClient) BatchCancelActiveOrdersByIDs ¶ added in v0.0.3
func (c *SpotAccountClient) BatchCancelActiveOrdersByIDs(ctx context.Context, params spot.BatchCancelActiveOrdersByIDsParams) (res *spot.BatchCancelActiveOrdersByIDsResponse, err error)
BatchCancelActiveOrdersByIDs - cancel multiple active orders by IDs. [/spot/order/batch-cancel-by-ids - DELETE]
docs - https://bybit-exchange.github.io/docs/spot/#t-batchcancelactiveorderbyids
func (*SpotAccountClient) BatchFastCancelActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) BatchFastCancelActiveOrder(ctx context.Context, params spot.BatchFastCancelActiveOrderParams) (res *spot.BatchFastCancelActiveOrderResponse, err error)
BatchFastCancelActiveOrder - cancel multiple active orders quickly. [/spot/order/batch-fast-cancel - DELETE]
docs - https://bybit-exchange.github.io/docs/spot/#t-batchfastcancelactiveorder
func (*SpotAccountClient) CancelActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) CancelActiveOrder(ctx context.Context, params spot.CancelActiveOrderParams) (res *spot.CancelActiveOrderResponse, err error)
CancelActiveOrder - cancel an active order. [/spot/v1/order - DELETE]
docs - https://bybit-exchange.github.io/docs/spot/#t-cancelactive
func (*SpotAccountClient) FastCancelActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) FastCancelActiveOrder(ctx context.Context, params spot.FastCancelActiveOrderParams) (res *spot.FastCancelActiveOrderResponse, err error)
FastCancelActiveOrder - cancel an active order quickly. [/spot/v1/order/fast - DELETE]
docs - https://bybit-exchange.github.io/docs/spot/#t-fastcancelactiveorder
func (*SpotAccountClient) GetActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) GetActiveOrder(ctx context.Context, params spot.GetActiveOrderParams) (res *spot.GetActiveOrderResponse, err error)
GetActiveOrder - get a list of all active order. [/spot/v1/order - GET]
docs - https://bybit-exchange.github.io/docs/spot/#t-getactive
func (*SpotAccountClient) GetOpenOrders ¶ added in v0.0.3
func (c *SpotAccountClient) GetOpenOrders(ctx context.Context, params spot.GetOpenOrdersParams) (res *spot.GetOpenOrdersResponse, err error)
GetOpenOrders - get a list of all open orders. [/spot/v1/open-orders - GET]
docs - https://bybit-exchange.github.io/docs/spot/#t-openorders
func (*SpotAccountClient) GetOrderHistory ¶ added in v0.0.3
func (c *SpotAccountClient) GetOrderHistory(ctx context.Context, params spot.GetOrderHistoryParams) (res *spot.GetOrderHistoryResponse, err error)
GetOrderHistory - get a list of all order history. [/spot/v1/history-orders - GET]
docs - https://bybit-exchange.github.io/docs/spot/#t-orderhistory
func (*SpotAccountClient) GetTradeHistory ¶ added in v0.0.3
func (c *SpotAccountClient) GetTradeHistory(ctx context.Context, params spot.GetTradeHistoryParams) (res *spot.GetTradeHistoryResponse, err error)
GetTradeHistory - get a list of all trade history. [/spot/v1/myTrades - GET]
docs - https://bybit-exchange.github.io/docs/spot/#t-tradehistory
func (*SpotAccountClient) PlaceActiveOrder ¶ added in v0.0.3
func (c *SpotAccountClient) PlaceActiveOrder(ctx context.Context, params spot.PlaceActiveOrderParams) (res *spot.PlaceActiveOrderResponse, err error)
PlaceActiveOrder - place an active order. [/spot/v1/order - POST]
docs - https://bybit-exchange.github.io/docs/spot/#t-placeactive