Order entry
Create orders (batch)
Place up to 20 limit orders in one call (trade key), in the order given. Every item answers for itself — an order, or an error with the same codes as POST /portfolio/orders — so one refusal never fails the rest. Each item costs one unit of the key’s order budget; an item past the budget is answered RATE_LIMITED in place.
POST
/
portfolio
/
orders
/
batch
Create orders (batch)
curl --request POST \
--url https://api.updown.fast/trade-api/v1/portfolio/orders/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"market_ticker": "<string>",
"price": "<string>",
"count": "<string>",
"client_order_id": "<string>",
"time_in_force": "good_till_canceled",
"post_only": false
}
]
}
'import requests
url = "https://api.updown.fast/trade-api/v1/portfolio/orders/batch"
payload = { "orders": [
{
"market_ticker": "<string>",
"price": "<string>",
"count": "<string>",
"client_order_id": "<string>",
"time_in_force": "good_till_canceled",
"post_only": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orders: [
{
market_ticker: '<string>',
price: '<string>',
count: '<string>',
client_order_id: '<string>',
time_in_force: 'good_till_canceled',
post_only: false
}
]
})
};
fetch('https://api.updown.fast/trade-api/v1/portfolio/orders/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"results": [
{
"client_order_id": "<string>",
"order": {
"order_id": "<string>",
"client_order_id": "<string>",
"market_ticker": "<string>",
"outcome": "up",
"action": "buy",
"price": "<string>",
"time_in_force": "good_till_canceled",
"post_only": true,
"status": "resting",
"count": "<string>",
"fill_count": "<string>",
"remaining_count": "<string>",
"created_ts_ms": 4503599627370495,
"average_fill_price": "<string>",
"fees_paid": "<string>"
},
"error": {
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}
}
]
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}Authorizations
Body
application/json
⌘I
Create orders (batch)
curl --request POST \
--url https://api.updown.fast/trade-api/v1/portfolio/orders/batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"orders": [
{
"market_ticker": "<string>",
"price": "<string>",
"count": "<string>",
"client_order_id": "<string>",
"time_in_force": "good_till_canceled",
"post_only": false
}
]
}
'import requests
url = "https://api.updown.fast/trade-api/v1/portfolio/orders/batch"
payload = { "orders": [
{
"market_ticker": "<string>",
"price": "<string>",
"count": "<string>",
"client_order_id": "<string>",
"time_in_force": "good_till_canceled",
"post_only": False
}
] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orders: [
{
market_ticker: '<string>',
price: '<string>',
count: '<string>',
client_order_id: '<string>',
time_in_force: 'good_till_canceled',
post_only: false
}
]
})
};
fetch('https://api.updown.fast/trade-api/v1/portfolio/orders/batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"results": [
{
"client_order_id": "<string>",
"order": {
"order_id": "<string>",
"client_order_id": "<string>",
"market_ticker": "<string>",
"outcome": "up",
"action": "buy",
"price": "<string>",
"time_in_force": "good_till_canceled",
"post_only": true,
"status": "resting",
"count": "<string>",
"fill_count": "<string>",
"remaining_count": "<string>",
"created_ts_ms": 4503599627370495,
"average_fill_price": "<string>",
"fees_paid": "<string>"
},
"error": {
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}
}
]
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}