shrimpy-python icon indicating copy to clipboard operation
shrimpy-python copied to clipboard

bug/mismatch between documentation and output on

Open carlok opened this issue 3 years ago • 3 comments

Hi, still me. Just tried get_predictions('binance', 'BNB', 'BTC') and I don't get 7 objects as the documentation states but a messy 10 objects array with a few duplicates (16 twice, 17 twice, 18 twice, then the following instances just once). See the following output. Thanks.

{
  "predictions": [
    {
      "date": "2021-04-16T00:00:00.000Z",
      "prediction": 0.00856614,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-16T00:00:00.000Z",
      "prediction": 0.00926539,
      "updatedAt": "2021-04-11T06:38:25.000Z"
    },
    {
      "date": "2021-04-17T00:00:00.000Z",
      "prediction": 0.00947677,
      "updatedAt": "2021-04-11T06:38:25.000Z"
    },
    {
      "date": "2021-04-17T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-18T00:00:00.000Z",
      "prediction": 0.00984125,
      "updatedAt": "2021-04-11T06:38:25.000Z"
    },
    {
      "date": "2021-04-18T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-19T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-20T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-21T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    },
    {
      "date": "2021-04-22T00:00:00.000Z",
      "prediction": 0.00856203,
      "updatedAt": "2021-04-15T06:48:31.000Z"
    }
  ]
}

carlok avatar Apr 15 '21 17:04 carlok

Thanks for pointing this out, we'll get this fixed asap

tbass134 avatar Apr 15 '21 18:04 tbass134

Ok, please write here to notify me when it's done. Thank you for your work.

carlok avatar Apr 15 '21 18:04 carlok

@carlok its fixed

tbass134 avatar Apr 15 '21 18:04 tbass134