Giter VIP home page Giter VIP logo

jackrabbitrelay's Introduction

JackrabbitRelay

Jackrabbit Relay is an API endpoint for stock, forex and cryptocurrency exchanges that accept REST webhooks.

This software is designed to act as an intermediary between TradingView, or any other REST payload generator, and a broker/exchange for stocks, forex, and cryptocurrencies.

All documentation can be found on the Jackrabbit Wiki: https://github.com/rapmd73/JackrabbitRelay/wiki

Please be sure to join my Discord support server: https://discord.gg/6m44mV9

Thank you.

jackrabbitrelay's People

Contributors

leifjones avatar rapmd73 avatar riodda avatar snyk-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jackrabbitrelay's Issues

POST Request from curl not working

I'm trying to sent a post request from curl / Siri Shortcuts. It is not working, I also tried postman and always get no response or timeout. In the Logs of JRR I see completly nothing.

I'm trying the following:

curl -H 'Content-Type: application/json' -d '{"Exchange":"ftx","Market":"Spot","Account":"MAIN","Action":"Buy","Asset":"ETH/USD:USD","Base":"0.01"}' -H "Content-Type: application/json; charset=utf-8" -X POST http://3.4.4.5:80

If I switch to GET, I get directly a feedback from the JRR Server with "NO!"

If I'm using the same Payload:
{"Exchange":"ftx","Market":"Spot","Account":"MAIN","Action":"Buy","Asset":"ETH/USD:USD","Base":"0.01"}

and the IP http://3.4.4.5:80

in an Tradingview alert it is perfectly working.

What is wrong with my command, hopefully you can help me, thanks in advance!

Timo

Ignore first Buy (feature request)

Would be nice to have the bot that in case of no open position on a certain pair will ignore the first buy request, for low number of accumulation strategies it will lower the average price.

Damaged Payload

I am trying to work my way through the install on my VPS. Everytime the alert goes off I keep seeing Damaged Payload. The payload file looks correct. Its happening every time my alter goes off. The identity looks good as well. Can you help point me in the right direction.

2023-04-05 14:17:38.237943 52.32.178.7 Damaged payload: Red circle WaveTrend Overbought

{
"Time":"2023-04-05T14:00:00Z",
"Recipe":"#Momentum #MoneyFlow #RSI",
"Action":"sell",
"Exchange":"kucoin",
"Account":"MAIN",
"Market":"Spot",
"Asset":"DPXUSDT",
"Price":"255.825",
"AvgProfit":"0",
"LProfit":"-95",
"TCycles":"-99",
"CBuys":"60.25034550708317",
"MBCycle":"72.55855852226505",
"TBuys":"-12.308213015181877",

Update Error

I tryed to fetch update but I have received this error:

root@services:/home/JackrabbitRelay# git pull https://github.com/rapmd73/JackrabbitRelay

remote: Enumerating objects: 449, done.
remote: Counting objects: 100% (449/449), done.
remote: Compressing objects: 100% (262/262), done.
remote: Total 422 (delta 328), reused 251 (delta 159), pack-reused 0
Receiving objects: 100% (422/422), 79.29 KiB | 8.81 MiB/s, done.
Resolving deltas: 100% (328/328), completed with 21 local objects.
From https://github.com/rapmd73/JackrabbitRelay
   5110cda..d3d3f77  main       -> origin/main
Updating 5110cda..d3d3f77
error: Your local changes to the following files would be overwritten by merge:
        Base/CCXT-PlaceOrder.future
        Base/CCXT-PlaceOrder.spot
        Base/Library/JRRapi.py
        Base/Library/JRRconfig.py
        Base/Library/JRRlog.py
        Base/Library/JRRsupport.py
Please commit your changes or stash them before you merge.
Aborting

Relative position sizing (Feature Request)

Would be nice to be able to open positions relative to account size.
for FTX that would be the 'availableWithoutBorrow' and Binance that would be 'availableBalance' i would say.

Resultant position size calculated:
Absolute Size: If size=500, then the resultant position size will be $500
Factored Sizing: If size=2x, then the resultant position size will be calculated at double the current account balance.

With the option for a maximum size, some exchanges have a max order-size for specific leverage level and for managing your own risk-appitate.

Example:
FTX futures account has $5000 total collateral.
Factored Sizing 20x, No Maximum size
Results in 20 x 5000 = $100.000

FTX futures account has $5000 total collateral.
Factored Sizing 20x, Maximum size = $50.000
Results in 20 x 5000 = $100.000 -> maximum size triggerd -> $50.000

Binance spot...

It still ain't working and needs to... What else is there to say?

Being able to use Tradingview strategies with JRR

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:

  • Please let JRR long and short with the buy/sell signal from TV strategies (at this time sell can not short)
  • Please let JRR understand base values from TV strategies (at this time base will only make a minimum order ( 1 Lot))

I use FTX PERPS with it.
Testaccount can be provided
Best regards,
Me4tgrinder

[BUG] Max margin showing zero on Oanda

My Short Oanda bot is showing a zero for max margin and has not been buying.
I have my bots set to 73% total ("MarginLimit":"73%"). My Oanda desktop shows only 28.62% of margin used on this bot.
{ "Account":"Freedom","Asset":"EUR/USD","PipProfit":"Auto","MarginPips":"Auto","FrequencyBoost":"Yes","UnitPips":"Auto","UnitStart":"Prime","UnitStep":"Prime","MarginLimit":"73%","Direction":"Short","Clustering":"Yes","ClusterStyle":"Aggressive","Confidence":"99.73","Confirmation":"Yes","Volatility":"Auto" }

Screenshot 2023-04-09 164122

It was working until recently. Long bot is still working fine.

I have done the following to attempt to resolve.
1.) Updated git pull
2.) ./install from /home/GitHub/JackrabbitRelay and /home/GitHub/JackrabbitRelay/Extras/Examples
3.) Restarted my VPS
4.) Ran ./UpdatePlaceOrder and ./UpdatePlaceOrder oanda

Still not working.

Thanks for your help!

[BUG] margin trading

All margin trading is a hot mess at the moment. Do not try it as it will fail.

Spot and futures work fine.

I do have limited success on Binance long positions, but not enough to consider it as a viable blueprint moving forward.

I am working on possible workarounds and solutions to get this fixed, including building my own framework structure specifically for the problem. It will take time though.

Thank you.

Maximum number of positions allowed

Allow a limited number of assets simultanewously. If this is set to 4 and a 5 position is sent to Relay, reject it and don't open a trade.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.