getorderbook: Order Book for a Market

Description Usage Arguments Value References Examples

View source: R/ccex.r

Description

The getorderbook function returns the order book for a specified market on the C-Cex crypto-currency exchange https://c-cex.com.

Usage

1
getorderbook(market, type = c("both", "buy", "sell"), depth = 50)

Arguments

market

the market from which the order book will be retrieved.

type

type of orders to retrieve (default is "both")

depth

how deep should the returned order book be (default and maximum are 50).

Value

A named list with the following elements:

References

https://c-cex.com/?id=api#getorderbook

Examples

1
2
3
4
5
6
## Not run: 
ob = getorderbook("usd-btc")$result
head(ob$buy)
head(ob$sell)

## End(Not run)

kaneplusplus/ccex documentation built on May 20, 2019, 7:20 a.m.