Posted By: NorbertSz
Pass vaiables with AssetList and AccountList - 09/07/22 07:24
Hello,
Is there a way to pass variables/arguments to the script, defined in AccountList and AssetList?
AccountList example:
I need to get some data from Binance API but only if I trade on Binance. I could do this way:
but if I don't have "binance" in the account name, I can't do that.
In the same way, it would be great if I could pass variables which are avaliable with the selected Asset.
AssetList example:
For example I don't want to analyze something with EURUSD: I check the "analyzeSomeStuff" argument (defined by the AssetList csv for example in a new column), and find out it's 0. But if the Asset is AUDUSD, in the "analyzeSomeStuff" column the value is 1.
Thank you!
Is there a way to pass variables/arguments to the script, defined in AccountList and AssetList?
AccountList example:
I need to get some data from Binance API but only if I trade on Binance. I could do this way:
Code
if (strstr(Account, "binance"){...}
but if I don't have "binance" in the account name, I can't do that.
In the same way, it would be great if I could pass variables which are avaliable with the selected Asset.
AssetList example:
For example I don't want to analyze something with EURUSD: I check the "analyzeSomeStuff" argument (defined by the AssetList csv for example in a new column), and find out it's 0. But if the Asset is AUDUSD, in the "analyzeSomeStuff" column the value is 1.
Thank you!