Giter VIP home page Giter VIP logo

Comments (18)

pcwizatl avatar pcwizatl commented on September 24, 2024 1

Thanks for the update. I went line by line in with the file and thought everything was good to go. I will try your suggestions above and circle back to let you know if I have success.

Thanks

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024 1

I used the link with my entire Payload including the identity.

Edit... I think I may have figured out what is causing this. I am testing and will report back.

Thanks

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024 1

Ok, after testing I think i've figured out that I had something incorrect in the payload. I am no longer receiving errors and generating some additional logs. I will move some small amount of udst to Kucoin to begin testing live.

Thanks

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

Hi,

Thank you for using Jackrabbit Relay.

Based upon what you provided for the payload, you are missing the final curly brace } and have a comma on the last item.

JSON can be a difficult format to work with in the beginning, but once you get used to its idiosyncrasies, it does get easier.

The best approach is to run your full and complete alert message or payload through a JSON validator. The link below is for a free one that does exceptionally well that I use constantly.

JSON validator

Please be aware that in order to really be able to evaluate your payload, I will need to see the entire payload with your identity sanitized.

Thank you.

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024

This is pretty much my exact payload file minus all the zeros in between. I went to the JSON validator and keep getting an error around the Identity line. Everything else looks good except for that section.

{
"Time":"{{time}}",
"Recipe":"#Momentum #RSI #MoneyFlow",
"Action":"buy",
"Exchange":"kucoin",
"Account":"MAIN",
"Market":"Spot",
"Asset":"{{ticker}}",
"Price":"{{close}}",
"AvgProfit":"{{plot_0}}",
"LProfit":"{{plot_1}}",
"TCycles":"{{plot_2}}",
"CBuys":"{{plot_3}}",
"MBCycle":"{{plot_4}}",
"TBuys":"{{plot_5}}",
"Link":"https://www.tradingview.com/chart/bB4Qf4at",
"Identity":"Your Identity",
}

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

I edited your identity out. Please make sure to never ever release it, even a portion of it could put your system at risk.

The last comma after identity should not be there and that is why you are getting a validation error.

Please remove the final comma before the last curly bracket } and it should validate and work properly.

Thank you.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

I received your message email, not sure why its not here...

I've tried to reproduce the issue and haven't so far.

Please save the current identity file to a different name and regenerate the identity, following the guide:

https://github.com/rapmd73/JackrabbitRelay/wiki/Identity

The JSON validator not pass a validation tests if a quote " mark is embedded in the identity string. A comma won't affect anthing as long as the identity string follows the proper JSON format.

Please test your JSON payload withouy the actual identity string, ie:

"Identity":"testString"

I've marked this as a bug until I can fully verify that a quote is not being generated in the identity string.

Something you can try is to copy the Identity.cfg into the validator and see if it validates by itself. It should unless the copy/paste process is damaging the copy buffer.

Please let me know the results of these tests.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

Also try this:

Save your JSON payload to a file on your VPS. then run this command:

python3 -m json.tool < file

file will be the name of the file you created. Any errors will be explicitly identified by column and position. its not the friendliest way, but it is direct and to the point.

Thank you.

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024

I received your message email, not sure why its not here...

I've tried to reproduce the issue and haven't so far.

Please save the current identity file to a different name and regenerate the identity, following the guide:

https://github.com/rapmd73/JackrabbitRelay/wiki/Identity

The JSON validator not pass a validation tests if a quote " mark is embedded in the identity string. A comma won't affect anthing as long as the identity string follows the proper JSON format.

Please test your JSON payload withouy the actual identity string, ie:

"Identity":"testString"

I've marked this as a bug until I can fully verify that a quote is not being generated in the identity string.

Something you can try is to copy the Identity.cfg into the validator and see if it validates by itself. It should unless the copy/paste process is damaging the copy buffer.

Please let me know the results of these tests.

When testing the JSON

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024

I regenerated the Identity file and ran it through the JSON Validator and it passed. I placed the new identity in the JSON validator checked it and it passed. When the alert triggered I still received the Damaged Payload message in the JackrabbitRelay log file. Everything looks to be setup and configured correctly but something isnt working. Sorry for the back and fourth but im just trying to get up and running.

Thanks

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

No apologies needed. This needs to be figured out why it is not working properly, when I agree with you that it should be.

At this point, the only thing that I can think of is somehow during the copy and paste the process of your payload to your trading view alert, that's something is not being pasted properly in the alert window.

