API to receive streamed updates. This is an ssl socket connection of CRLF delimited json messages (see RequestMessage & ResponseMessage)
This Python package is automatically generated by the Swagger Codegen project:
- API version: 1.0.1423
- Package version: 1.0.0
- Build date: 2018-10-31T16:36:31.242+11:00
- Build package: class io.swagger.codegen.languages.PythonClientCodegen For more information, please visit https://developer.betfair.com/support/
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import swagger_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import swagger_client
Please follow the installation procedure and then run the following:
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.DefaultApi
request_message = swagger_client.AllRequestTypesExample() # AllRequestTypesExample | Requests are sent to socket
try:
api_response = api_instance.request_post(request_message)
pprint(api_response)
except ApiException as e:
print "Exception when calling DefaultApi->request_post: %s\n" % e
All URIs are relative to http://stream-api.betfair.com:443/api
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | request_post | POST /request |
- AllRequestTypesExample
- AllResponseTypesExample
- AuthenticationMessage
- ConnectionMessage
- HeartbeatMessage
- KeyLineDefinition
- KeyLineSelection
- MarketChange
- MarketChangeMessage
- MarketDataFilter
- MarketDefinition
- MarketFilter
- MarketSubscriptionMessage
- Order
- OrderChangeMessage
- OrderFilter
- OrderMarketChange
- OrderRunnerChange
- OrderSubscriptionMessage
- PriceLadderDefinition
- RequestMessage
- ResponseMessage
- RunnerChange
- RunnerDefinition
- StatusMessage
- StrategyMatchChange
All endpoints do not require authorization.