Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can I test it with curl? #10

Closed
JDJoe opened this issue Jan 20, 2020 · 4 comments
Closed

how can I test it with curl? #10

JDJoe opened this issue Jan 20, 2020 · 4 comments

Comments

@JDJoe
Copy link

JDJoe commented Jan 20, 2020

I followed the instructions from #8
Made the changes to the script and started it. Runs OK, seems to listen port 5000
How can I test it from a outside to make sure it actually works OK. (I am not a developer so... ;)

@robswc
Copy link
Owner

robswc commented Jan 20, 2020

hey,
Have you set up the tradingview alerts? That should be the best way to test :)

@JDJoe
Copy link
Author

JDJoe commented Jan 21, 2020

It seems my "problem" is actually with my VPS I was planning to use.
I started the script as instructed but it's not accessible form outside.

It sound like I have to make it work with Apache:
https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps

@JDJoe
Copy link
Author

JDJoe commented Jan 29, 2020

curl -H "Content-Type: application/json" -X POST -d '{"type": "limit", "side": "buy", "amount": "1000", "symbol": "XBTUSD", "price": "30", "key": "youneedyourkeyhere"}' http://127.0.0.1:5000/webhook

Of course, you change the URL to what ever you have there.

@JDJoe JDJoe closed this as completed Jan 29, 2020
@robswc
Copy link
Owner

robswc commented Jan 29, 2020

awesome, thanks for providing the solution for future users!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants