Skip to content

Commit

Permalink
feat: useOHLC support RFC3339 duration format (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
zccz14 authored Nov 30, 2023
1 parent a1dc921 commit 15cdd2d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,11 +511,16 @@ declare const useProduct: (
) => IProduct;
/** Use product parameters */
declare const useParamProduct: (key: string) => IProduct;
/** Use OHLC data `[idx, timestamp_in_us, open, high, low, close, volume]` */
/**
* Use OHLC Period Data
* @param datasource_id - Data source ID
* @param product_id - Product ID
* @param period - Period in seconds or RFC3339 duration format
*/
declare const useOHLC: (
datasource_id: string,
product_id: string,
period_in_sec: number
period: number | string
) => {
time: Series;
open: Series;
Expand Down

0 comments on commit 15cdd2d

Please sign in to comment.