Skip to content

Reference error? #4

Description

@Onkovat

Hello,

I set it up on windows, then ran npm install in the directory and it downloaded all the needed libraries.

Then it claimed there wer securits risks and I ran npm audit fix.

Then node deribit.js where I just entered the api details from test.deribit.

Then I receive this error:

`C:\Users\admin\Desktop\marketmaker-master>node deribit.js
C:\Users\admin\Desktop\marketmaker-master\deribit.js:114
doc.useServiceAccountAuth(creds, step);
^

ReferenceError: doc is not defined
at setAuth (C:\Users\admin\Desktop\marketmaker-master\deribit.js:114:9)
at C:\Users\admin\Desktop\marketmaker-master\node_modules\async\lib\async.js:718:13
at iterate (C:\Users\admin\Desktop\marketmaker-master\node_modules\async\lib\async.js:262:13)
at async.forEachOfSeries.async.eachOfSeries (C:\Users\admin\Desktop\marketmaker-master\node_modules\async\lib\async.js:281:9)
at _parallel (C:\Users\admin\Desktop\marketmaker-master\node_modules\async\lib\async.js:717:9)
at Object.async.series (C:\Users\admin\Desktop\marketmaker-master\node_modules\async\lib\async.js:739:9)
at Object. (C:\Users\admin\Desktop\marketmaker-master\deribit.js:110:7)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)

C:\Users\admin\Desktop\marketmaker-master>`

Does anyone know how to fix this?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions