Create Boost
Place a Boost (trade key, live keys only) on the window open now: your stake buys the bet (the regular contract, bought on the order book at the current ask with the taker fee) plus a ride (an option leg struck at the live price) that pays more the further the price runs your way — the website’s Boost. Priced by the server exactly as on the website, with the same stake limit (1 to 100 dollars per order) and the same cutoff (none in a window’s last minute). The stake is paid from your cash when the order is placed and counts in your key’s daily limit. client_order_id is required and idempotent: resending the same id with the same body returns the order already placed. After a timeout or 503 EXCHANGE_UNAVAILABLE, look it up by client_order_id (GET /portfolio/boosts) before sending it again.
curl --request POST \
--url https://api.updown.fast/trade-api/v1/portfolio/boosts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"market_ticker": "<string>",
"stake": "<string>",
"client_order_id": "<string>",
"kind": "boost",
"expected_max_payout": "<string>",
"expected_price": "<string>"
}
'import requests
url = "https://api.updown.fast/trade-api/v1/portfolio/boosts"
payload = {
"market_ticker": "<string>",
"stake": "<string>",
"client_order_id": "<string>",
"kind": "boost",
"expected_max_payout": "<string>",
"expected_price": "<string>"
}
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({
market_ticker: '<string>',
stake: '<string>',
client_order_id: '<string>',
kind: 'boost',
expected_max_payout: '<string>',
expected_price: '<string>'
})
};
fetch('https://api.updown.fast/trade-api/v1/portfolio/boosts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"boost": {
"boost_id": "<string>",
"market_ticker": "<string>",
"outcome": "up",
"kind": "boost",
"mode": "live",
"status": "pending",
"stake": "<string>",
"multiplier": "<string>",
"max_payout": "<string>",
"created_ts_ms": 4503599627370495,
"client_order_id": "<string>",
"price_to_beat": "<string>",
"value": "<string>",
"sell_proceeds": "<string>",
"close_price": "<string>",
"payout": "<string>",
"credit_used": "<string>",
"paid": "<string>",
"close_ts_ms": 4503599627370495,
"settled_ts_ms": 4503599627370495,
"bet": {
"order_id": "<string>",
"contracts": "<string>",
"cost": "<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>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}Authorizations
Body
curl --request POST \
--url https://api.updown.fast/trade-api/v1/portfolio/boosts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"market_ticker": "<string>",
"stake": "<string>",
"client_order_id": "<string>",
"kind": "boost",
"expected_max_payout": "<string>",
"expected_price": "<string>"
}
'import requests
url = "https://api.updown.fast/trade-api/v1/portfolio/boosts"
payload = {
"market_ticker": "<string>",
"stake": "<string>",
"client_order_id": "<string>",
"kind": "boost",
"expected_max_payout": "<string>",
"expected_price": "<string>"
}
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({
market_ticker: '<string>',
stake: '<string>',
client_order_id: '<string>',
kind: 'boost',
expected_max_payout: '<string>',
expected_price: '<string>'
})
};
fetch('https://api.updown.fast/trade-api/v1/portfolio/boosts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"boost": {
"boost_id": "<string>",
"market_ticker": "<string>",
"outcome": "up",
"kind": "boost",
"mode": "live",
"status": "pending",
"stake": "<string>",
"multiplier": "<string>",
"max_payout": "<string>",
"created_ts_ms": 4503599627370495,
"client_order_id": "<string>",
"price_to_beat": "<string>",
"value": "<string>",
"sell_proceeds": "<string>",
"close_price": "<string>",
"payout": "<string>",
"credit_used": "<string>",
"paid": "<string>",
"close_ts_ms": 4503599627370495,
"settled_ts_ms": 4503599627370495,
"bet": {
"order_id": "<string>",
"contracts": "<string>",
"cost": "<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>"
}{
"code": "BAD_REQUEST",
"message": "<string>",
"details": "<string>"
}