tn_cancel_all_orders: Cancel all orders (testnet)

View source: R/delete_orders.R

tn_cancel_all_ordersR Documentation

Cancel all orders (testnet)

Description

Cancel all orders that have been placed using testnet API for a specific symbol, or use a filter to select specific orders.

Usage

tn_cancel_all_orders(symbol = NULL, filter = NULL, text = NULL)

Arguments

symbol

string. Optional symbol. If provided, only cancels orders for that symbol.

filter

string. Optional filter for cancellation. Use to only cancel some orders, e.g. '"side": "Buy"'.

text

string. Optional cancellation annotation. e.g. 'Spread Exceeded'.

Value

Returns a data.frame with information about the orders that were cancelled. See https://www.bitmex.com/api/explorer/#!/Order/Order_cancelAll for more information.

Examples

## Not run: 
# cancel all "Buy" orders
tn_cancel_all_orders(filter = '{"side": "Buy"}')

## End(Not run)


bitmexr documentation built on Aug. 8, 2023, 1:09 a.m.