qsforex icon indicating copy to clipboard operation
qsforex copied to clipboard

trading.py - <Response [400]> - how to for request

Open ghbcode opened this issue 8 years ago • 3 comments

I see that development ceased about two years ago as per the datetime in the code listing.

  1. Has the code moved elsewhere or has development in fact stopped?
  2. Is qstrader a replacement for qsforex? (I realize that qstrader is explicitly mentioned to be for equities but I figured that I would check)

I ran trading/trading.py but the output to the screen did not occur (qsforex) gs-macbook-air:qsforex ghbcode$ python trading/trading.py 2017-02-09 10:24:10,978 - qsforex.trading.trading - INFO - Starting trading thread 2017-02-09 10:24:10,978 - qsforex.trading.trading - INFO - Starting price streaming thread

I found a discussion about this but it didn't help. I changed the heartbeat from 0.0 to 0.5 and no luck. So I traced the program and found that 'resp' from trading.py returns <Response [400]>

In the two years that development ceased the request syntax may have changed.

  1. If I wanted to pick up where would I find out the correct syntax for the request and in fact the syntax for Oanda's forex api currently?

Please excuse me if this is covered elsewhere. I looked around and via google without much luck.

Thanks!

ghbcode avatar Feb 09 '17 19:02 ghbcode

Thought I would just comment to say Hello and let you know some people are watching the project. Unfortunately, I do not think this project is still active (someone correct me if I am wrong) I believe QSTrader is the new baby. I read on Quant Start that the FOREX element will be integrated at some point, not sure when. I do not use Oandas so cannot help you with your problem. Sorry! I use FXCM and will soon be uploading code, once I have finished with https://github.com/neka-nat/python-forexconnect

I like this project and I hope it comes back alive.

All the best

James

JamesKBowler avatar Feb 09 '17 19:02 JamesKBowler

Hi @ghbcode, the OANDA REST API is fully documented here: http://developer.oanda.com/rest-live/introduction/

I was also hoping to use QSTrader with OANDA and have just submitted a pull request to enable consuming a candle data feed from the OANDA REST API.

tomhunter-gh avatar Feb 12 '17 13:02 tomhunter-gh

Hi ghbcode I am having the same issue, I wonder if you have solved it?, I would appreciate it if anyone can help.

Simangaliso avatar Mar 28 '17 14:03 Simangaliso