fix(V2): Deribit get_historical end_date day-inclusive + pagination
end_date as a bare date now covers the whole UTC day (23:59:59.999) instead of stopping at midnight, so end_date=today returns intraday up to the last closed candle. Dates are parsed as explicit UTC and inline timestamps (YYYY-MM-DDTHH:MM:SS) are honored for precise windows. Wide ranges are paged in <=5000-candle windows so Deribit's per-call cap can no longer silently drop start_date and the oldest candles. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -71,6 +71,18 @@ richiede `X-Bot-Tag`.
|
||||
- `get_historical` (chiave `candles` uniforme)
|
||||
- `get_trade_history`
|
||||
|
||||
> **`get_historical` — semantica di `start_date` / `end_date`** (vale anche per
|
||||
> `get_dvol` e `get_technical_indicators`). Tutti i timestamp sono in **UTC**.
|
||||
> - Date nude `YYYY-MM-DD`: `start_date` = `00:00:00`, `end_date` =
|
||||
> `23:59:59.999` dello stesso giorno (inclusivo dell'intero giorno). Quindi
|
||||
> `end_date = oggi` restituisce l'intraday fino all'ultima candela chiusa, non
|
||||
> solo fino a mezzanotte.
|
||||
> - Sono accettati anche timestamp con orario (`2026-05-28T14:00:00`), onorati
|
||||
> così come sono per finestre intraday precise; un valore *naive* è trattato
|
||||
> come UTC.
|
||||
> - Nessun cap a ~5000 righe: i range ampi sono **paginati** internamente
|
||||
> finestra-per-finestra, così `start_date` è sempre rispettato.
|
||||
|
||||
### Account
|
||||
- `get_positions`
|
||||
- `get_account_summary`
|
||||
|
||||
Reference in New Issue
Block a user