I\'ve looked around at some of the solutions to this problem but they don\'t seem to be the same as what I\'m experiencing.
Method that I\'m trying to call:
Declare an instance of the CBetfairAPI class or make it static.
There are two cases in which this error is raised.
placeBets(betList, stakeAmt)
is an instance method not a static method. You need to create an instance of CBetfairAPI
first:
MyBetfair api = new MyBetfair();
ArrayList bets = api.placeBets(betList, stakeAmt);