How to know if this.advice('long');'wass succeful
#1
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.
  Reply
#2
This is only possible if the API for your exchange provides this information. I don't think most do but I could be wrong.
If it isn't crypto, it isn't worth mining, it isn't worth speculating.
https://www.youtube.com/c/crypto49er
  Reply
#3
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 [Image: smile.png]

In use at line 32 of this 'strategy' I did simply to write candles to a csv.
  Reply
#4
(04-27-2018, 01:01 PM)susitronix Wrote: 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 [Image: smile.png]

In use at line 32 of this 'strategy' I did simply to write candles to a csv.

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.
  Reply
#5
hi
i check my trading history on the exchange to see if it does and what
  Reply


Forum Jump:


Users browsing this thread: