vitalets / tinkoff-invest-api

Node.js SDK для работы с Tinkoff Invest API
45 stars 11 forks source link

CandleInterval update #17

Closed kirill2400 closed 11 months ago

kirill2400 commented 11 months ago

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch tinkoff-invest-api@5.0.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/tinkoff-invest-api/src/generated/marketdata.ts b/node_modules/tinkoff-invest-api/src/generated/marketdata.ts
index 3d32a7c..24a2e47 100644
--- a/node_modules/tinkoff-invest-api/src/generated/marketdata.ts
+++ b/node_modules/tinkoff-invest-api/src/generated/marketdata.ts
@@ -245,6 +245,22 @@ export enum CandleInterval {
   CANDLE_INTERVAL_HOUR = 4,
   /** CANDLE_INTERVAL_DAY - 1 день. */
   CANDLE_INTERVAL_DAY = 5,
+  /** CANDLE_INTERVAL_2_MIN - 2 минуты. */
+  CANDLE_INTERVAL_2_MIN = 6,
+  /** CANDLE_INTERVAL_3_MIN - 3 минуты. */
+  CANDLE_INTERVAL_3_MIN = 7,
+  /** CANDLE_INTERVAL_10_MIN - 10 минут. */
+  CANDLE_INTERVAL_10_MIN = 8,
+  /** CANDLE_INTERVAL_30_MIN - 30 минут. */
+  CANDLE_INTERVAL_30_MIN = 9,
+  /** CANDLE_INTERVAL_2_HOUR - 2 часа. */
+  CANDLE_INTERVAL_2_HOUR = 10,
+  /** CANDLE_INTERVAL_4_HOUR - 4 часа. */
+  CANDLE_INTERVAL_4_HOUR = 11,
+  /** CANDLE_INTERVAL_WEEK - 1 неделя. */
+  CANDLE_INTERVAL_WEEK = 12,
+  /** CANDLE_INTERVAL_MONTH - 1 месяц. */
+  CANDLE_INTERVAL_MONTH = 13,
   UNRECOGNIZED = -1,
 }

This issue body was partially generated by patch-package.

vitalets commented 11 months ago

Hi! Could you submit a PR with that update?