Grabbed the CurrentLines for Pinnacle (MLB, sometime in June 2019) and it worked fine with sb.ids('Pinnacle'):
closemoneylines = CurrentLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle'))
Tried the same thing with 'OpeningLines' instead of 'CurrentLines' and I got the following error:
TypeError: Expected <class 'int'>, got [20]
I checked and saw Pinnacle's ID was 20, so I just indexed sb.ids('Pinnacle') as shown below:
openmoneylines = OpeningLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle')[0])
Not a big deal but just wanted to point it out in case anyone runs into this issue! Maybe I'm doing something wrong too haha
Grabbed the CurrentLines for Pinnacle (MLB, sometime in June 2019) and it worked fine with
sb.ids('Pinnacle')
:closemoneylines = CurrentLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle'))
Tried the same thing with 'OpeningLines' instead of 'CurrentLines' and I got the following error:
TypeError: Expected <class 'int'>, got [20]
I checked and saw Pinnacle's ID was 20, so I just indexed
sb.ids('Pinnacle')
as shown below:openmoneylines = OpeningLines(e.ids(),mlb.market_ids(['moneyline']),sb.ids('Pinnacle')[0])
Not a big deal but just wanted to point it out in case anyone runs into this issue! Maybe I'm doing something wrong too haha