public_ticker_price: GET current public ticker price and market data

Description Usage Arguments Examples

View source: R/public_ticker_price.R

Description

GET current public ticker price and market data

Usage

1
2
3
4
5
6
7
8
public_ticker_price(
  exchange = "binance",
  base_asset = "BTC",
  quote_asset = "USD",
  price_only = TRUE,
  dry_run = FALSE,
  ...
)

Arguments

exchange

Which exchange to use for price and market data. Choices are "binance", "binance-us", "bitstamp", "bittrex", "coinbase", "coinbase-pro", "crypto.com", "ftx", "ftx-us", "gemini", "huobi", "kraken", "kucoin", and "poloniex".

base_asset

Base asset (default BTC)

quote_asset

Quote asset (default USD)

price_only

If TRUE, only give current price as a numeric vector. If FALSE, give all market data available from API call.

dry_run

If TRUE, call httr2::req_dry_run, which shows the API call without actually sending it.

...

Query parameters passed to API call

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15

cstjohn810/cryptoapi documentation built on Feb. 6, 2022, 4:50 a.m.