the orders_api class exposes access to data processed with grouped orders plugin.
More...
#include <api.hpp>
the orders_api class exposes access to data processed with grouped orders plugin.
Definition at line 597 of file api.hpp.
◆ orders_api()
graphene::app::orders_api::orders_api |
( |
application & |
app | ) |
|
|
explicit |
◆ get_grouped_limit_orders()
vector< orders_api::limit_order_group > graphene::app::orders_api::get_grouped_limit_orders |
( |
const std::string & |
base_asset, |
|
|
const std::string & |
quote_asset, |
|
|
uint16_t |
group, |
|
|
const optional< price > & |
start, |
|
|
uint32_t |
limit |
|
) |
| const |
Get grouped limit orders in given market.
- Parameters
-
base_asset | symbol or ID of asset being sold |
quote_asset | symbol or ID of asset being purchased |
group | Maximum price diff within each order group, have to be one of configured values |
start | Optional price to indicate the first order group to retrieve |
limit | Maximum number of order groups to retrieve, must not exceed the configured value of api_limit_get_grouped_limit_orders |
- Returns
- The grouped limit orders, ordered from best offered price to worst
Definition at line 980 of file api.cpp.
◆ get_tracked_groups()
flat_set< uint16_t > graphene::app::orders_api::get_tracked_groups |
( |
| ) |
const |
Get tracked groups configured by the server.
- Returns
- A list of numbers which indicate configured groups, of those, 1 means 0.01% diff on price.
Definition at line 973 of file api.cpp.
The documentation for this class was generated from the following files: