Coinbase.API.Prices
SourceSummary↑
get_buy(coinbase, optionals \\ %{}) | Get the buy price for bitcoin |
get_sell(coinbase, optionals \\ %{}) | Get the sell price for bitcoin |
get_spot(coinbase, optionals \\ %{}) | Get the spot price for bitcoin |
Functions
Specs:
- get_buy(pid, %{}) :: Coinbase.response
Get the buy price for bitcoin
Optional params: qty (string): The quantity of bitcoin you would like to buy (default is 1). currency (string): Default is USD. Right now this is the only value allowed.
Specs:
- get_sell(pid, %{}) :: Coinbase.response
Get the sell price for bitcoin
Optional params: qty (string): The quantity of bitcoin you would like to buy (default is 1). currency (string): Default is USD. Right now this is the only value allowed.
Specs:
- get_spot(pid, %{}) :: Coinbase.response
Get the spot price for bitcoin
Optional params: currency (string): Default is USD. Right now this is the only value allowed.