Quantcast
Channel: Developer Program Forum
Viewing all 1639 articles
Browse latest View live

Can you add Time to MarketBook?

$
0
0
Hi BF API Team,

I noticed there is no time on MarketBook - but there is time on the Order (Placed Date and Matched Date).
When I need to reconcile the reduction factor -
I need to know what the reduction factor was at the time I place my bet and what it was at the time my bet is matched. In order to do that I get the place date and matched date - and find the marketBook which corresponds to that time. But because I have no time on MarketBook I can't find it. I can always stamp the system current time on the marketBook - but this relies on the fact that the box I am using is in sync with Betfair time (on which I have no control).

Alternative - is there a way to sync my box to Betfair time?

Thanks

VBA Developer: convert program to new API

$
0
0
Hello, I have a program developed a couple of years ago that I now want to take another look at. I can and will supply the existing Visual Basic code, all I need is that program converted to the new API. (Or if it is easier for you - eg clone an existing program - a basic program to list track, event, runner details at different time intervals before and after the off.)

Is there a limit with placeOrder using PHP?

$
0
0
Come across some annoying quirk where the API isn't letting me send more than 6 bets in a single request for some unknown reason. I'm using PHP and tweaked the sample code off the site. Can anyone think of a reason why the requests with over 6 bets are being rejected, unfortunately the API is only giving a response of null from the sample php code.

I'm just using the code below to submit the bets.

$jsonResponse = sportsApingRequest($appKey,$sessionToken, 'placeOrders/', $params);

$params of
Quote:

{"marketId":"1.121637352","instructions":[{"selectionId":10343384,"handicap":"0","side":"LAY ","orderType":"LIMIT","limitOrder":{"size":"50","p rice":"2","persistenceType":"MARKET_ON_CLOSE"}},{" selectionId":10485442,"handicap":"0","side":"LAY", "orderType":"LIMIT","limitOrder":{"size":"50","pri ce":"2","persistenceType":"MARKET_ON_CLOSE"}},{"se lectionId":6163562,"handicap":"0","side":"LAY","or derType":"LIMIT","limitOrder":{"size":"50","price" :"2","persistenceType":"MARKET_ON_CLOSE"}},{"selec tionId":10485441,"handicap":"0","side":"LAY","orde rType":"LIMIT","limitOrder":{"size":"50","price":" 2","persistenceType":"MARKET_ON_CLOSE"}},{"selecti onId":10351841,"handicap":"0","side":"LAY","orderT ype":"LIMIT","limitOrder":{"size":"50","price":"2" ,"persistenceType":"MARKET_ON_CLOSE"}},{"selection Id":10277121,"handicap":"0","side":"LAY","orderTyp e":"LIMIT","limitOrder":{"size":"50","price":"2"," persistenceType":"MARKET_ON_CLOSE"}}]}
Will happily go thru , whereas the following just gives a response as Call to api-ng failed: Response: null

Quote:

{"marketId":"1.121637352","instructions":[{"selectionId":10343384,"handicap":"0","side":"LAY ","orderType":"LIMIT","limitOrder":{"size":"50","p rice":"2","persistenceType":"MARKET_ON_CLOSE"}},{" selectionId":10485442,"handicap":"0","side":"LAY", "orderType":"LIMIT","limitOrder":{"size":"50","pri ce":"2","persistenceType":"MARKET_ON_CLOSE"}},{"se lectionId":6163562,"handicap":"0","side":"LAY","or derType":"LIMIT","limitOrder":{"size":"50","price" :"2","persistenceType":"MARKET_ON_CLOSE"}},{"selec tionId":10485441,"handicap":"0","side":"LAY","orde rType":"LIMIT","limitOrder":{"size":"50","price":" 2","persistenceType":"MARKET_ON_CLOSE"}},{"selecti onId":10351841,"handicap":"0","side":"LAY","orderT ype":"LIMIT","limitOrder":{"size":"50","price":"2" ,"persistenceType":"MARKET_ON_CLOSE"}},{"selection Id":10277121,"handicap":"0","side":"LAY","orderTyp e":"LIMIT","limitOrder":{"size":"50","price":"2"," persistenceType":"MARKET_ON_CLOSE"}},{"selectionId ":10485440,"handicap":"0","side":"LAY","orderType" :"LIMIT","limitOrder":{"size":"50","price":"2","pe rsistenceType":"MARKET_ON_CLOSE"}}]}
Got me stumped so any help or workarounds in php would be appreciated, thanks.

Event naming problem

$
0
0
It would be great if you finally correct the event name for Portuguese football league.

Attached Images
File Type: jpg Problem.jpg (91.2 KB)

