bt_getorderhistory: Order History for an Account

View source: R/private-interface.r

bt_getorderhistoryR Documentation

Order History for an Account

Description

The bt_getorderhistory() function retrieves order history data on https://bittrex.com. This function can only be used after you provide authentication information.

Usage

bt_getorderhistory(market)

Arguments

market

(optional) the market on which you would like to see all open orders. If not specified, then completed orders for all markets are returned.

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: a data.frame providing data about previously completed orders including the order uuid, the exchange the time of the order, the order type, the limit, the quantity, the quantity remaining, the commission, the price, the price per unit, and whether or not it was a conditional trade.

References

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

See Also

bt_authenticate()

Examples

## Not run: 
bt_getorderhistory()
# $success
# [1] TRUE
#
# $message
# [1] ""
#
# $result
#                             order_uuid exchange time_stamp order_type   limit
# 1 c04bc07b-e6a9-4f47-a2c8-f9eb3c9a7fa1  BTC-ETH       <NA> LIMIT_SELL 0.11771
# 2 319fcc92-0b0d-43f1-a538-18f790d85ffa  BTC-ETH       <NA> LIMIT_SELL 0.14170
# 3 cd052594-d655-4e79-bec6-383ba7be8302  BTC-ETH       <NA> LIMIT_SELL 0.14020
#   quantity quantity_remaining commission      price price_per_unit
# 1    0.400                  0 0.00011772 0.04708801      0.1177200
# 2    0.100                  0 0.00003542 0.01417000      0.1417000
# 3    0.175                  0 0.00006133 0.02453499      0.1401999
#   is_conditional condition condition_target immediate_or_cancel
# 1          FALSE      NONE               NA               FALSE
# 2          FALSE      NONE               NA               FALSE
# 3          FALSE      NONE               NA               FALSE
#                    closed
# 1 2017-06-22T20:06:23.973
# 2   2017-06-13T15:33:20.4
# 3 2017-06-13T14:59:13.923

## End(Not run)

kaneplusplus/bittrex documentation built on July 6, 2022, 10:02 p.m.