Skip to content

Trading:QueryRequestStatuses

Requests the valid Pending Request Status definitions. Use the Provider property on an Account.

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

NameTypeExpectDescription
ProviderStringAlwaysThe trading data provider to get Request Statuses for

An unordered array of Request Status objects.

An Request Status is uniquely identified by the Code.

NameTypeExpectDescription
CodeStringAlwaysThe code identifying this Request Status.
AllowsStringAlwaysThe allowed actions in this state. One or more of the following values, separated by commas:
None: No actions permitted.
Amend: The Request is able to be amended.
Cancel: The Request is able to be cancelled.
All: The Request can amend or cancel.
ReasonStringAlwaysThe reasons behind this state. One or more of the following values, separated by commas:
Unknown: The reason is unknown.
Normal: State is a normal part of the Request lifecycle.
Manual: State was initiated manually.
Abnormal: State is abnormal, indicating a fault or other issue.
Completed: State represents a completed Request.
Waiting: State is due to a temporary wait

Send:

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

Receive:

{
"Controller":"Trading",
"Topic":"QueryRequestStatuses",
"Data":
[
{
"Code":"Pending", "Reason":"Normal,Waiting", "Allows":"None"
},
{
"Code":"Queued", "Reason":"Normal","Allows":"Amend,Cancel"
},
{
"Code":"Submitted", "Reason":"Normal,Waiting","Allows":"None"
},
{
"Code":"Completed", "Reason":"Normal,Completed","Allows":"None"
},
{
"Code":"Rejected", "Reason":"Abnormal,Completed","Allows":"None"
}
],
"TransactionID":1
}