AlgoTrader / betfair

Betfair API-NG library for node.js
96 stars 46 forks source link

Error on ListMarketBook #14

Open PaulGrimshaw opened 8 years ago

PaulGrimshaw commented 8 years ago

Unless I comment out the emulator call, I get an error on the line below:

    // listMarketBook post-processing
    // orderProjection and matchedProjection are filled by emulator
    // for all the markets in bet emulation mode
    if (self.method === "listMarketBook" && self.isSuccess) {
       //ERROR ON LINE BELOW
       // emulator.onListMarketBook(self.response.result);
    }

I am not using any form of emulation mode.

I fixed this in this commit, but as I haven't worked with the emulation, I'm not sure this is correct:

https://github.com/PaulGrimshaw/betfair/commit/0682bfca26715b0f9fb7492b6f00c9bcbdcccf33

adilatilgan commented 8 years ago

+1 you should comment it otherwise you got an error

AlexanderTserkovniy commented 8 years ago

Please consider my pull request, it fixes this issue.