API referenceBidding XBID
POST /api/XBID/SaveDraftOrders
Creates or updates internal XBID orders in To Be Approved status without sending them to the exchange. The response contains the persisted orders needed for later retrieval, editing, or submission.
POST
/api/XBID/SaveDraftOrderscurl -X POST "/api/XBID/SaveDraftOrders" \
-H "Authorization: $ATLAS_ETRM_API_DOCUMENTATION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"data": [
{
"id": 0,
"entityId": 0,
"entityCode": "string",
"marketPartyId": 0,
"marketPartyName": "string",
"marketPartyCode": "string",
"contractId": 0,
"orderType": 1,
"executionState": 0,
"execType": 1,
"validity": 0,
"validityDateTime": "2026-01-15T09:30:00Z",
"side": 1,
"externalOrderId": "string",
"quantity": 0,
"totalVolume": 0,
"price": 0,
"executedPrice": 0,
"blockTotalContracts": 0,
"icePeakPriceDelta": 0,
"iceVolumeDisplay": 0,
"version": 0,
"orderItemId": 0,
"volumeExecuted": 0,
"volumeCanceled": 0,
"orderItemStatus": 1,
"contractName": "string",
"deliveryStart": "2026-01-15T09:30:00Z",
"deliveryEnd": "2026-01-15T09:30:00Z",
"log": "string",
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
}
]
}'Εξουσιοδότηση
AuthorizationstringheaderυποχρεωτικόJWT Authorization header using the Bearer scheme. Enter your token including the 'Bearer ' prefix (e.g. 'Bearer eyJ...').
Σώμα
application/json
dataAtlas.SDK.Bidding.Models.XBID.XBIDOrderDto[] | null
Απόκριση
application/json
OK
successbooleanrecordCountinteger<int32>dataAtlas.SDK.Bidding.Models.XBID.XBIDOrderDto[] | null
{
"success": true,
"recordCount": 0,
"data": [
{
"id": 0,
"entityId": 0,
"entityCode": "string",
"marketPartyId": 0,
"marketPartyName": "string",
"marketPartyCode": "string",
"contractId": 0,
"orderType": 1,
"orderTypeDescription": "string",
"executionState": 0,
"executionStateDescription": "string",
"execType": 1,
"execTypeDescription": "string",
"validity": 0,
"validityDescription": "string",
"validityDateTime": "2026-01-15T09:30:00Z",
"side": 1,
"sideDescription": "string",
"externalOrderId": "string",
"quantity": 0,
"totalVolume": 0,
"price": 0,
"executedPrice": 0,
"blockTotalContracts": 0,
"icePeakPriceDelta": 0,
"iceVolumeDisplay": 0,
"version": 0,
"orderItemId": 0,
"volumeExecuted": 0,
"volumeCanceled": 0,
"orderItemStatus": 1,
"orderItemStatusDescription": "string",
"contractName": "string",
"deliveryStart": "2026-01-15T09:30:00Z",
"deliveryEnd": "2026-01-15T09:30:00Z",
"log": "string",
"createdAt": "2026-01-15T09:30:00Z",
"updatedAt": "2026-01-15T09:30:00Z"
}
]
}