Queries

Market module CLI queries

Queries of this module can be used to get the data of markets and params. The following queries have been exposed by the market module:

Query the Params

sged q market params

Query all the markets

sged q market markets

Query a market by uid

sged q market market [uid]

Gets a single UID and returns the corresponding market, the following table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

uid

Unique Identifier of a market

string

  1. Required

  2. Valid UUID

0435e5b6-635f-11ed-90a6-bb470175dfce

Query specific markets by UID list

sged q market markets-by-uids [uid]

Gets a list of comma-separated UID and returns the list of markets. The below table explains the details of the argument required for the above query:

ParamsDescriptionTypeValidationExample

uid

A list of unique identifiers of markets separated by ,

string

  1. Required

  2. Valid UUID

0435e5b6-635f-11ed-90a6-bb470175dfce

Last updated