Giter Club home page Giter Club logo

gdax-candle-extractor's People

Contributors

johnhof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gdax-candle-extractor's Issues

Set request sleep to account for request time

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)

illegal base64 data at input byte 0

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.