Placing a bet with Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ilyai
    Junior Member
    • Jul 2016
    • 1

    #1

    Placing a bet with Java

    Hi guys,

    I keep on getting the same error "MARKET_NOT_OPEN_FOR_BSP_BETTING" for all the bets I am trying to place.

    Example:

    Request:
    • URL: https://developers.betfair.com/api.b...ng/json-rpc/v1
    • Content:
    • [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/placeOrders", "params": {"marketId":"1.125520763","instructions":[{"selectionId":"47972","handicap":"0","side":"BACK ","orderType":"MARKET_ON_CLOSE","marketOnCloseOrde r":{"liability":"3.0"}}],"customerRef":"767868767868"}, "id": 1}]

    Response:
    [{"jsonrpc":"2.0","result":{"customerRef":"76786876 7868","status":"FAILURE","errorCode":"BET_ACTION_E RROR","marketId":"1.125520763","instructionReports ":[{"status":"FAILURE","errorCode":"MARKET_NOT_OPEN_F OR_BSP_BETTING","instruction":{"selectionId":47972 ,"handicap":0.0,"marketOnCloseOrder":{"liability": 3.0},"orderType":"MARKET_ON_CLOSE","side":"BACK"}}]},"id":1}]

    Any help on this would be much appreciated...

    Thanks,

    Ilya
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Look, I want to help. I really want to help. I come on here to help and hopefully to learn stuff as well. I've tried to help on a million threads on here.

    This isn't just aimed at you.

    PEOPLE, GIVE US MORE INFORMATION!!!!!!!!!!!!!!!!!!

    YOU shouldn't be making ME find out about your event and your market. What's the event? Kangaroo boxing? Flower arranging? When does it start? What's the market? Number of spiders in the kitchen?

    PLEASE.

    If all you tell me is a market id, what's the event id? What sort of event is it?

    I'm not going to look it up. You tell me about them. It's basic information. You have to give us basic information.

    If your program returns a marketCatalogue, show us.


    Your URL looks odd:
    https://developers.betfair.com/api.b...ng/json-rpc/v1

    Comment

    • jptrader
      Junior Member
      • Nov 2009
      • 82

      #3
      Agree with jabe that more info would be nice, but anyway... I see from your selectionId that this is a football market. Market_on_close orders are not available on football markets, only for horse racing (and maybe other sports?) Try a LimitOrder

      Comment

      Working...
      X