betangel api - bet persistence

We were all new to Bet Angel once. Ask any question you like here and fellow forum members promise not to laugh. Betfair trading made simple.
Post Reply
Power99
Posts: 2
Joined: Sat Aug 30, 2025 6:37 am

HI,
Guys, Im really struggling and cannot make chatgpt help me.
I am successfully pushing my football bets in-play to betfair via betangel api + python script.
However, I also want these bets to have persistence to stay on the market for eg if goal is scored etc

Can this KEEP bet persistence passed together in the moment bets are pushed?

Or I must push bets, then request via betangel api their id and only then apply KEEP?
What is correct flag by the way for this operation?


Image
sniffer66
Posts: 1835
Joined: Thu May 02, 2019 8:37 am

Its in modify bets, using the MarketId and BetRef

http://localhost:9000/api/betting/v1.0/modifyBets {"marketId":"","async":false,"betsToModify":[{"betRef":"","newAtInplayOption":"KEEP"}]}

So place the bet, get the id and modify it. You can't do it in the same request as placing the bet unfortunately
Power99
Posts: 2
Joined: Sat Aug 30, 2025 6:37 am

sniffer66 wrote:
Sun Nov 23, 2025 9:28 am
Its in modify bets, using the MarketId and BetRef

http://localhost:9000/api/betting/v1.0/modifyBets {"marketId":"","async":false,"betsToModify":[{"betRef":"","newAtInplayOption":"KEEP"}]}

So place the bet, get the id and modify it. You can't do it in the same request as placing the bet unfortunately
Wow, thanks so much, I tried really hard to explain it to chatgpt, it kept sending me lots of code variations... but nothing.
when i showed him your template everything worked!
sniffer66
Posts: 1835
Joined: Thu May 02, 2019 8:37 am

Power99 wrote:
Sun Nov 23, 2025 9:44 am
sniffer66 wrote:
Sun Nov 23, 2025 9:28 am
Its in modify bets, using the MarketId and BetRef

http://localhost:9000/api/betting/v1.0/modifyBets {"marketId":"","async":false,"betsToModify":[{"betRef":"","newAtInplayOption":"KEEP"}]}

So place the bet, get the id and modify it. You can't do it in the same request as placing the bet unfortunately
Wow, thanks so much, I tried really hard to explain it to chatgpt, it kept sending me lots of code variations... but nothing.
when i showed him your template everything worked!
Good stuff. Glad it helped
Post Reply

Return to “Bet Angel for newbies / Getting started”