If this continues, it might be worth considering moving to a private conversation where we can discuss the possibility of a team viewer session to determine exactly what is going on and correcting the problem so that it works properly.

At this point though, please save your complete payload to a file on your VPS and follow the directions in the wiki force feeding the payload into Relay itself. We need to eliminate any possibilities of a bug within the system itself and force feeding the payload into the various processors would help determine that.

I am also conducting various tests on my side to see if I can reproduce any of the situation and or maybe come up with an approach to break the system that would reveal where this problem is.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

This is experimental, but please try it anyway:

https://rapmd.net/Validator.shtml

Copy and paste youe entire payload here and click submit. It will analyze the payload and try to find any problems and identify them. So far, in testing it, it has detected all the errors I've given it.

Thank you.

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024

Ok, I was just about to message you. After the forced payload testing these are my results. Yes I can do a Zoom session we should need to do that to get me on my way.

/home/JackrabbitRelay2/Base# /home/JackrabbitRelay2/Base/PlaceOrder.tester < /home/Jackrabb
itRelay2/Testing/msgSell
2023-04-07 19:32:04.612213 8671 PlaceOrder Tester 0.0.0.1.50
2023-04-07 19:32:04.612515 8671 Order parsed
2023-04-07 19:32:04.612600 8671 |- Time: {{time}}
2023-04-07 19:32:04.612679 8671 |- Recipe: #Momentum#RSI#MoneyFlow
2023-04-07 19:32:04.612748 8671 |- Action: sell
2023-04-07 19:32:04.612807 8671 |- Exchange: kucoin
2023-04-07 19:32:04.612860 8671 |- Account: MAIN
2023-04-07 19:32:04.612909 8671 |- Market: spot
2023-04-07 19:32:04.612957 8671 |- Asset: {{TICKER}}
2023-04-07 19:32:04.613007 8671 |- Price: {{close}}
2023-04-07 19:32:04.613057 8671 |- AvgProfit: {{plot_0}}
2023-04-07 19:32:04.613107 8671 |- LProfit: {{plot_1}}
2023-04-07 19:32:04.613157 8671 |- TCycles: {{plot_2}}
2023-04-07 19:32:04.613206 8671 |- CBuys: {{plot_3}}
2023-04-07 19:32:04.613255 8671 |- MBCycle: {{plot_4}}
2023-04-07 19:32:04.613304 8671 |- TBuys: {{plot_5}}
2023-04-07 19:32:04.613353 8671 |- Link: https://www.tradingview.com/chart/bB4Qf4at
2023-04-07 19:32:04.613404 8671 |- OrderType: market
2023-04-07 19:32:04.613464 8671 Processing Completed: 0:00:01.196484 seconds

/home/JackrabbitRelay2/Base# /home/JackrabbitRelay2/Base/PlaceOrder.dsr < /home/JackrabbitR
elay2/Testing/msgSell
2023-04-07 19:39:17.913632 8703 PlaceOrder DSR 0.0.0.1.50
2023-04-07 19:39:17.913913 8703 Order parsed
2023-04-07 19:39:17.913993 8703 |- Time: {{time}}
2023-04-07 19:39:17.914067 8703 |- Recipe: #Momentum#RSI#MoneyFlow
2023-04-07 19:39:17.914133 8703 |- Action: sell
2023-04-07 19:39:17.914247 8703 |- Exchange: kucoin
2023-04-07 19:39:17.914347 8703 |- Account: MAIN
2023-04-07 19:39:17.914416 8703 |- Market: spot
2023-04-07 19:39:17.914475 8703 |- Asset: {{TICKER}}
2023-04-07 19:39:17.914530 8703 |- Price: {{close}}
2023-04-07 19:39:17.914588 8703 |- AvgProfit: {{plot_0}}
2023-04-07 19:39:17.914646 8703 |- LProfit: {{plot_1}}
2023-04-07 19:39:17.914710 8703 |- TCycles: {{plot_2}}
2023-04-07 19:39:17.914764 8703 |- CBuys: {{plot_3}}
2023-04-07 19:39:17.914826 8703 |- MBCycle: {{plot_4}}
2023-04-07 19:39:17.914877 8703 |- TBuys: {{plot_5}}
2023-04-07 19:39:17.914953 8703 |- Link: https://www.tradingview.com/chart/bB4Qf4at
2023-04-07 19:39:17.915067 8703 |- OrderType: market
Traceback (most recent call last):
File "/home/JackrabbitRelay2/Base/PlaceOrder.dsr", line 86, in <
main()
File "/home/JackrabbitRelay2/Base/PlaceOrder.dsr", line 57, in main
fn=relay.DataDirectory+'/'+relay.GetExchangeLast()+'.'+relay.GetAccountLast()+'.'+relay.Order['Asset']+'.DSR'
TypeError: can only concatenate str (not "NoneType") to str

