Dear all users, we are pleased to announced that ALGOGENE cloud environment now supports calling app functions from ALGOGENE App Store.
As an example, suppose we are interested to use the Fourier Predictor as an indicator for trade decision making.
First of all, we need to create our API key. If you haven't done so, you can simply create from [Settings] > [User Profile] > [System Info]
Next, according to the app's technical implementation,
- Endpoint is https://algogene.com/rest/v1/bot/15/fourier.predict
- 3 input parameters
Then, the app function can be initiated under "def start" as follows.
From self.evt.app_init(), we specify the app's endpoint and our API key information. Here, we name the app function variable as "self.app1".
After that, we can call the app function in the backtest or live script using "self.evt.app_call()".
Refer to line #20-21 below,
- the first input is the app function variable
- the second input is the parameter set required for the app
Running above backtest script, we can get the result from 'console' section.
See, we can successfully get the expected JSON result as mentioned in the technical document!
Now, you know how to call an app function in your strategy script. It might provides new investment insights and indicators for improving your strategy performance! Time to try it yourself now!
Happy Trading! :)