johnhof / gdax-candle-extractor Goto Github PK
View Code? Open in Web Editor NEWSimple historical candlestick extraction from the GDAX API
License: MIT License
Simple historical candlestick extraction from the GDAX API
License: MIT License
allow option to rotate files for very large data sets
request sleep currently just waits .4 seconds after each request. instead, it should start the time before the request is made, and sleep for the remainder after the request. Sleep(.4-requestTime)
eg:
--start 7d
--start 1w
--start 2y
--start 12h
Parsing lib suggestions are welcome
I'm trying to use this through the docker image, and getting an error that seems to be coming from the gdax client lib. I also noticed that the version of the lib (0.2.8) in use here is far behind the most recent (0.3.3), in case that matters.
docker run -e GDAX_API_KEY=foo \
-e GDAX_API_SECRET=foo \
-e GDAX_API_PASSPHRASE=foo \
-e GDAX_EXTRACTOR_PRODUCT=BTC-USD -e GDAX_EXTRACTOR_VERBOSE=true -e GDAX_EXTRACTOR_GRANULARITY=60 \
-e GDAX_EXTRACTOR_START="2017-11-06T00:00:00-06:00" \
-e GDAX_EXTRACTOR_END="2017-11-07T00:00:00-06:00" -e GDAX_EXTRACTOR_OUT_JSON \
-e GDAX_EXTRACTOR_OUT_JSON_FILE="test-btc.json" johnhof/gdax-candle-extractor
Output is:
Now : 2018-03-12T00:58:35Z
Product ID : BTC-USD
Secret : foo
Key : foo
Passphrase : foo
Granularity : 60
Start : 2017-11-06T00:00:00-06:00
End : 2017-11-07T00:00:00-06:00
Out stdout : false
Out CSV : false
Out JSON : false
Out Elasticsearch : false
Extracting...
=> REQ: [BTC-USD:60] (2017-11-06 00:00:00 -0600 -0600 - 2017-11-06 03:20:00 -0600 -0600)=3h20m0s
<= RES: 0 results
Extraction Error: GDAX Request Error: [BTC-USD] illegal base64 data at input byte 0
=> REQ: [BTC-USD:60] (2017-11-06 03:20:00 -0600 -0600 - 2017-11-06 06:40:00 -0600 -0600)=3h20m0s
<= RES: 0 results
Extraction Error: GDAX Request Error: [BTC-USD] illegal base64 data at input byte 0
=> REQ: [BTC-USD:60] (2017-11-06 06:40:00 -0600 -0600 - 2017-11-06 10:00:00 -0600 -0600)=3h20m0s
<= RES: 0 results
Extraction Error: GDAX Request Error: [BTC-USD] illegal base64 data at input byte 0
if collectors throw errors above a certain level, kill the process
seems like a more appropriate fit, with built in buffering
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.