将get_account_funds与betfair.py包一起使用

时间:2015-11-07 00:20:44

标签: python json betfair

我正在尝试在https://github.com/jmcarp/betfair.py提供的betfair.py包中使用get_account_funds方法。在自述文件中,有一个使用list_event_types方法的示例代码,这对我来说非常好,所以我的身份验证运行正常。但是,当我尝试:

from betfair.models import AccountFundsResponse
client.get_account_funds()

一堆错误被抛出,以ApiError结尾:UNKNOWN。有谁知道如何克服这个错误?顶线错误似乎与:

    121     self = args[0]
    122     if self.session_token:
--> 123         return func(*args, **kwargs)
    124     raise exceptions.NotLoggedIn()

其次是:

    454             'getAccountFunds',
    455             utils.get_kwargs(locals()),
--> 456             model=models.AccountFundsResponse,
    457         )

1 个答案:

答案 0 :(得分:0)

必发交换API由不同类型的API组成(例如:投注API和账户API)。每个API使用不同的端点。

Betting API endpoint

Account API endpoint

可以使用Account API访问getAccountFunds方法。

尝试更改端点。