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"
}
}
}
| Property | Type | Description |
|---|---|---|
error | object or null | If there's an error, this will be returned. |
error.message | string | The error message. |
data | object or null | If successful, this will be returned. |
data.market | object | The market model object. |
data.market.status | string | Either "OPEN" or "CLOSED". |