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

UI #1

Open
pabx06 opened this issue Jul 3, 2013 · 3 comments
Open

UI #1

pabx06 opened this issue Jul 3, 2013 · 3 comments

Comments

@pabx06
Copy link

pabx06 commented Jul 3, 2013

i am missing something i cant get any UI on this. plus look like data are populated every hours only?

@schedule(hour = "*", minute = "0", persistent = false, info = "Exchange data reader")
in Exchnages.java

i wanted to use this data collected to back-test my trading bot.

also i ma having hard time to filter out specific exchange order-book between two hourly ticks ? how the id col is used in tick and ord tables

ALSO :
SELECT (
(SELECT sum(amount) FROM CoinStory.Ord WHERE ordertype like 'ASK')
/
(SELECT sum(amount) FROM CoinStory.Ord WHERE ordertype like 'BID'));

give me something like '0.00582475284584331'

witch doesn't make the case for the recent downtrend in bit coins

@mmazi
Copy link
Owner

mmazi commented Jul 4, 2013

Great to see this may be useful for someone!

There is no UI currently; I've been using coin-story just to get the data in the database, then I use a separate SQL client (eg. Squirrel SQL or PG Admin) to query the data; see coin-story.sql for some examples. I don't (yet) have a query for bid/ask ratio; you should probably convert bid into USD (see the bid query in coin-story.sql) and add some time constraints in the queries. I've calculated bid/ask from the results of queries in coin-story.sql using Excel.

The Java code is meant to be cloned and adapted to your needs. If hourly data is not enough, you can easily change it to eg. five minute data by specifying minute="*/10" or see the tutorial for more.

The value of the id column is populated from the hibernate_sequence database sequence (created by Hibernate, the JPA provider).

@pabx06
Copy link
Author

pabx06 commented Jul 4, 2013

i really like to get involved into this. i know java but don't have any background on the java web app UI . & stuff.

this project can be cool if i can add an ui like the one: https://cointhink.com/arbitrage/btcusd

@mmazi
Copy link
Owner

mmazi commented Jul 5, 2013

Sure, go ahead!

Coin-story is not just about the BTC/USD price though; it's more about the market depth (ie. recording all open orders on major exchanges).

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