I am trying to emulate this tutorial:
https://github.com/mikecmpbll/betfair/issues/1
Code in tutorial:
client.list_market_book({ marketIds: ["1.118451619"] })
My code:
import betfairlightweight
from betfairlightweight import filters
from betfairlightweight import APIClient
certs_path = r'C:\Users\\Downloads\Python\OpenSSL'
my_username = ""
my_password = ""
my_app_key = ""
trading = betfairlightweight.APIClient(username=my_username, password=my_password, app_key=my_app_key, certs=certs_path)
trading.login()
client = APIClient(my_username, my_password, my_app_key, lightweight=True)
client.list_market_book({marketIds:["1.118451619"]})
AttributeError: 'APIClient' object has no attribute 'list_market_book'
Is the 'client' used in the tutorial, the same as API Client? Where am I going wrong with my code?
https://github.com/mikecmpbll/betfair/issues/1
Code in tutorial:
client.list_market_book({ marketIds: ["1.118451619"] })
My code:
import betfairlightweight
from betfairlightweight import filters
from betfairlightweight import APIClient
certs_path = r'C:\Users\\Downloads\Python\OpenSSL'
my_username = ""
my_password = ""
my_app_key = ""
trading = betfairlightweight.APIClient(username=my_username, password=my_password, app_key=my_app_key, certs=certs_path)
trading.login()
client = APIClient(my_username, my_password, my_app_key, lightweight=True)
client.list_market_book({marketIds:["1.118451619"]})
AttributeError: 'APIClient' object has no attribute 'list_market_book'
Is the 'client' used in the tutorial, the same as API Client? Where am I going wrong with my code?


Comment