Sync orders state
Triggers a synchronization of the state of previously sent orders against the market.
GET
/v1/broker/orders/sync-stateRequest
Headers
| Field | Type | Required | Description |
|---|---|---|---|
Authorization | string | Yes | Access token in Bearer ACCESS_TOKEN format |
Not applicable: Path Parameters, Query Parameters, Body.
Response
2XX Success
Returns an empty 200 OK response body once the synchronization has been triggered.
Error Codes
| Status | Description |
|---|---|
401 | Unauthorized — invalid or missing access token |
500 | Internal Server Error |
Error structure:
{
"code": "INTERNAL_ERROR",
"description": "An unexpected error occurred"
}
Code Example
- cURL
- JavaScript
- Python
- Node.js
curl -X GET https://b2b.allaria.cloud/v1/broker/orders/sync-state \
-H "Authorization: Bearer ACCESS_TOKEN"
const response = await fetch('https://b2b.allaria.cloud/v1/broker/orders/sync-state', {
method: 'GET',
headers: { 'Authorization': 'Bearer ACCESS_TOKEN' }
});
console.log(response.status);
import requests
response = requests.get(
'https://b2b.allaria.cloud/v1/broker/orders/sync-state',
headers={ 'Authorization': 'Bearer ACCESS_TOKEN' }
)
print(response.status_code)
const axios = require('axios');
const response = await axios.get('https://b2b.allaria.cloud/v1/broker/orders/sync-state', {
headers: { Authorization: 'Bearer ACCESS_TOKEN' }
});
console.log(response.status);