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

ListMarketBook - missing prices

$
0
0
I've noticed that the data returned from ListMarketBook will sometimes have no data in the 'AvailableToLay' section for some soccer match odds markets. It just returns an open and close square bracket where the prices should be. I can understand this being the case where there are no prices available to lay but this is happening on markets that have a full quota of lay prices. Has anyone else noticed this?

For example, Belgium v Russia on 22nd June is returning no lay prices for the home win....

Navigation data for applications (Beta)

$
0
0
What is this? any documentation?

API Status

$
0
0
Is there anywhere we can go to check the status of the API NG?

I've been finding a bunch of errors when trying to access racing market ID's recently and am just getting NULL fields returning. It would indicate there's an issue on the API but I can't find anywhere to get that information.

Thanks

Michael

Problem with my request?

$
0
0
Can anyone see anything wrong with this request to place a bet?

{
"jsonrpc": "2.0",
"method": "SportsAPING/v1.0/placeOrders",
"params": {
"marketId": "1.114408479",
"instructions": {
"selectionId": "8506230",
"handicap": "0",
"side": "LAY",
"orderType": "LIMIT",
"limitOrder": {
"size": "2",
"price": "1.2",
"persistenceType": "LAPSE"
}
}
},
"id": 1
}

I am getting the following response...

{
u'jsonrpc': u'2.0',
u'id': 1,
u'error': {
u'message': u'DSC-0018',
u'code': -32602
}
}

Thanks

.NET api-ng library

$
0
0
Hi all,

I took the C# sample code, extended it a lot (it covers most of the API, minus the vendor stuff right now) and wrapped it in a TPL/Reactive Extensions concurrency model. You have the choice of using just the BetfairClient class to hit the api-ng endpoints, or a Rx.NET subscription model through the MarketListener class.

Library here on Github: https://github.com/joelpob/betfairng

It looks like api-ng will be moving to a pub/sub reactive model (http://forum.bdp.betfair.com/showthr...lish+subscribe), and using MarketListener will set you up very nicely for that.

Happy to take pull requests.

Enjoy.

Error when placing bet: DSC-0018 / -32602

$
0
0
Hello,

I'm using Python and API-NG to place a bet using the below request, but even though response is 200 (OK), the response text is:

response text: {"jsonrpc":"2.0","error":{"code":-32602,"message":"DSC-0018"},"id":1}

and, of course, my bet isn't placed.

This is my request:

'{"method": "SportsAPING/v1.0/placeOrders", "params": {"customerRef": "bbeeOrder", "instructions": {"1.112173851": [{"limitOrder": {"price": "1.37", "size": "2.0", "persistenceType": "LAPSE"}, "selectionId": "18", "side": "BACK", "orderType": "LIMIT"}]}, "marketId": "1.112173851"}, "jsonrpc": "2.0", "id": 1}'


Can you please tell me what am I doing wrong ?

Thanks in advance.
M.

Wimbledon Mens Match odds

$
0
0
Does anyone know how to retrieve Wimbledon match odds for Men's singles only?

I can only find everything (mens/womens/doubles) grouped under CompetitionId 3521911,CompetitionName "Wimbledon 2014". How can I get the data separated?

problems with Rest API?

$
0
0
Hello,

Anyone else having problems with the rest api? I'm just getting started and my attempts to call "listEventTypes" on the rest api seem to fail with error DSC-0021.

Using jsonrpc seems to work ok.

Thanks,
Ryan

Problem with java sample

$
0
0
Hi,

I have executed the Java Json RPC sample for ApiNG. It is running, but I do not get runner Information with listMarketCatalogue, although the sample adds RUNNER_DESCRIPTION to the marketProjection. I wonder why the sample does not add any Information from marketProjection to the params of the request. Is this correct? Did someone get runner Information with the Java sample?

Thanks for any hint.

Simon

CancelInstructionReport.sizeCancelled: "Required" but absent

$
0
0
According to the API, the "sizeCancelled" field in CancelInstructionReport is "Required", but it's not always supplied (e.g. when the cancel fails):

Code:

{
    "status": "FAILURE",
    "errorCode": "BET_ACTION_ERROR",
    "marketId": "1.114434417",
    "instructionReports": [
        {
            "status": "FAILURE",
            "errorCode": "BET_TAKEN_OR_LAPSED",
            "instruction": {
                "betId": "38722401489"
            }
        }
    ]
}

Similarly, CurrentOrderSummary.matchedDate is marked as "required", but it's also sometimes absent (i.e. when the order hasn't been matched!)

Cant connect to api.betfair.com

$
0
0
Hi

Anyone getting the above error messages yesterday and today. My code is not new code and has been working fine but this morning it has been problematic with the error message as is title of this thread

API crashing today ?

$
0
0
After weeks of no problems the API seems flakey today. Both the old API and NG have gone down at this end. Anyone else had problems

cancelOrders and sizeReduction

$
0
0
When I try to reduce the size of a bet via cancelOrder, it seems that the minimum allowed value for sizeReduction is 2.
When trying to reduce the size of a bet by less than 2, e.g. from 10 to 9 (i.e. sizeReduction=1), it fails with an INVALID_BET_SIZE error. Reducing from 10 to 8 (sizeReduction=2) works.
Is this a bug or the new supposed behaviour? I suppose it should be a bug because I can reduce the bet size by any amount via the web site and the old API as long as the reduced size remains above the minimum stake of 2.

Need to Build Excel Trigger

$
0
0
Hi Folks,
I am on the lookout for someone who can build an excel trigger sheet that can integrate with a bot to trigger bets under certain conditions. I have BetBotPro, BetAngel etc and am happy to use any of them. Anyone have any recommendations? Cheers!

C# cert_auth_required

$
0
0
Hello, Support,
please advise me:
use follow code on c# to login in betfair but got error CERT_AUTH_REQUIRED. Where is my bug?
Thanks



try
{
const string postData = "username=myusername&password=mypassw";
System.Security.Cryptography.X509Certificates.X509 Certificate2 x509certificate = new System.Security.Cryptography.X509Certificates.X509 Certificate2("C:\\OpenSSL-Win32\\bin\\client-2048.pem", "xxxx"); //------ where xxxx - password was mentioned in process of ssl-key generation
/*
Country Name (2 letter code) [AU]:GB
State or Province Name (full name) [Some-State]:London
Locality Name (eg, city) []:London
Organization Name (eg, company) [Internet Widgits Pty Ltd]:myname
Organizational Unit Name (eg, section) []:trader
Common Name (e.g. server FQDN or YOUR name) []:myname
Email Address []:myemail@myemail.com

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:xxxx
An optional company name []:myname

*/

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://identitysso-api.betfair.com/api/certlogin");
request.UseDefaultCredentials = true;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.Headers.Add("X-Application", appkey);
request.ClientCertificates.Add(x509certificate);
request.Accept = "*/*";
request.Proxy = null;
using (Stream stream = request.GetRequestStream())
{
using (StreamWriter writer = new StreamWriter(stream, Encoding.Default))
{
writer.Write(postData);
}
}
using (Stream stream = ((HttpWebResponse)request.GetResponse()).GetRespon seStream())
{
using (StreamReader reader = new StreamReader(stream, Encoding.Default))
{
var jsonResponse = Newtonsoft.Json.JsonConvert.DeserializeObject<Logi nResponse>(reader.ReadToEnd());
if (jsonResponse.loginStatus == "SUCCESS")
{
//saveSession(jsonResponse.sessionToken);
bool loginSucceeded = true;
}
else
{
System.Media.SystemSounds.Exclamation.Play();
}
}
}
}
catch (System.Exception ex)
{
System.Media.SystemSounds.Exclamation.Play();
//MessageBox.Show(ex.ToString(), "Login ERROR");
}

Storing username and password

$
0
0
Is there some problem ask permission and save users login on server side to place bets using the API when needed?

Very low volume with out of line price...

$
0
0
I used to notice this occasionally with the old API and ignored it. I would have thought that the new API would address it but obviously not.

Occasionally in a saved timeseries I will see a big peak or trough in a chart. Looking at the figures in a spreadsheet I will see very low volume in the order of pennies at a price that could not have been had in the market.

For example the market my be trending around 3 but you will see that 5.2 was matched for 12p. There is no way that the price could have been matched because there are other prices above and below it. For the same reason it can't be someone greening.

Has anoyone else noticed this and knows what the answer is?

Thanks.

Cancel bet -32602 error

