account

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

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

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

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

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

Jump to

Keyboard shortcuts

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