All examples use the base URL
https://api.futuur.com. Every request requires HMAC authentication headers. See the Authentication guide for how to generate them.List your active wagers
Call The response includes each wager’s
GET /wagers/ to see all positions you currently hold. Filter by active=true to show only open wagers.market ID, the number of shares you hold, and the position (l for long, s for short).Find the wager you want to exit
Identify the wager you want to sell. Note the following fields from the wager response:
market— the market ID you’ll use in the sell ordershares— the total number of shares you hold (your maximum sell quantity)position—l(long) if you bet the outcome happens,s(short) if you bet against itcurrency— the currency the wager was placed in
python
Place an ask (sell) order
To sell, place a Limit sell (only fill at your target price or better):
POST /orders/ request with side="ask". Match the position field to the position type you hold — l for long shares, s for short shares.Use shares to specify exactly how many shares to sell. Set price=null for a market sell (executes immediately at the best available bid), or set a specific price to place a limit sell.Market sell (sell immediately):Confirm the order is filled and the wager is closed
Check the order’s To confirm the wager is fully closed, re-fetch your wagers list. A fully sold wager will no longer appear in the
status in the response. For market sells, the status is typically filled immediately. For limit sells, it remains open until a buyer matches your price.python
active=true results.Partial sells
You don’t have to sell your entire position at once. Pass ashares value smaller than your total holding to partially exit. The remaining shares stay open in your wager.
python
shares field decreases by the number of shares sold.
Long vs short positions
| Position | What it means | How to sell |
|---|---|---|
Long ("l") | You bet the outcome happens | Place side="ask", position="l" |
Short ("s") | You bet the outcome does not happen | Place side="ask", position="s" |
position field in your sell order to the position type you hold. Mismatching will result in an error or an unintended new position.
Cancelling an unfilled limit sell
If your limit sell order hasn’t filled yet and you want to cancel it, usePATCH /orders/{id}/cancel/: