Skip to content

Commit

Permalink
Update queries API
Browse files Browse the repository at this point in the history
  • Loading branch information
mdyring committed Dec 11, 2020
1 parent 29d345a commit 2291b7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/market/spec/04_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@

The market module can be queried using `emcli` or the [REST interface](https://cosmos.network/rpc/) of any em-ledger node.

A public interface is exposed at https://emoney.validator.network/light/.
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/light/market/account/<owner>`.
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/light/market/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/light/market/instrument/<source>/<destination>`.
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>`.

0 comments on commit 2291b7b

Please sign in to comment.