Account History API
The history API is available from the full node via websockets.
Account History
get_account_history
Get operations relevant to the specified account.
account_id_or_name
: The account ID or name whose history should be queriedstop
: ID of the earliest operation to retrievelimit
: Maximum number of operations to retrieve (must not exceed 100)start
: ID of the most recent operation to retrieve
get_account_history_operations
Get only asked operations relevant to the specified account.
account_id_or_name
: The account ID or name whose history should be queriedoperation_type
: The type of the operation we want to get operations in the account ( 0 = transfer , 1 = limit order create, …)stop
: ID of the earliest operation to retrievelimit
: Maximum number of operations to retrieve (must not exceed 100)start
: ID of the most recent operation to retrieve
get_relative_account_history
Get operations relevant to the specified account referenced by an event numbering specific to the account. The current number of operations for the account can be found in the account statistics (or use 0 for start).
account_id_or_name
: The account ID or name whose history should be queriedstop
: Sequence number of earliest operation. 0 is default and will query ‘limit’ number of operations.limit
: Maximum number of operations to retrieve (must not exceed 100)start
: Sequence number of the most recent operation to retrieve. 0 is default, which will start querying from the most recent operation.
Market History
get_fill_order_history
Get details of order executions occurred most recently in a trading pair.
a
: Asset symbol or ID in a trading pairb
: The other asset symbol or ID in the trading pairlimit
: Maximum records to return
get_market_history
Get OHLCV data of a trading pair in a time range.
a
: Asset symbol or ID in a trading pairb
: The other asset symbol or ID in the trading pairbucket_seconds
: Length of each time bucket in seconds.
Note: It needs to be within result of get_market_history_buckets(), otherwise no data will be returned
start
: The start of a time range, E.G. “2018-01-01T00:00:00”end
: The end of the time range
get_market_history_buckets
Get OHLCV time bucket lengths supported (configured) by this API server.
A list of time bucket lengths in seconds.
For example, if the result contains a number “300” it means this API server supports OHLCV data aggregated in 5-minute buckets.
Last updated