Attempting to place multiple bets using place_orders loop but failing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DB2702
    Junior Member
    • Aug 2020
    • 5

    #1

    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
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    If you could post the JSON string that gets sent, we could see what's wrong with it.

    Comment

    Working...
    X