Skip to content

Market Data example fails #5

@cryptal

Description

@cryptal

Running node v0.10.4 and microtime 0.3.3. Checked out the code.

$ npm examples/market_data.js

~/trader.nodejs/lib/books/mtgox_rest.js:45
    maybe_update(0, bid, book.bids[book.bids.length - 1]);
                                            ^
TypeError: Cannot read property 'length' of undefined
    at process_new_book (/home/dan/trader.nodejs/lib/books/mtgox_rest.js:45:49)
    at IncomingMessage.<anonymous> (/home/dan/trader.nodejs/lib/books/mtgox_rest.js:68:17)
    at IncomingMessage.EventEmitter.emit (events.js:117:20)
    at _stream_readable.js:883:14
    at process._tickCallback (node.js:415:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions