Coinbase.API.Buys
SourceSummary↑
buy(coinbase, qty, optionals \\ %{}) | Buy bitcoin |
Functions
Specs:
- buy(pid, binary, %{}) :: Coinbase.response
Buy bitcoin
Optional params: account_id (string): Specify which account is used for crediting bought amount. The default is your primary account. currency (string): Currency of qty, must be either BTC or the currency of the payment method. agree_btc_amount_varies (boolean): Whether or not you would still like to buy if you have to wait for your money to arrive to lock in a price. commit (boolean): Defaults to true. If set to false, this buy will not be immediately completed. Use the Coinbase.API.Transfers.commit(pid, id) call to complete it