bt_cancel: Cancel an Open Order

View source: R/private-interface.r

bt_cancelR Documentation

Cancel an Open Order

Description

The bt_cancel() function cancels an open order on https://bittrex.com. This function is called after using either bt_buy() or bt_sell().

Usage

bt_cancel(uuid)

Arguments

uuid

the uuid of the order you would like to cancel.

Value

A named list with the following elements:

  • success: a boolean indicating whether the request was successful.

  • message: a string describing the error if the request was not successful, otherwise an empty string.

  • result: always NULL

References

https://bittrex.com/api/v1.1/account/cancel

See Also

bt_authenticate(), bt_getopenorders()

Examples

## Not run: 
# Note you must authenticate and define a uuid first.
bt_cancel(uuid)
# $success
# [1] TRUE
#
# $message
# [1] ""
#
# $result

## End(Not run)

ropensci/bittrex documentation built on July 6, 2022, 7:53 a.m.