Announcement

Collapse
No announcement yet.

Attempting to place multiple bets using place_orders loop but failing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Attempting to place multiple bets using place_orders loop but failing

    Hi,

    Rather than just place one bet at a time, I want to loop through a place a number of bets using a pre-created list of market ids (market_bet_list). I can't get it to work, any tips greatly appreciated.



    order = trading.betting.place_orders(
    market_id= (market_bet_list), # The market bet list created
    instructions=[instructions_filter] # This must be a list
    )

    ERROR:


    TypeError: Object of type Series is not JSON serializable
Working...
X