Skip to main content

Spot Orders

CreateOrderLimit

Create a new cachable limit order that can be used in multiple future requests

This object can be cached and reused

CachableSpotRequest order = CacheClientSpot.CreateOrderLimit();

CreateOrderMarket

Create a new cachable market order that can be used in multiple future requests

This object can be cached and reused

CachableSpotRequest order = CacheClientSpot.CreateOrderMarket();

CachableSpotRequest order = CacheClientSpot.CreateOrderMarketQuote();

PlaceOrderSpotCached

Place a Spot Order from data that can be cached

CachableSpotRequest order = CacheClientSpot.CreateOrderMarket(symbolName, orderSide, orderQuantity, recvWindow);

RestResult<BinancePlacedOrderSpot> result = restClient.Spot.Order.PlaceOrderSpot(ref order, CancellationToken.None);

Place a Spot Order from data that can be cached and also return a copy of the raw response

RestResultRaw<BinancePlacedOrderSpot> result = restClient.Spot.Order.PlaceOrderSpotRaw(ref order, default);

PlaceTestOrder

Places a new test order.

Test orders are not actually being executed and just test the functionality.

CachableSpotRequest spotRequest = CacheClientSpot.CreateOrderMarket("BTCUSDT", OrderSide.Sell, 1, 1000);

RestResult<BinancePlacedOrderSpot> result = restClient.Spot.Order.PlaceTestOrder(ref spotRequest, default);

GetOrder

Retrieves data for a specific order.

Either orderId or origClientOrderId should be provided.

restClient.Spot.Order.GetOrder();

GetOrders

Gets all orders for the provided symbol

restClient.Spot.Order.GetOrders();

GetOpenOrders

Gets a list of open orders

restClient.Spot.Order.GetOpenOrders();

GetUserTrades

Gets all user trades for provided symbol

restClient.Spot.Order.GetUserTrades();

CancelOrder

Cancels a pending order on a symbol

restClient.Spot.Order.CancelOrder();

CancelAllOpenOrders

Cancels all open orders on a symbol

restClient.Spot.Order.CancelAllOpenOrders()

Copyright S Christison ©2024