Streaming Example

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aye robot
    Junior Member
    • Jun 2015
    • 12

    #16
    Liam,

    Thanks for posting your library - it's a really helpful thing to do.

    If I might ask - why is the app key held in an environment variable? Can't I just load it in from a file like I do the certs?

    Mike

    Comment

    • LiamP
      Junior Member
      • Oct 2015
      • 284

      #17
      Hi Mike,

      Yep:

      Code:
      trading = betfairlightweight.APIClient('username', 'password', app_key='app_key')
      However its good practise to keep secrets in environment variables for security and handy when you change a password.

      Comment

      • aye robot
        Junior Member
        • Jun 2015
        • 12

        #18
        Thanks Liam, I'm just working through understanding the streaming API and porting my robots over to it now so chances are I'll be back with more questions.

        I'm a rubbish programmer so I'm really glad to have your library to work with, it's a massive head start and I really appreciate that you've made it available.

        As far as the streaming API goes I'm surprised to see that it actually seems quite simple.

        Comment

        Working...
        X