SYSTEM STATUS
Receiving and setting the status of the matching engine
System status is decided by an administrator.
REQUEST TO GET SYSTEM STATUS
{"type":"subscribesystemstatus"}
RESPONSE TO GET SYSTEM STATUS
{"data":[{"exchange":"STAGE","time":1697693198141,"status":"Open"}],"type":"systemstatus"}
There are 3 states for the system:
Open - Orders can be made and matched (O)
PreOpen - Orders can be made but there won't be any matches (P)
Halted - Orders cannot be made (H)
SAMPLE REQUEST TO SET SYSTEM STATUS
{"type":"setsystemstatus","exchange":"STAGE","status":"O"}
SAMPLE RESPONSE TO SET SYSTEM STATUS
{"result":"OK","exchange":"STAGE","type":"setsystemstatus","status":"O"}
If subscried you will also get this similar message after setting a status:
{"data":[{"exchange":"STAGE","time":1697730765055,"status":"Open"}],"type":"systemstatus"}
There is also a "scheduletime"
where you can delay when you want a certain status to start.
SAMPLE REQUEST TO SET SYSTEM STATUS WITH scheduletime
{"type":"setsystemstatus","scheduletime":1697731020000,"exchange":"STAGE","status":"P"}
SAMPLE RESPONSE TO SET SYSTEM STATUS WITH scheduletime
{"result":"OK","scheduletime":1697731020000,"exchange":"STAGE","type":"setsystemstatus","status":"P"}
Last updated
Was this helpful?