Bypassing scratched horses

$
0
0
I don't need to explain that I am a 'newbie' because that will become obvious once you see the question!

I downloaded the Excel/VB 'SampleCode.xlsm' and added some code to list the name and odds for all the runners instead of just the first. That new code only works when by chance the next race has no runners scratched. When there is a scratched runner there is an error when the program attempts to insert the odds into a cell.

I have tried using AvailableToBack.Count but when I refer to that it causes a failure anyway. I just swap one fatal error for another. It may be that AvailableToBack doesn't exist for scratched runners?

I know there has to be a method for bypassing runners that are scratched, but I haven't been able to find any documentation/forum entry etc that covers this aspect.

I realise that it is quite possibly the most basic question ever posted, but I'd appreciate any assistance or pointer to the right documentation.

Site & API - Planned Maintenance - 10th November

$
0
0
Please be aware there will be a planned outage on 10th November 2015 from 0700 to 0845 GMT. During this time customers will not be able to access any of the Betfair products. This is whilst we carry out some essential network testing.

Sorry for any inconvenience this may cause.

Betfair Developer Program

Cant get listRaceDetails command to work

$
0
0
Hi

Has anyone had any success with the new listRaceDetails() command. I am not sure what I am doing wrong, cant seem to get anything other than a null response from Betfair.

I tried sending a few JSON variants such as

Code:

Endpoint: https://api.betfair.com/exchange/scores/json-rpc/v1
 
Calling: method ScoresAPING/v1.0/listRaceDetails with args:
{"meetingIds":["27596454"],"raceIds":["27596454.1840"]}

Got Response from Betfair in 207 mS:
null

Also tried sending two null params, same null response

Code:

Endpoint: https://api.betfair.com/exchange/scores/json-rpc/v1

Calling: method ScoresAPING/v1.0/listRaceDetails with args:
{"meetingIds":null,"raceIds":null}

Got Response from Betfair in 155 mS:
null

I used UK race eventIds, so data should be available from BF.

I am probably misunderstanding the not very good spec. page. I wish they would show examples of how to use the commands.
Or maybe even update the API-NG visualiser when they add new stuff.

Can anyone spot anything wrong ? Thanks for any assistance

Regards Geoff

Spaghetti API Logic

$
0
0
Is there any market besides Soccer - Asian Handicap where a selection id doesnt represent a single Market Selection?
It baffles me how a simple rule like a unique selection ID inside a market cannot be applied across all markets. Is it hard to have different selections ID in the Asian Handicap market?

Problem With Sample API-Ng Code

$
0
0
At the top of the sample code I have done this:

