On this page

latest contributor to this doc

Last Edit:

@gcharang

orders_history_by_filter

orders_history_by_filter (order_type initial_action base rel from_price to_price from_volume to_volume from_timestamp to_timestamp was_taker status include_details)

The orders_history_by_filter method returns all orders whether active or inactive that match the selected filters. Please note that all filters (order_type initial_action, etc.) are combined using logical AND.

StructureTypeDescription
order_typestringreturn only orders that match the order_type; order_type can be "Maker" or "Taker"
initial_actionstringreturn only orders that match the initial_action; initial_action can be "Sell" or "Buy". Note that maker order initial_action is considered "Sell"
basestringreturn only orders that match the order.base = base condition
relstringreturn only orders that match the order.rel = rel condition
from_pricevariesreturn only orders that match the order.price >= from_price condition
to_pricevariesreturn only orders that match the order.price <= to_price condition
from_volumevariesreturn only orders that match the order.volume >= from_volume condition
to_volumevariesreturn only orders that match the order.volume <= to_volume condition
from_timestampintegerTimestamp in UNIX format. Return only orders that match the order.created_at >= from_timestamp condition
to_timestampnumberTimestamp in UNIX format. return only orders that match the order.created_at <= to_timestamp condition
was_takerboolreturn only GoodTillCancelled orders that got converted from taker to maker
statusstringreturn only orders that match the status; status can be:
  • For active maker order Created, Updated
  • For active taker order Created
  • For inactive maker order Fulfilled, Insufficient Balance, Cancelled
  • For inactive taker order Fulfilled, Timed Out, Cancelled
include_detailsboolwhether to include complete order details in response; defaults to false

StructureTypeDescription
ordersarray of order objectsArray of OrderSummaryData that match the selected filters.
detailsarrayarray of complete order details for every order that matches the selected filters; returns [] if include_details is false or not included in the
details.typestringtype of the order; "Maker" or "Taker"
details.orderobjectA standard OrderDataV1 objects containing outstanding asks
found_recordsnumberthe number of returned orders
warningsarrayarray containing warnings objects
warnings.uuidstringuuid of the order that produced this warning
warnings.warningstringwarning message

POST
orders_history_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orders_history_by_filter",
  "order_type": "Taker",
  "initial_action": "Buy"
}

POST
orders_history_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orders_history_by_filter",
  "base": "DOC",
  "rel": "MARTY"
}

POST
orders_history_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orders_history_by_filter",
  "base": "DOC",
  "from_price": 1,
  "to_volume": 1
}

POST
orders_history_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orders_history_by_filter",
  "was_taker": true,
  "from_timestamp": 1611705600
}

POST
orders_history_by_filter
{
  "userpass": "RPC_UserP@SSW0RD",
  "method": "orders_history_by_filter",
  "status": "Timed Out",
  "include_details": true
}