Comments (6)
Going to fix the latter on 0.9.4, which will have your pull request as well (thanks)
The cert property currently makes things easier by assuming you have your certs in a folder so all you have to do is provide a directory instead.
from betfair.
I see. I tried it again but it seems to fail because my folder has crt
, crs
, key
, and pem
files in it. Also to point to the correct directory (../certs/
) I need to pass certs
, since BaseClient
expects the path relative to the parent directory.
It's easy to work around (made a folder with just crt and key files, passed different path as certs), but I found it confusing.
Maybe you can add two kwargs to the constructor, certs
and certs_dir
. Certs would be a list or tuple like for requests, but if the users passes certs_dir
then you lookup the certs in the directory and set the certs property to them. (I'm happy to send a PR for this)
from betfair.
I worked a possible solution in my fork. If you like it I can open a PR for it too.
from betfair.
You able to open a PR and I will have a look my side, thanks.
from betfair.
All working my side so have pushed 0.9.4 to master, thanks!
from betfair.
It might be worth explaining the certs vs. cert_files difference somewhere. I got confused with how the parameters are used (i.e. I was passing certs='certs/' instead of certs='parentdir/certs') and I was also confused with what type of certificate format is required (I was actually using .pem files, and not .key and .crt files).
Burned a good 20 minutes looking at the code to work this out. :)
from betfair.
Related Issues (20)
- Betfair Exchange - Change of Minimum Stake - Multiple Currencies - 28th March 2022
- Max retries exceeded with url
- Batb odds not displaying when streaming HOT 2
- market_definition returns None HOT 3
- Add "modified" field to CricketIncident message
- get_account_statement missing 1 required positional argument: 'fullMarketName' HOT 1
- Question about JSON conversion HOT 1
- Cricket Scores API - New Release - Tuesday 25th October
- Streaming market book total_matched is different from polled total_matched HOT 1
- Serializing and Deserializing MarketBook to/from JSON loses market_definition
- No exchange prices available issues
- SSLV3_ALERT_HANDSHAKE_FAILURE HOT 1
- Session management on azure HOT 2
- Flumine seems stuck in orderstream handle_output HOT 2
- betfairlightweight.exceptions.SocketError: [Connect: 2]: Connection closed by server HOT 1
- Cancel Order single bet
- `ssl.wrap_socket` removed in python 3.12 HOT 3
- Add option to request 'additional data' on the getmarketcatalogue endpoint HOT 2
- [Feature Request] get additional data such as "broadcasts" and "matchInfo" of events returned in in_play_service
- I can see more event types(sports) on the Betfair official website when compared to the Betfair APIs. Is there any reason for this? HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betfair.