real Betfair orders
betting mode
auto
total orders
7
CANCELLED 3 · EXECUTION_COMPLETE 4
open unmatched stake
$0.00
pending / executable
settled profit
-6.50
post-commission
open orders 0
settled / closed orders 7
| market | horse | side | price | size | matched @ | profit | status |
|---|---|---|---|---|---|---|---|
| 1.259538862 | Lyrebird Lady | BACK | 6.80 | $5.00 | 6.80 | -5.00 | EXECUTION_COMPLETE |
| 1.259538770 | Hold My Drink | BACK | 5.00 | $1.00 | — | +0.00 | CANCELLED |
| 1.259538770 | Hold My Drink | BACK | 4.00 | $1.00 | 4.00 | -1.00 | EXECUTION_COMPLETE |
| 1.259538805 | Switch The Stars | BACK | 2.22 | $5.00 | 2.46 | -5.00 | EXECUTION_COMPLETE |
| 1.259538805 | Tinkerbella | BACK | 200.00 | $5.00 | — | +0.00 | CANCELLED |
| 1.259538767 | Fashion Spree | LAY | 5.40 | $5.00 | — | +0.00 | CANCELLED |
| 1.259538767 | Fashion Spree | LAY | 5.60 | $5.00 | 5.60 | +4.50 | EXECUTION_COMPLETE |
placing a bet
From a shell inside the container:
horserank bet place \
--market-id 1.259538764 \
--selection-id 1964201 \
--side BACK --price 2.50 --size 5.00
Or via HTTP:
curl -X POST http://127.0.0.1:7265/api/bet/place \
-H 'Content-Type: application/json' \
-d '{"market_id":"1.259538764","selection_id":1964201,
"side":"BACK","price":2.50,"size":5.0}'
The kill switch defaults to off. To enable manual
betting set HORSERANK_REAL_BETTING=manual in
stack/docker-compose.yml (under
environment:) and restart the container. The DELAYED
Betfair app key may or may not support order placement —
if Betfair returns INVALID_APP_KEY on the first real
bet attempt, the LIVE app key (£499) is needed.