View Source BitpandaApi.Api.Trades (Bitpanda API v0.1.0)
Api call to collect user's trades
Link to this section Summary
Link to this section Types
@type trade_data() :: %{ attributes: %{ status: String.t(), type: String.t(), cryptocoin_id: String.t(), cryptocoin_symbol: String.t(), fiat_id: String.t(), amount_fiat: String.t(), amount_cryptocoin: String.t(), fiat_to_eur_rate: String.t(), fiat_wallet_id: String.t(), related_swap_trade: trade_data() | nil, time: %{date_iso8601: DateTime.t()}, price: String.t() }, id: String.t(), type: String.t() }
Link to this section Functions
@spec get(String.t(), BitpandaApi.Entity.Trade.type() | nil) :: {:ok, [BitpandaApi.Entity.Trade.t()]} | {:error, BitpandaApi.Api.Error.t()}
Collect trades for user
@spec get!(String.t(), BitpandaApi.Entity.Trade.type() | nil) :: [ BitpandaApi.Entity.Trade.t() ]
Collect trades for user. Raises exception on error