class Program
{
private static string Url = "https://api.betfair.com/exchange/betting";


static void Main(string[] args )
{
Array.Resize(ref args, 2);

args[0] = "my app key";
args[1] = "my session key";


//app key and session token are mandatory
if (args.Length < 2)
{
Console.WriteLine("wrong number of arguments");
Environment.Exit(0);
}


The rest of the code is the same.

I keep getting this error:

App Key being used: mykey
Session token being used: mytoken
Using JsonRpcClient

Beginning sample run!


Calling: SportsAPING/v1.0/listEventTypes With args: {"filter":{},"locale":null}

Got Response: null


What am I doing wrong?

Site & API - Planned Maintenance - Wednesday 18th November 06:30 - 07:15 GMT

$
0
0
We’re carrying out some maintenance tomorrow morning which will affect the API & Betfair website.

The work will take place between 06:30-07:15 GMT and for a short period during this time (probably no more than 5 minutes) the API & website will be unavailable.

Apologies in advance for any inconvenience this may cause. Of course we’ll do our best to keep any disruption to a minimum.

Betfair Developer Program

Market Betting Types Clarification

$
0
0
Hi,

Could someone from the BDP clarify the different market betting types please?

https://api.developer.betfair.com/se...ketBettingType

I think i understand the plain and simple ODDS markets, and in my mind they are all ODDS markets in the sense that they have odds in them, just wanted to know what are the others. Thanks

ODDS - All markets with one winner?
LINE - Dont have an idea
RANGE - Dont have an idea
ASIAN_HANDICAP_DOUBLE_LINE - Is this like the football Asian Handicap markets where the handicap is in the selections?
ASIAN_HANDICAP_SINGLE_LINE - Is this the typical +1 market? A handicap market where the handicap is set at the market level.

PS: I know i can test it and check it but as someone smarter than me said "the absence of proof is not the proof of absence".

Place order to test sofware

$
0
0
I am developing software for Betfair.

It is possible to place the order demo for test software ?

In API-NG have "placeOrders".

I need to test opening order by "api-ng" into my software.

Thank's.

How work the BetFair in correspondence bets

$
0
0
In the development of my betfair software have this doubt :

Assuming there is an odd = 2.10 with size = $200.

If the bettor places a stake of $1000, which Betfair will ?

1. Is the $200 and left 'the $800 as unrequited ?

2. There will match the $1000 for not having the size ?

3. It is possible the player control it, ie, whether the order comes fully or partially ?

Thank's

SITE & API - Planned Maintenance - Monday 23rd November 06:30 - 07:15 GMT

$
0
0
We’re carrying out some maintenance on Monday morning which will affect the API & Betfair website.

The work will take place between 06:30-07:15 GMT and for a short period during this time (probably no more than 5 minutes) the API & website will be unavailable.

Apologies in advance for any inconvenience this may cause. Of course we’ll do our best to keep any disruption to a minimum.

Betfair Developer Program

Change to Market Data Request Limits

$
0
0
We rely on 22 points of data per market from the Exchange API. The limits kill us on Saturdays in AUS racing markets as it's not uncommon to have over a dozen active during the afternoon.
Are there any plans to change this?
Wouldn't a dynamic limit based on active markets instead of the 200 point hard limit make sense from both a user and API standpoint?

INVALID_BET_SIZE with MARKET_ON_CLOSE orders

$
0
0
An INVALID_BET_SIZE error is returned when I place MARKET_ON_CLOSE orders.

I am based in the UK, and setting the liability over the 10 minimum.

My JSON looks like this:

Code:

{
    "jsonrpc": "2.0",
    "params": {
        "marketId": "1.121928264",
        "instructions": [
            {
                "handicap": "0",
                "orderType": "MARKET_ON_CLOSE",
                "selectionId": "6886088",
                "side": "LAY",
                "MarketOnCloseOrder": {
                    "liability": 11.0
                },
                "id": 1
            },
            {
                "handicap": "0",
                "orderType": "MARKET_ON_CLOSE",
                "selectionId": "6702589",
                "side": "LAY",
                "MarketOnCloseOrder": {
                    "liability": 11.0
                },
                "id": 1
            }
        ]
    },
    "method": "SportsAPING/v1.0/placeOrders",
    "id": 1
}

The error message is:

Code:

{
    "jsonrpc": "2.0",
    "result": {
        "status": "FAILURE",
        "errorCode": "BET_ACTION_ERROR",
        "instructionReports": [
            {
                "status": "FAILURE",
                "errorCode": "INVALID_BET_SIZE",
                "instruction": {
                    "handicap": 0.0,
                    "marketOnCloseOrder": {},
                    "selectionId": 6886088,
                    "side": "LAY",
                    "orderType": "MARKET_ON_CLOSE"
                }
            },
            {
                "status": "FAILURE",
                "errorCode": "INVALID_BET_SIZE",
                "instruction": {
                    "handicap": 0.0,
                    "marketOnCloseOrder": {},
                    "selectionId": 6702589,
                    "side": "LAY",
                    "orderType": "MARKET_ON_CLOSE"
                }
            }
        ],
        "marketId": "1.121928264"
    },
    "id": 1
}

MarketBook requests

$
0
0
Hi,

Has anyone noticed that marketBook(MB) returned by the API aren't always in the correct order?

example: i have observed the following pattern.
4 consecutive requests: MB1, MB2, MB3, MB4
TradedVolume:
MB1 -> 100GBP
MB2 -> 105GBP
MB3 -> 100GBP
MB4 -> 105GBP

so it looks like the MB3 is wrong...
I can see this pattern on almost every market.
Any idea where it is coming from? Anyone noticed that before?

Thanks

Site & api - planned maintenance - tuesday 24th november 0200 - 08:00 gmt

$
0
0
The work will take place between 02:00 - 08:00 GMT and during this time the site & API will be unavailable. Apologies in advance for any inconvenience this may cause. Of course we’ll do our best to keep any disruption to a minimum.

Betfair Developer Program

controlling the time to place an order

$
0
0
1. Assuming that my software place an order on "Back" trying for a time of 10 seconds, this control of time is made by betfair or my software ?


Thank's

Tutorial Betfair to partially matched order

$
0
0
Since Betfair does not offer the important option of a demo account, perhaps using a mirror server of actual operations, such as testing all returns of partially matched orders?

Imagine having to put real money to test the program, this is hell.

As a suggestion to minimize the problem, create a tutorial, step by step, involving the API.

The software developer needs to test the software.

Or the development of new software for the Betfair platform is not important?

I look back and opinion of you.

Thank's
Viewing all 1639 articles
Browse latest View live


Latest Images