If we want to know the various market names that there are for a particular event, as well as how much has been matched on each market, we want to request data from the listMarketCatalogue operation.
We must also specify the maximum number of results, and if we want additional data like the event data or runner data, we can also request that.
For a more comprehensive understanding of the options for filters and what we can request, please have a look at the Sports API Visualiser. The options listed under market filter should be put into a filter, whilst the others should be arguments to the relevant operation function in betfairlightweight. For example, if we want all the markets for Moonee Valley, we should use the following filters and arguments. We will need to define a function which processes the runner books and collates the data into a DataFrame.
Now that we have the market book in an easy to read DataFrame, we can go ahead and start placing orders based on the market book.
How do I set a new and secure password?
Although it is a simple and probably not profitable strategy, in the next few sections we will be backing the favourite and adjusting our orders. To place an order we use the placeOrders operation. A handy component of placeOrders is that you can send your strategy along with the runner that you want to back, so it is extremely easy to analyse how your strategy performed later.
Note that if you are placing a limit order you must specify a price which is allowed by Betfair. For example, the price 6. You can read about tick points here.
To get our current orders, we need to use the listCurrentOrders operation. We can then use either the bet id, the market id, or the bet strategy to filter our orders. To do this, we will use the cancelOrders operation.
What are Betfair's contact details?
If you pass in a market ID it will cancel all orders for that specific market ID, like you can do on the website. If we want to go back and look at past orders we have made, there are two main operations for this:. Why use trusted devices?
By limiting the access to your account solely to a list of known devices you only need to login with your username and password. This removes the need to go through the two-step verification code on every login without compromising your account security provided by the two-step authentication login.
How to use trusted devices? Once you login successfully, the device will be added to the approved devices lists. It is as simple as that. How to un-trust a device? Old trusted devices will be instantly forgotten and will need to be re-verified at next login.
Which Betfair products do not explicitly ask for a verification code? In addition to some third party products, the following Betfair products will require you to append the Google Authenticator code to the end of your password in the password field to successfully login. Which 3rd-Party products do not support Two-Step Authentication?
Using the approach described above, in most cases will allow you to successfully log in to 3rd-Party products with two-Step Authentication. However the following products are known not support the current technical approach and should not be used in conjunction with two-Step Authentication. This is because the automated software does not have the ability to submit the one time verification code provided by Google Authenticator.
In order to find data for specific markets, you will first need to know the event ID. This is easily achieved with the abettor package.
Once you have the event ID, the next logical step is to find the competition IDs for the event you want to get data for. For example, if you want to find the competition IDs for Australian Rules, you would use the following.
The next logical step is to find the market that you are interested in.