bt_sell: Place a Sell Order

Description Usage Arguments Value References See Also Examples

Description

The bt_sell() function places a sell order on https://bittrex.com. This function only works if you have set up authentication.

Usage

1
bt_sell(market, quantity, rate, type = c("limit", "market"))

Arguments

market

the market to place the buy limit order on.

quantity

how much of the quote currency to sell.

rate

the price per unit of the quote currency that you wish to sell at.

type

either "market" or "limit". Note that market orders are disabled as of July 7, 2017 (default is limit).

Value

A named list with the following elements:

References

https://bittrex.com/api/v1.1/market/selllimit

See Also

bt_authenticate(), bt_buy(), bt_getopenorders(), bt_getorderhistory()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
## Not run: 
# Note you must authenticate first.
# Sell half a bitcoin at 17000 USDT per bitcoin.
bt_sell("usdt-btc", 0.5, 17000)
# $success
# [1] TRUE
#
# $message
# [1] ""
#
# $result
# $result$uuid
# [1] "2d6l69e9-17fb-4f2a-8aff-37418b515624"

# Sell 3.4 ETH at 0.063 BTC per ETH
bt_sell("btc-eth", 3.4, 0.063)

# Sell 2 LTC at 255 USDT per LTC
bt_sell("usdt-ltc", 2, 255)

## End(Not run)

2ndTime/bittrex2 documentation built on May 31, 2019, 2:19 p.m.