How to know if this.advice('long');'wass succeful - Printable Version +- Gekko Forum (https://forum.gekko.wizb.it) +-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html) +--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html) +--- Thread: How to know if this.advice('long');'wass succeful (/thread-56733.html) |
How to know if this.advice('long');'wass succeful - bitvars - 04-11-2018 Hi, I what to know if it's possible to check for result after this.advice call. I need to realize if buy or sell was successful or not in order make decisions. For example if bot calls this.advice and buy fails because lack of currency, keeping trying to buy later but no to sell because can't get any asset. Thanks in advance. RE: How to know if this.advice('long');'wass succeful - crypto49er - 04-26-2018 This is only possible if the API for your exchange provides this information. I don't think most do but I could be wrong. RE: How to know if this.advice('long');'wass succeful - susitronix - 04-27-2018 Hi i found this very usefull article but did not used it jet Gryphons answer You're looking for this.settings.asset, this.settings.currency and this.settings.exchange In use at line 32 of this 'strategy' I did simply to write candles to a csv. RE: How to know if this.advice('long');'wass succeful - bitvars - 04-30-2018 (04-27-2018, 01:01 PM)susitronix Wrote: Hi I think this.settings.xxxx are values you pass to gekko but not gekko state variables. I need to check mainly the actual currency available. I want execute this.advice('long'); only if there are enought money. RE: How to know if this.advice('long');'wass succeful - susitronix - 06-16-2018 hi i check my trading history on the exchange to see if it does and what |