Market

Market Status

Get the current status of the market.

Get the current status of the market.

GET /market/status HTTP/1.1
Host: mock.qbix.dev/api
Accept: application/json

The server will return either "OPEN" or "CLOSED" and will oscillate between them at a certain probability.

Be warned that the server may return "I'm a teapot" error.

Response

Body

Accepts:

application/json
{
  "error": null,
  "data": {
    "market": {
      "status": "string"
    }
  }
}
PropertyTypeDescription
errorobject or nullIf there's an error, this will be returned.
error.messagestringThe error message.
dataobject or nullIf successful, this will be returned.
data.marketobjectThe market model object.
data.market.statusstringEither "OPEN" or "CLOSED".

Copyright © 2024 Qbix Technology Sdn. Bhd. All rights reserved.