question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gate.io creating orders returns "Cannot read properties of undefined (reading 'toString')"

See original GitHub issue

I have a weird error that I only get with instances for the exchange gatio.

Whenever I use exchange.createOrder or createMarketBuyOrder I get this error I can not resolve.

“Cannot read properties of undefined (reading ‘toString’)”

return this.exchange.createMarketBuyOrder( market.symbol, baseAmount )

in this particular example I use ETH/USDT for the “market.symbol” and 0.02 for the baseAmount

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
csidi90commented, Jan 27, 2022

already updated my response. Thank you for this fast feedback. Did not expect an answer already. Cheers

0reactions
kroitorcommented, Jan 27, 2022

So I guess for everything spot related I have to use limit?

Yes, that is correct, with spot markets you have to use limit orders. Closing this for now. Feel free to reopen it or just ask further questions if any.

Read more comments on GitHub >

github_iconTop Results From Across the Web

toString cause Cannot read properties of undefined (reading ...
The Window interface's opener property returns a reference to the window that opened the window, either with open(), or by navigating a link ......
Read more >
Guide - Customer Support & Help Center | Gate.io
How to check order history on Gate.io website: Log in to your Gate.io account. Click "Order" - "Classic Account" - "Spot Orders". Choose...
Read more >
Disabling cannot read property of undefined - GeeksforGeeks
Example 1: In this example, we will create a function that will accept a ... Cannot read properties of undefined (reading 'second_property').
Read more >
JavaScript - Docs - PostHog
Super Properties are properties associated with events that are set once and then sent with every capture call, be it a $pageview, an ......
Read more >
Uncaught TypeError: Cannot read property of undefined
If you get undefined error, you need to make sure that which ever variables throws undefined error, is assigned a value to it....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found