Announcement

Collapse
No announcement yet.

'APIClient' object has no attribute 'list_market_book'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 'APIClient' object has no attribute 'list_market_book'

    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?

  • #2
    You are using python (betfairlightweight) but looking at a non related ruby client issue.

    See here:

    https://liampauling.github.io/betfair/quickstart/#data

    Feel free to join the slack group as you will get a much quicker response in any other issues:

    https://betfairlightweight.herokuapp.com/

    Comment

    Working...
    X