Thanks

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

/home/JackrabbitRelay2/B+ase# /home/JackrabbitRelay2/Base/PlaceOrder.dsr < /home/JackrabbitR elay2/Testing/msgSell
2023-04-07 19:39:17.913632 8703 PlaceOrder DSR 0.0.0.1.50
2023-04-07 19:39:17.913913 8703 Order parsed
2023-04-07 19:39:17.913993 8703 |- Time: {{time}}
2023-04-07 19:39:17.914067 8703 |- Recipe: #Momentum#RSI#MoneyFlow
2023-04-07 19:39:17.914133 8703 |- Action: sell
2023-04-07 19:39:17.914247 8703 |- Exchange: kucoin
2023-04-07 19:39:17.914347 8703 |- Account: MAIN
2023-04-07 19:39:17.914416 8703 |- Market: spot
2023-04-07 19:39:17.914475 8703 |- Asset: {{TICKER}}
2023-04-07 19:39:17.914530 8703 |- Price: {{close}}
2023-04-07 19:39:17.914588 8703 |- AvgProfit: {{plot_0}}
2023-04-07 19:39:17.914646 8703 |- LProfit: {{plot_1}}
2023-04-07 19:39:17.914710 8703 |- TCycles: {{plot_2}}
2023-04-07 19:39:17.914764 8703 |- CBuys: {{plot_3}}
2023-04-07 19:39:17.914826 8703 |- MBCycle: {{plot_4}}
2023-04-07 19:39:17.914877 8703 |- TBuys: {{plot_5}}
2023-04-07 19:39:17.914953 8703 |- Link: https://www.tradingview.com/chart/bB4Qf4at
2023-04-07 19:39:17.915067 8703 |- OrderType: market Traceback (most recent call last): File "/home/JackrabbitRelay2/Base/PlaceOrder.dsr", line 86, in < main() File "/home/JackrabbitRelay2/Base/PlaceOrder.dsr", line 57, in main fn=relay.DataDirectory+'/'+relay.GetExchangeLast()+'.'+relay.GetAccountLast()+'.'+relay.Order['Asset']+'.DSR' TypeError: can only concatenate str (not "NoneType") to str

This error is normar because the DSR is expecting numbers, not TradingView macros, ie {{plot_0}}

TradingView will automatical fill in the numbers when the message is send to Relay.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

That sounds good.

I recomend running the tester for a few days to collect log data to ensure full functionality before risking real money. When you do start to trade in a live market, please start with something like TRX or smaller where you can buy/sell very small amounts.

I will leave this ticket open for a few days.

Thank you.

from jackrabbitrelay.

pcwizatl avatar pcwizatl commented on September 24, 2024

Can I ask if you would know what this might be related to. I'm seeing this in the log file and there is definitely funds in the Main and Spot account on Kucoin. Or if there is something that I am missing that talks about this in a link please point me in the right direction.

create_order failed with: kucoin The order funds should be more than 0.1 USDT.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

The coin pair you are trading is below the minimum the Kucoin requires for this pair (0.1 USDT). Relay is usually capable of figuring out the minimum properly, but there are times when the exchange doesn't report the proper minimum.

If you are not using Base or USD in your order payload, the easiest fix is to add,

"Quote":"0.11",

You want to be a tiny bit over the minimum to account for slippage. This is trial and error though, especially in fast moving markets. This translate to 0.11 USDT. This is a normal response that can occur when you are pushing the lowest an exchange will support.

If you are using Base or USD, you can simple calculate the equivalent or change to Quote. Please note that if you rty to use Base or USD and Quote in the same order payload, Relay will give an error and not process the order.

Thank you.

from jackrabbitrelay.

rapmd73 avatar rapmd73 commented on September 24, 2024

I'm closing this ticket as the issue seems to be fixed. If the problem occurs again, please let me know.

Thank you.

from jackrabbitrelay.

Related Issues (11)

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.