2015-11-07 112 views
0

我想在https://github.com/jmcarp/betfair.py的betfair.py包中使用get_account_funds方法。在自述中,有一些使用list_event_types方法的代码,这对我来说是完美的,所以我的身份验证运行良好。然而,当我尝试:将get_account_funds和betfair.py包一起使用

from betfair.models import AccountFundsResponse 
client.get_account_funds() 

错误一束抛出起来,用ApiError中结束:UNKNOWN.Does人知道如何克服这种错误?背线错误似乎是:

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  ) 

回答

0

必发交易所API由不同类型的API的(例如:投注API和帐户API)。每个API使用不同的端点。

Betting API endpoint

Account API endpoint

getAccountFunds方法可使用账户API是访问。

尝试更改端点。