rapmd73 / JackrabbitRelay

Jackrabbit Relay is an API endpoint for cryptocurrency/forex exchanges.
https://rapmd.net
GNU Lesser General Public License v2.1
87 stars 20 forks source link

Being able to use Tradingview strategies with JRR #15

Closed Me4tGrind3r closed 2 years ago

Me4tGrind3r commented 2 years ago

I would like to request the feature that JRR can reviece signals from TV when using strategies. The TV strategy may send in it's webhook payload: "Exchange":"ftx","Market":"Future","Account":"003sniperatrmacdma","Action":"{{strategy.order.action}}","Asset":"BTC/USD:USD","Base":"{{strategy.order.contracts}}" }

{{strategy.order.action}} = buy or sell {{strategy.order.contracts}} = amount to buys or sell as Base value ( 0.00001 BC)

The strategy itself will long/short; stop loss; multi take profit etc. and the strategy properties (Initial capital; Base currency; Order size settings) will be used internaly for these calculations.

All what JRR will recieve in the final payload is buy/sell from the {{strategy.order.action}} and correct order amount as base value from {{strategy.order.contracts}} (Settings on TV strategy in USD will result in the correct signal for base amount automatically right now)

I "think" what would be the final request is:

rapmd73 commented 2 years ago

This should be functional. Please retest with the TVstrategy item set to yes.

Something like thin you your payload:

"TVstrategy":"Yes",

Pleaswe be sure to also use,

"RemapSymbol":"Yes",

to remap the ticker macro to your proper ecxhange ID.

Thenk you.

Me4tGrind3r commented 2 years ago

It is working flawlessly, Thank you!