Skip to content

Trading:QueryTradingMarkets

Requests the valid Trading Market definitions. Use the Provider property on an Account.

Controller: Trading
Topic: QueryTradingMarkets
Action: Publish
Permissions: None

NameTypeExpectDescription
ProviderStringAlwaysThe trading data provider to get Trading Markets for
ExchangeStringOptionalThe base Exchange code to get Trading Markets for

An unordered array of Trading Market objects.

A Trading Market is uniquely identified by the code.

NameTypeExpectDescription
CodeStringAlwaysThe code identifying this Trading Market.
ExchangeStringOptionalThe Exchange this Trading Market is targeting. If omitted, this market may represent an off-exchange destination (eg: a best-market router).
IsLitBooleanAlwaysTrue if this Trading Market directly corresponds to a lit market, False if pricing is obscured or unavailable (dark market).
BestSourceStringOptionalThe best source Market for pricing this Trading Market, if available. Can be a Mixed Market.
AttributesObjectOptionalAny additional attributes describing this Trading Market.

Send:

{"Controller":"Trading","Topic":"QueryTradingMarkets","TransactionID":1,"Data":{"Provider":"Motif[Demo]"}}

Receive:

{
"Controller":"Trading",
"Topic":"QueryTradingMarkets",
"Data":
[
{
"Code":"ASX", "Exchange":"ASX",
"IsLit": true, "BestSource": "ASX"
},
{
"Code":"ASX::CP", "Exchange":"ASX",
"IsLit": false, "BestSource": "ASX"
},
],
"TransactionID":1
}