Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
This repository was archived by the owner on Sep 2, 2022. It is now read-only.

Candle and Response Order #122

@b490001

Description

@b490001

This is probably a dumb question but I've been spinning circles on it, and I'm sure i'm not the only one, maybe it should go in the readme or something.

When I send candle data to a finta function, what is the order of the candles? First -> Last, or Last -> First?
Is the first index in the list the beginning date or the end date?

And likewise, when the function/indicator returns, what is the order of the return list? The list is returned with nan's at the front, is the first index (probably a nan) the the furthest back (oldest) indicator reading, or the first?
When I get an indicator result back, what's the latest result? (not the one from 180 minutes ago).

I can't figure out if I'm sending my candles backwards to this thing, or if I'm reading the response backwards, and I can't find anything on google / TA-lib docs aren't any help here either, everyone just expects you already know these things.

It becomes especially fun because it seems kucoin sends candles back in first->last order on spot but last->first order on futures. I'm just trying to get a unified "this is how the candles should be ordered" "this is how the responses should be ordered" system going here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions