Skip to content

ENH: TrueFX tick datareader #152

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

Closed
wants to merge 8 commits into from
Closed

Conversation

femtotrader
Copy link
Contributor

Try to fix #153


df = pd.DataFrame(data)

#df = df[:100] # uncomment this - just for test
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncomment this to have a short processing time.

@femtotrader
Copy link
Contributor Author

Processing is so long that it leads to Travis CI build error

No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.

@femtotrader
Copy link
Contributor Author

Python 2.6 Travis build is failing. Others Python versions seems to be ok. Any idea why it's failing with 2.6 ?

df = pd.read_csv(zfile, names=['Symbol', 'Date', 'Bid', 'Ask'])

df['Date'] = pd.to_datetime(df['Date'], format='%Y%m%d %H:%M:%S.%f')
df = df.set_index('Date')
Copy link
Contributor Author

@femtotrader femtotrader Jun 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution: Date columns have non unique values

df = df.set_index('Date', verify_integrity=True)

should raises error

we might make Date unique (adding a quantum of 1 microsecond or 1 nanosecond)

See http://stackoverflow.com/questions/34575126/create-a-dataframe-with-datetimeindex-with-unique-values-by-adding-a-timedelta/34576154#34576154

@femtotrader femtotrader changed the title TrueFX tick datareader ENH: TrueFX tick datareader Sep 8, 2016
@femtotrader
Copy link
Contributor Author

Direct download is not available anymore

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

Successfully merging this pull request may close these issues.

ENH: TrueFX Tick DataReader
1 participant