joeldg / bowhead

PHP trading bot framework
Apache License 2.0
801 stars 288 forks source link

Oanda v20 #53

Closed andyg5000 closed 7 years ago

andyg5000 commented 7 years ago

Here's an initial stab at #28

Two things I don't think are functioning property are :

Other than that, it appears to be fetching the data from the v20 API and inserting it into mysql.

neberg99 commented 7 years ago

So you need to update it to use the stream, not the api endpoint

domainDict = { 'live' : 'stream-fxtrade.oanda.com',
           'demo' : 'stream-fxpractice.oanda.com' }

and

url = "https://" + domain + "/v3/accounts/" + account_id + "/pricing/stream"

dragonattack commented 6 years ago

why python streaming.py runs once as it should run continuously? should we add an infinite loop inside there?

dhensen commented 6 years ago

I just forked this project today, after setting things up I noted that python streaming.py runs once. I then found this merged PR. Was this PR supposed to fix it?