1. #1
    linan2332
    linan2332's Avatar Become A Pro!
    Join Date: 08-11-19
    Posts: 4
    Betpoints: 246

    Fairlay API questions

    Hi Guys,
    Recently just discover fairlay exchange and really enjoy betting over there. Have some questions related to the market/API if anyone can help. Hope the questions is not too dumb

    1. Trying to figure out how to actually send an private request. I am able to send the public one but cant figure out the private one. Is it still a restful API? what does the request looks like? the api documents are kind of confusing..

    2. Sometimes during live market, even though I already use API to verified the order-book, the moment you place an match order it got immediately cancelled and the order book will refresh to empty. How does the market maker do that. Is the order already being cancelled but is just not reflected on the order book?
    3. When you create a new market, do I just create orders on both side? To make the odds shift do I just change my order with API "changeOrder"

    Side question:
    I know some (or most) of the market has pinnacle odds.(probably using a bot to scrap pinnacle odds and automatically create market base on that.) Do we know if that is a user or fairlay themselves? I dont think pinnacle actually have an account on fairlay and creating all this market.. why would they do that

    Thanks!

  2. #2
    Optional
    Optional's Avatar Moderator
    Join Date: 06-10-10
    Posts: 57,806
    Betpoints: 9216

    The most information you will find about the fairlay API around here is in this thread

    https://www.sportsbookreview.com/for...g-fairlay.html

    User Danshan went through the process and asked similar questions as you have as he learned it. You should find some of these answers in there.

  3. #3
    linan2332
    linan2332's Avatar Become A Pro!
    Join Date: 08-11-19
    Posts: 4
    Betpoints: 246

    Appreciate the response. Will look into the thread

  4. #4
    linan2332
    linan2332's Avatar Become A Pro!
    Join Date: 08-11-19
    Posts: 4
    Betpoints: 246

    Re read the API doc again and I figure out Question 1. Thanks to the thread provided by Optional I have a better understanding about the API. Is there a community/discord that is dedicated for fairlay dev/api ? would love to get in touch with other people who are using the API as well.

  5. #5
    Bsims
    Bsims's Avatar Become A Pro!
    Join Date: 02-03-09
    Posts: 827
    Betpoints: 13

    Quote Originally Posted by linan2332 View Post
    Re read the API doc again and I figure out Question 1. Thanks to the thread provided by Optional I have a better understanding about the API. Is there a community/discord that is dedicated for fairlay dev/api ? would love to get in touch with other people who are using the API as well.
    What language are you coding your API in?

  6. #6
    linan2332
    linan2332's Avatar Become A Pro!
    Join Date: 08-11-19
    Posts: 4
    Betpoints: 246

    Python. Looks like their python client is a bit outdated so I probably will re-write one in python 3
    Last edited by linan2332; 08-17-19 at 10:58 AM.

  7. #7
    Nappyx
    Nappyx's Avatar Become A Pro!
    Join Date: 11-05-17
    Posts: 652
    Betpoints: 616

    linan2332 did you have any success with the API, I'm confused and have been sending questions to support but it takes a while to get a response. At this point, I'm just trying to query the API to find the game I want to bet, but it returns all the alternative lines with the query. Does anyone know how to remove the alternative lines from the API calls so that only the lines you see on the website 'cards' are displayed? It would help them tremendously if they had a sandbox that you could use to place bets through API.

    http://31.172.83.181:8080/free/markets/{""Cat"":12,""TypeOR"":[3],""OnlyActive"":true,""Comp"":""NBA"",""PeriodOR"":[1],""RunnerAND"":[""Toronto""]}

Top