-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Google Sheets API #1627
Comments
use three back ticks at the start and end of your code |
OK. So I found a work around. I was able to get it to work with synchronous code, which is definitely less than ideal for making server to server requests. But I noticed that other async code doesn't work in a strategy, for example: global.setTimeout() doesn't work, nor does anything from the require('request') library <= heart of my problem. Anything async just fails silently... My work around was annoying, but seems solid. Is this expected behavior for gekko? or did I configure something incorrectly? |
Why don't you open a Pull Request? This sounds really useful. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me. |
I was hoping to be able to send data from my strategy to google sheet, using the google sheets api. This will allow me to do a lot more analysing in the backtesting process. It will also allow me to keep a more accessible record of what's going on during live trading. I really want this.
I have this code working independently, that is, it will work and successfully write to a google spreadsheet using a service account when I run
node googleSheets.js
No matter what I do, it won't work running it from the strategy. I'd like to be able to call this from
.end in the trading strategy like this:
Even if I paste the code directly into the file. I get no errors, no response at all. It's like Gekko is selectively not running the code from
sheets.spreadsheets.values
onward
What am I missing? Am I asking too much of gekko's trading strategy module? or is there something wrong with my code? I could take a stab at making a google sheets plugin, but it's probably a stretch for me.
(sorry about the formatting, I can't get github to work like I want)
EDITED: Fixed the formatting, thanks for the tip!
The text was updated successfully, but these errors were encountered: