HitBTC REST API v0.1.1 Hitbtc.TradingHistory View Source
Set of Trading history methods
This set of methods requires auth information.
You could configure it into config.exs
file of your application
Link to this section Summary
Functions
List of all orders older then 24 hours without trades are deleted
List of trades by order OrderId have to be provided
Trades history
Link to this section Functions
Link to this function
order(params \\ [])
View Source
order([tuple()]) :: {:ok, [map()]} | {:error, term()}
List of all orders older then 24 hours without trades are deleted.
Parameters:
symbol
-String
Optional parameter to filter active orders by symbolclientOrderId
-String
If set, other parameters will be ignored. Without limit and paginationfrom
-DateTime
till
-DateTime
limit
-Number
Default set to 100offset
-Number
## Example:
iex(1)> Hitbtc.TradingHistory.order
{:ok, []}
Or you could provide different parameters:
iex(1)> Hitbtc.TradingHistory.order([symbol: "ETHBTC"])
{:ok, []}
Link to this function
order_trades(orderId)
View Source
order_trades(String.t()) :: {:ok, [map()]} | {:error, term()}
List of trades by order OrderId have to be provided
Example:
iex(1)> Hitbtc.TradingHistory.order_trades("816088021")
{:ok, []}
Link to this function
trades(params \\ [])
View Source
trades([tuple()]) :: {:ok, [map()]} | {:error, term()}
Trades history
Prameters:
symbol
-String
Optional parameter to filter active orders by symbolsort
-String
DESC or ASC. Default value DESCby
-String
timestamp by default, or idfrom
-DateTime
till
-DateTime
limit
-Number
Default to 100offset
-Number
Example:
iex(1)> Hitbtc.TradingHistory.trades
{:ok, []}
iex(2)> Hitbtc.TradingHistory.trades([symbol: "ETHBTC"])
{:ok, []}