Skip to content

How to get historic data from api? #4

@jrots

Description

@jrots

Hi,

I would like to see the trades from f.e. the last 5 days is this possible?

Atm I get errors when using the offset parameter:

var CoinCheck = require('CoinCheck');
var coinCheck = new CoinCheck.CoinCheck('ACCESS_KEY', 'API_SECRET');

var params = {
data : {
        "offset" : 1000
},
options: {
        success: function(data, response, params) {
            console.log('success', data);
        },
        error: function(error, response, params) {
            console.log('error', error);
        }
    }
};
coinCheck.trade.all(params);
<body>
  <!-- This file lives in public/500.html -->
  <div class="dialog">
    <div>
      <h1>We're sorry, but something went wrong.</h1>
    </div>
    <p>If you are the application owner check the logs for more information.</p>
  </div>
</body>
</html>

when using a very small offset works however.
--> https://coincheck.com/documents/exchange/api#public-trades

Is this something that will never work? Other exchanges provide overview of historical trades to some amount, is useful information to backtest certain strategies.
Thx
J

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions