tiagosiebler / ftx-api

Node.js connector for the FTX.com & FTX.us APIs and WebSockets, with TypeScript & browser support.
https://www.npmjs.com/package/ftx-api
MIT License
123 stars 47 forks source link

Unauthorized on cancelOrder #31

Closed slpn1 closed 3 years ago

slpn1 commented 3 years ago

Hi,

I'm getting a 401 Unauthorized, 'Not logged in' message on cancelOrder. I'm able to retrieve and place orders with no issue. I am connected to a subaccount. Thanks.

async cancelOrder(id: number): Promise<boolean> { let response = await this.client.cancelOrder(id.toString()); return response.success; }

slpn1 commented 3 years ago

Sorry, thought I had pulled latest