You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.
* GDAXExchangeAPI: remove type unnecessary type assertion.
The type assertion is no longer necessary after gdax@0.7.0 was
released which includes coinbase/coinbase-pro-node#269 .
* Run `yarn upgrade gdax@0.7.0`.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It is possible to post an order where the
status
is'rejected'
, see the sample code in coinbase/coinbase-pro-trading-toolkit#149 .The simple fix in gdax-tt:
- if ((result as any).message) {
+ if (result.status === 'rejected' || (result as any).message) {
generates this error message:
src/exchanges/gdax/GDAXExchangeAPI.ts(255,17): error TS2365: Operator '===' cannot be applied to types '"open" | "pending" | "received" | "done"' and '"rejected"'.
So
gdax/index.d.ts
needs to be updated.The text was updated successfully, but these errors were encountered: