[generated documentation]
BittrexRestClient > SpotApi > Trading
Bittrex trading endpoints, placing and mananging orders.
CancelAllOrdersAsync
https://bittrex.github.io/api/v3#operation--orders-open-delete
Cancels all open orders
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.CancelAllOrdersAsync();
Task<WebCallResult<IEnumerable<BittrexOrder>>> CancelAllOrdersAsync(string? symbol = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | Only cancel open orders for a specific symbol |
[Optional] ct | Cancellation token |
CancelConditionalOrderAsync
https://bittrex.github.io/api/v3#operation--conditional-orders--conditionalOrderId--delete
Cancels a condtional order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.CancelConditionalOrderAsync(/* parameters */);
Task<WebCallResult<BittrexConditionalOrder>> CancelConditionalOrderAsync(string orderId, CancellationToken ct = default);
Parameter | Description |
---|---|
orderId | Id of the conditional order |
[Optional] ct | Cancellation token |
CancelMultipleOrdersAsync
https://bittrex.github.io/api/v3#operation--batch-post
Cancel multiple orders in a single call
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.CancelMultipleOrdersAsync(/* parameters */);
Task<WebCallResult<IEnumerable<CallResult<BittrexOrder>>>> CancelMultipleOrdersAsync(string[] ordersToCancel, CancellationToken ct = default);
Parameter | Description |
---|---|
ordersToCancel | Orders to cancel |
[Optional] ct | Cancellation token |
CancelOrderAsync
https://bittrex.github.io/api/v3#operation--orders--orderId--delete
Cancels an order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.CancelOrderAsync(/* parameters */);
Task<WebCallResult<BittrexOrder>> CancelOrderAsync(string orderId, CancellationToken ct = default);
Parameter | Description |
---|---|
orderId | The id of the order |
[Optional] ct | Cancellation token |
GetClosedConditionalOrdersAsync
https://bittrex.github.io/api/v3#operation--conditional-orders-closed-get
Gets a list of closed conditional orders
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetClosedConditionalOrdersAsync();
Task<WebCallResult<IEnumerable<BittrexConditionalOrder>>> GetClosedConditionalOrdersAsync(string? symbol = default, DateTime? startTime = default, DateTime? endTime = default, int? pageSize = default, string? nextPageToken = default, string? previousPageToken = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | Filter by symbol |
[Optional] startTime | Filter the list by time |
[Optional] endTime | Filter the list by time |
[Optional] pageSize | The max amount of results to return |
[Optional] nextPageToken | The id of the object after which to return results. Typically the last id of the previous page |
[Optional] previousPageToken | The id of the object before which to return results. Typically the first id of the next page |
[Optional] ct | Cancellation token |
GetClosedOrdersAsync
https://bittrex.github.io/api/v3#operation--orders-closed-get
Gets a list of closed orders
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetClosedOrdersAsync();
Task<WebCallResult<IEnumerable<BittrexOrder>>> GetClosedOrdersAsync(string? symbol = default, DateTime? startTime = default, DateTime? endTime = default, int? pageSize = default, string? nextPageToken = default, string? previousPageToken = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | Filter the list by symbol |
[Optional] startTime | Filter the list by time |
[Optional] endTime | Filter the list by time |
[Optional] pageSize | The max amount of results to return |
[Optional] nextPageToken | The id of the object after which to return results. Typically the last order id of the previous page |
[Optional] previousPageToken | The id of the object before which to return results. Typically the first order id of the next page |
[Optional] ct | Cancellation token |
GetConditionalOrderAsync
https://bittrex.github.io/api/v3#operation--conditional-orders--conditionalOrderId--get
Get details on a condtional order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetConditionalOrderAsync();
Task<WebCallResult<BittrexConditionalOrder>> GetConditionalOrderAsync(string? orderId = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] orderId | Id of the conditional order |
[Optional] ct | Cancellation token |
GetOpenConditionalOrdersAsync
https://bittrex.github.io/api/v3#operation--conditional-orders-open-get
Get list op open conditional orders
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetOpenConditionalOrdersAsync();
Task<WebCallResult<IEnumerable<BittrexConditionalOrder>>> GetOpenConditionalOrdersAsync(string? symbol = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | Filter by symbol |
[Optional] ct | Cancellation token |
GetOpenOrdersAsync
https://bittrex.github.io/api/v3#operation--orders-open-get
Gets a list of open orders. Sequence number of the data available via ResponseHeaders.GetSequence()
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetOpenOrdersAsync();
Task<WebCallResult<IEnumerable<BittrexOrder>>> GetOpenOrdersAsync(string? symbol = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | The symbol to get open orders for |
[Optional] ct | Cancellation token |
GetOrderAsync
https://bittrex.github.io/api/v3#operation--orders--orderId--get
Gets info on an order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetOrderAsync(/* parameters */);
Task<WebCallResult<BittrexOrder>> GetOrderAsync(string orderId, CancellationToken ct = default);
Parameter | Description |
---|---|
orderId | The id of the order to retrieve |
[Optional] ct | Cancellation token |
GetOrderTradesAsync
https://bittrex.github.io/api/v3#operation--orders--orderId--executions-get
Gets trades for an order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetOrderTradesAsync(/* parameters */);
Task<WebCallResult<IEnumerable<BittrexUserTrade>>> GetOrderTradesAsync(string orderId, CancellationToken ct = default);
Parameter | Description |
---|---|
orderId | The id of the order to retrieve trades for |
[Optional] ct | Cancellation token |
GetUserTradeByIdAsync
https://bittrex.github.io/api/v3#operation--executions--executionId--get
Gets info on a user trade
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetUserTradeByIdAsync(/* parameters */);
Task<WebCallResult<BittrexUserTrade>> GetUserTradeByIdAsync(string tradeId, CancellationToken ct = default);
Parameter | Description |
---|---|
tradeId | The id of the trade to retrieve |
[Optional] ct | Cancellation token |
GetUserTradesAsync
https://bittrex.github.io/api/v3#operation--executions-get
Gets user trades
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.GetUserTradesAsync();
Task<WebCallResult<IEnumerable<BittrexUserTrade>>> GetUserTradesAsync(string? symbol = default, DateTime? startTime = default, DateTime? endTime = default, int? pageSize = default, string? nextPageToken = default, string? previousPageToken = default, CancellationToken ct = default);
Parameter | Description |
---|---|
[Optional] symbol | Filter by symbol |
[Optional] startTime | Filter the list by time |
[Optional] endTime | Filter the list by time |
[Optional] pageSize | The max amount of results to return |
[Optional] nextPageToken | The id of the object after which to return results. Typically the last withdrawal id of the previous page |
[Optional] previousPageToken | The id of the object before which to return results. Typically the first withdrawal id of the next page |
[Optional] ct | Cancellation token |
PlaceConditionalOrderAsync
https://bittrex.github.io/api/v3#operation--conditional-orders-post
Place a new conditional order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.PlaceConditionalOrderAsync(/* parameters */);
Task<WebCallResult<BittrexConditionalOrder>> PlaceConditionalOrderAsync(string symbol, ConditionalOrderOperand operand, BittrexUnplacedOrder? orderToCreate = default, BittrexLinkedOrder? orderToCancel = default, decimal? triggerPrice = default, decimal? trailingStopPercent = default, string? clientConditionalOrderId = default, CancellationToken ct = default);
Parameter | Description |
---|---|
symbol | The symbol of the order |
operand | The operand of the order |
[Optional] orderToCreate | Order to create when condition is triggered |
[Optional] orderToCancel | Order to cancel when condition is triggered |
[Optional] triggerPrice | Trigger price |
[Optional] trailingStopPercent | Trailing stop percent |
[Optional] clientConditionalOrderId | Client order id for conditional order |
[Optional] ct | Cancellation token |
PlaceMultipleOrdersAsync
https://bittrex.github.io/api/v3#operation--batch-post
Place multiple orders in a single call
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.PlaceMultipleOrdersAsync(/* parameters */);
Task<WebCallResult<IEnumerable<CallResult<BittrexOrder>>>> PlaceMultipleOrdersAsync(BittrexNewBatchOrder[] orders, CancellationToken ct = default);
Parameter | Description |
---|---|
orders | Orders to place |
[Optional] ct | Cancellation token |
PlaceOrderAsync
https://bittrex.github.io/api/v3#operation--orders-post
Places an order
var client = new BittrexRestClient();
var result = await client.SpotApi.Trading.PlaceOrderAsync(/* parameters */);
Task<WebCallResult<BittrexOrder>> PlaceOrderAsync(string symbol, OrderSide side, OrderType type, TimeInForce timeInForce, decimal? quantity = default, decimal? price = default, decimal? quoteQuantity = default, string? clientOrderId = default, bool? useAwards = default, CancellationToken ct = default);
Parameter | Description |
---|---|
symbol | The symbol of the order |
side | The side of the order |
type | The type of order |
timeInForce | The time in force of the order |
[Optional] quantity | The quantity of the order |
[Optional] price | The price of the order (limit orders only) |
[Optional] quoteQuantity | The amount of quote quantity to use |
[Optional] clientOrderId | Id to track the order by |
[Optional] useAwards | Option to use Bittrex credits for the order |
[Optional] ct | Cancellation token |