Skip to content

Market:QueryMixedMarket

Attempts to construct a Mixed Market code

Controller: Market
Topic: QueryMixedMarket
Action: Publish
Permissions: None

NameTypeDescription
MarketsArrayRequired. An array of Market codes to try and combine. The order may be important depending on the selected strategy particular order.
StrategyStringOptional. A Mixed Market Strategy to include in the result. See Appendix H: Mixed Market Strategies for more information.

A string that identifies the best match for the given Markets, based on the user’s permissions.

If only a single market is valid, returns that code.

If none of the markets are valid, returns null.

CodeDescriptionSuffix
StrategyThe given Strategy is invalidStrategy Code
Market.TagThe supplied Markets are not compatible
Market.ErrorThe supplied Market is invalidMarket Code

Send:

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":{"Markets":["ASX","CXA","NSX"]}}

Receive: (User has access to all markets.)

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":"ASX+CXA+NSX"}

Receive: (User does not have NSX access.)

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":"ASX+CXA"}

Receive: (User does not have any access.)

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":null}

Send:

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":{"Markets":["ASX","CXA","NSX"],"Strategy":"SomeInvalidCode"}}

Receive:

{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Action":"Error","Data":"Strategy SomeInvalidCode"}
{"Controller":"Market","Topic":"QueryMixedMarket","TransactionID":1,"Data":null}