$
0
0
Hello all,
can anybody explain what mandatory parameter is missing or what is problem in parsing in next request:
Calling: SportsAPING/v1.0/cancelOrders With args: {"marketId":"1.114507325","in
tructions":[{"betid":"38923293567","sizeReduction":"5"}],"customerRef":"123456"
"locale":"null"}

Response: "{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32602,\"message\":\"DSC-0018\"},\"id\":1}"

Thank you for advising.

Erroneous Price Data

$
0
0
I can't believe it but on a project I have captured erroneous price data

In particular as a Soccer match nears the end of the game, the last few minutes, I am getting a price of 1.02 for 168.77 in the price data returned by GetMarketPricesCompressed

Has anyone else seen this or am I going bonkers once again?

It happens consistently toward the end of a Soccer match. I haven’t seen this in Horse Racing or Golf.

Here’s the price string.

'114453892~AUD~ACTIVE~8~1~~true~5.0~1404607307960~ ~N:1~1~696.6~40.0~~~false~~~~|100.0~14.51~L~1~22.0 ~6.55~L~2~1.02~168.77~L~3~|:4~2~7.33~15.0~~~false~ ~~~|100.0~14.51~L~1~1.02~168.77~L~2~|:9~3~0.0~~~~f alse~~~~|100.0~14.51~L~1~1.02~168.77~L~2~|:16~4~7. 8~38.0~~~false~~~~|100.0~14.51~L~1~1.02~168.77~L~2 ~|:2~5~73.77~26.0~~~false~~~~|100.0~14.51~L~1~1.02 ~168.77~L~2~|:3~6~36.32~100.0~~~false~~~~|100.0~10 .25~L~1~34.0~3.7~L~2~1.02~168.77~L~3~|:8~7~228.91~ 16.0~~~false~~~~|16.0~70.09~L~1~15.5~54.06~L~2~15. 0~50.81~L~3~|18.0~24.8~B~1~18.5~21.99~B~2~20.0~82. 13~B~3~:15~8~167.05~8.6~~~false~~~~|8.6~121.19~L~1 ~8.4~105.94~L~2~8.2~100.17~L~3~|10.5~103.58~B~1~12 .0~65.33~B~2~12.5~27.8~B~3~:5~9~7.33~19.5~~~false~ ~~~|100.0~14.51~L~1~1.02~168.77~L~2~|:6~10~21.95~2 7.0~~~false~~~~|100.0~14.51~L~1~1.02~168.77~L~2~|: 7~11~20.45~10.0~~~false~~~~|13.0~65.33~L~1~12.5~62 .42~L~2~11.5~68.23~L~3~|21.0~115.63~B~1~23.0~31.94 ~B~2~:14~12~48.12~10.5~~~false~~~~|8.0~111.99~L~1~ 7.8~32.68~L~2~7.6~108.88~L~3~|10.5~8.07~B~1~11.0~7 3.17~B~2~11.5~68.23~B~3~:10~13~0.0~~~~false~~~~|10 0.0~14.51~L~1~1.02~168.77~L~2~|:11~14~5.79~25.0~~~ false~~~~|100.0~14.51~L~1~1.02~168.77~L~2~|:12~15~ 7.33~29.0~~~false~~~~|28.0~29.03~L~1~25.0~29.03~L~ 2~22.0~33.39~L~3~|55.0~19.89~B~1~60.0~11.61~B~2~:1 3~16~134.43~24.0~~~false~~~~|14.5~105.4~L~1~14.0~6 0.31~L~2~12.5~62.42~L~3~|23.0~31.94~B~1~25.0~29.03 ~B~2~:4506345~17~579.54~1.81~~~false~~~~|1.64~73.1 7~L~1~1.63~189.58~L~2~1.6~101.73~L~3~|1.84~46.45~B ~1~1.85~885.73~B~2~1.93~160.41~B~3~'

I know that the API 6 is discontinued, but this problem shouldn’t be there.

Anyone?

Getting account balance/available to bet

$
0
0
Hi. I'm trying to get my acc balance. Can someone tell me what is wrong with my request?

{"jsonrpc": "2.0", "method": "AccountAPING/v1.0/getAccountFunds"}

I'm getting the following response:

{u'jsonrpc': u'2.0', u'error': {u'message': u'DSC-0021', u'code': -32601}}

Thanks
Viewing all 1639 articles
Browse latest View live


Latest Images