Skip to content
This repository has been archived by the owner on Feb 16, 2025. It is now read-only.

Latest commit

 

History

History
25 lines (13 loc) · 952 Bytes

04_queries.md

File metadata and controls

25 lines (13 loc) · 952 Bytes

Queries

The market module can be queried using emcli or the REST interface of any em-ledger node.

A public interface is exposed at https://emoney.validator.network/api/.

Active account orders

Active orders for a given account can be queried using https://emoney.validator.network/api/market/account/<owner>.

Or using emcli query market account <owner>.

Active instruments

All instruments with active orders can be queried using https://emoney.validator.network/api/market/instruments.

Or using emcli query market instruments.

Note that there is no listing requirement for new instruments, so these are created on-the-fly based on new orders.

Active orders per instrument

All orders for a given instrument can be queried using https://emoney.validator.network/api/market/instrument/<source>/<destination>.

Or using emcli query market instrument <source-denom> <destination-denom>.