Commit e29140b
OpenCoderX
use correct account status path if the tld is .us, add param for version in Client.get_account_status
The paths for the .com and .us account status endpoints have diverged. We now check the tld configured in the Client and use path 'accountStatus' if the tld is .us. We also allow the caller to pass an api version, which defaults to 1 if not passed. This leaves the functionality the same for traders lucky enough to interact with the .com api.1 parent e974c34 commit e29140b
1 file changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2251 | 2251 | | |
2252 | 2252 | | |
2253 | 2253 | | |
2254 | | - | |
| 2254 | + | |
2255 | 2255 | | |
2256 | 2256 | | |
2257 | 2257 | | |
2258 | | - | |
| 2258 | + | |
| 2259 | + | |
2259 | 2260 | | |
2260 | 2261 | | |
2261 | 2262 | | |
| |||
2268 | 2269 | | |
2269 | 2270 | | |
2270 | 2271 | | |
2271 | | - | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
2272 | 2277 | | |
2273 | 2278 | | |
2274 | 2279 | | |
| |||
0 commit comments