@cryptorobot.ai/client 0.0.35 → 0.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/lib/{services → src/services}/exchanges/balance/balance.schema.d.ts +28 -4
  2. package/lib/{services → src/services}/exchanges/download/download.class.d.ts +1 -1
  3. package/lib/{services → src/services}/exchanges/download/download.d.ts +1 -0
  4. package/lib/{services → src/services}/exchanges/download/download.schema.d.ts +28 -4
  5. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.class.d.ts +1 -1
  6. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.d.ts +1 -0
  7. package/lib/{services → src/services}/exchanges/exchanges.class.d.ts +1 -1
  8. package/lib/{services → src/services}/exchanges/exchanges.schema.d.ts +246 -90
  9. package/lib/{services → src/services}/exchanges/ticker/ticker.class.d.ts +1 -1
  10. package/lib/{services → src/services}/exchanges/ticker/ticker.schema.d.ts +28 -4
  11. package/lib/{services → src/services}/homepage/homepage.schema.d.ts +17 -1
  12. package/lib/{services → src/services}/marketplaces/marketplaces.class.d.ts +1 -1
  13. package/lib/{services → src/services}/markets/markets.class.d.ts +1 -1
  14. package/lib/{services → src/services}/messages/messages.class.d.ts +1 -1
  15. package/lib/{services → src/services}/strategies/ai/ai.class.d.ts +1 -1
  16. package/lib/{services → src/services}/strategies/backtest/backtest.class.d.ts +1 -1
  17. package/lib/{services → src/services}/strategies/backtest/backtest.schema.d.ts +92 -92
  18. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.d.ts +1 -0
  19. package/lib/{services → src/services}/strategies/indicators/indicators.class.d.ts +1 -1
  20. package/lib/{services → src/services}/strategies/strategies.class.d.ts +1 -1
  21. package/lib/{services → src/services}/strategies/strategies.schema.d.ts +117 -35
  22. package/lib/{services → src/services}/strategies/templates/templates.class.d.ts +1 -1
  23. package/lib/{services → src/services}/traders/pods/api/api.schema.d.ts +164 -140
  24. package/lib/{services → src/services}/traders/pods/events/events.class.d.ts +1 -1
  25. package/lib/{services → src/services}/traders/pods/events/events.d.ts +1 -0
  26. package/lib/{services → src/services}/traders/pods/events/events.schema.d.ts +93 -3
  27. package/lib/{services → src/services}/traders/pods/pods.class.d.ts +1 -1
  28. package/lib/{services → src/services}/traders/pods/pods.schema.d.ts +84 -60
  29. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.class.d.ts +1 -1
  30. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.d.ts +1 -0
  31. package/lib/{services → src/services}/traders/traders.schema.d.ts +263 -131
  32. package/lib/{services → src/services}/users/users.schema.d.ts +185 -3
  33. package/package.json +13 -10
  34. package/readme.md +50 -2
  35. package/lib/app.d.ts +0 -4
  36. package/lib/authentication.d.ts +0 -8
  37. package/lib/channels.d.ts +0 -3
  38. package/lib/client.d.ts +0 -87
  39. package/lib/configuration.d.ts +0 -226
  40. package/lib/declarations.d.ts +0 -16
  41. package/lib/firebase-push-notification.d.ts +0 -1
  42. package/lib/helper.d.ts +0 -22
  43. package/lib/helpers/app.helper.d.ts +0 -17
  44. package/lib/helpers/backtest.helper.d.ts +0 -61
  45. package/lib/helpers/ccxt.helper.d.ts +0 -92
  46. package/lib/helpers/deployments.helper.d.ts +0 -84
  47. package/lib/helpers/funnel.helper.d.ts +0 -19
  48. package/lib/helpers/handlebars.helper.d.ts +0 -25
  49. package/lib/helpers/hyperopt.helper.d.ts +0 -22
  50. package/lib/helpers/logging.helper.d.ts +0 -9
  51. package/lib/helpers/push-notification.helper.d.ts +0 -8
  52. package/lib/helpers/queue.helper.d.ts +0 -13
  53. package/lib/helpers/rules.helper.d.ts +0 -13
  54. package/lib/helpers/sqlite3.helper.d.ts +0 -6
  55. package/lib/helpers/sqs.helper.d.ts +0 -7
  56. package/lib/helpers/subscription.helper.d.ts +0 -48
  57. package/lib/helpers/telegram.helper.d.ts +0 -32
  58. package/lib/helpers/trader.helper.d.ts +0 -38
  59. package/lib/hooks/application/setup-ccxt-load-marketplaces-mocked.d.ts +0 -3
  60. package/lib/hooks/application/setup-ccxt-load-marketplaces.d.ts +0 -2
  61. package/lib/hooks/application/setup-ccxt-load-markets.d.ts +0 -2
  62. package/lib/hooks/application/setup-config-preparation.d.ts +0 -3
  63. package/lib/hooks/application/setup-fs.d.ts +0 -3
  64. package/lib/hooks/application/setup-info.d.ts +0 -3
  65. package/lib/hooks/application/setup-load-indicators.d.ts +0 -3
  66. package/lib/hooks/application/setup-load-strategy-templates.d.ts +0 -3
  67. package/lib/hooks/backtest-copy-candles-from-user-data.d.ts +0 -2
  68. package/lib/hooks/backtest-generate-and-queue.d.ts +0 -2
  69. package/lib/hooks/backtest-generate-config.d.ts +0 -8
  70. package/lib/hooks/backtest-generate-exchange-config.d.ts +0 -8
  71. package/lib/hooks/backtest-get-results.d.ts +0 -14
  72. package/lib/hooks/backtest-in-disk-clone-strategy.d.ts +0 -2
  73. package/lib/hooks/backtest-validate.d.ts +0 -2
  74. package/lib/hooks/bootstrap-user-exchanges.d.ts +0 -2
  75. package/lib/hooks/bootstrap-user-strategies.d.ts +0 -2
  76. package/lib/hooks/bootstrap-user-traders.d.ts +0 -2
  77. package/lib/hooks/check-required-credentials.d.ts +0 -2
  78. package/lib/hooks/enrich-webhook-to-event.d.ts +0 -2
  79. package/lib/hooks/exchanges/after-create-ccxt-balances-propagate-to-exchange.d.ts +0 -2
  80. package/lib/hooks/exchanges/after-find-ccxt-load-markets.d.ts +0 -2
  81. package/lib/hooks/exchanges/after-get-whitelist-blacklist-transform.d.ts +0 -2
  82. package/lib/hooks/exchanges/before-create-ccxt-get-balances.d.ts +0 -2
  83. package/lib/hooks/exchanges/before-patch-blacklist-validation-per-exchange.d.ts +0 -2
  84. package/lib/hooks/exchanges/before-patch-ccxt-connect-exchange.d.ts +0 -2
  85. package/lib/hooks/exchanges/before-patch-ccxt-load-markets.d.ts +0 -2
  86. package/lib/hooks/exchanges/before-patch-whitelist-blacklist-transform.d.ts +0 -2
  87. package/lib/hooks/exchanges/before-patch-whitelist-blacklist-validate.d.ts +0 -2
  88. package/lib/hooks/exchanges/download/after-create-get-recent-downloaded-data-info.d.ts +0 -2
  89. package/lib/hooks/exchanges/download/before-create-generate-config.d.ts +0 -2
  90. package/lib/hooks/exchanges/download/before-create-process-exchange-data-download.d.ts +0 -2
  91. package/lib/hooks/file-generate-config-hyperopt.d.ts +0 -2
  92. package/lib/hooks/hyperopt-generate-and-queue.d.ts +0 -2
  93. package/lib/hooks/hyperopt-generate-exchange-config.d.ts +0 -8
  94. package/lib/hooks/hyperopt-get-results.d.ts +0 -2
  95. package/lib/hooks/hyperopt-in-disk-clone-strategy.d.ts +0 -2
  96. package/lib/hooks/hyperopt-track-usage.d.ts +0 -2
  97. package/lib/hooks/init-data-folder.d.ts +0 -2
  98. package/lib/hooks/log-error.d.ts +0 -2
  99. package/lib/hooks/messages/messages-process-data.d.ts +0 -2
  100. package/lib/hooks/openai-process-request.d.ts +0 -2
  101. package/lib/hooks/pairs-transform.d.ts +0 -2
  102. package/lib/hooks/remove-container.d.ts +0 -2
  103. package/lib/hooks/revenuecat-is-subscription-active.d.ts +0 -2
  104. package/lib/hooks/set-default-strategy.d.ts +0 -2
  105. package/lib/hooks/setup-aws-sdk.d.ts +0 -2
  106. package/lib/hooks/setup-cronjobs.d.ts +0 -2
  107. package/lib/hooks/setup-ensure-image.d.ts +0 -3
  108. package/lib/hooks/setup-firebase.d.ts +0 -2
  109. package/lib/hooks/setup-homepage.d.ts +0 -3
  110. package/lib/hooks/setup-mautic.d.ts +0 -3
  111. package/lib/hooks/setup-mixpanel.d.ts +0 -3
  112. package/lib/hooks/setup-prepare-maildev-while-in-test-env.d.ts +0 -3
  113. package/lib/hooks/setup-queues.d.ts +0 -3
  114. package/lib/hooks/setup-stripe.d.ts +0 -2
  115. package/lib/hooks/setup-telegram-client.d.ts +0 -3
  116. package/lib/hooks/sqlite-reset-database.d.ts +0 -2
  117. package/lib/hooks/strategies/disk-create-strategy.d.ts +0 -2
  118. package/lib/hooks/strategies/disk-remove-strategy.d.ts +0 -2
  119. package/lib/hooks/strategies/file-strategies-clone.d.ts +0 -2
  120. package/lib/hooks/stripe-check-subscription.d.ts +0 -2
  121. package/lib/hooks/stripe-create-payment-intent.d.ts +0 -2
  122. package/lib/hooks/stripe-is-subscription-active.d.ts +0 -2
  123. package/lib/hooks/stripe-sync-customer-data.d.ts +0 -2
  124. package/lib/hooks/telegram-create-group.d.ts +0 -2
  125. package/lib/hooks/telegram-delete-group.d.ts +0 -2
  126. package/lib/hooks/telegram-update-group.d.ts +0 -2
  127. package/lib/hooks/tickers-fetch.d.ts +0 -2
  128. package/lib/hooks/traders/after-patch-file-candles-clone.d.ts +0 -2
  129. package/lib/hooks/traders/before-patch-folders-initialize.d.ts +0 -2
  130. package/lib/hooks/traders/before-patch-transform-pairlist-plugins.d.ts +0 -2
  131. package/lib/hooks/traders/container-api-control.d.ts +0 -2
  132. package/lib/hooks/traders/container-stop.d.ts +0 -2
  133. package/lib/hooks/traders/create-trader-container.d.ts +0 -2
  134. package/lib/hooks/traders/generate-exchange-config.d.ts +0 -2
  135. package/lib/hooks/traders/generate-trader-config.d.ts +0 -2
  136. package/lib/hooks/traders/pods-container-inspect.d.ts +0 -2
  137. package/lib/hooks/traders/pods-process-worker.d.ts +0 -7
  138. package/lib/hooks/users/email-verify-signup.d.ts +0 -2
  139. package/lib/index.d.ts +0 -1
  140. package/lib/logger.d.ts +0 -1
  141. package/lib/mongodb.d.ts +0 -8
  142. package/lib/prepare-for-publish.d.ts +0 -1
  143. package/lib/sentry.d.ts +0 -2
  144. package/lib/telegram-get-credentials.d.ts +0 -1
  145. package/lib/validators.d.ts +0 -3
  146. package/{readme.client.md → README.md} +0 -0
  147. package/lib/{client.js → src/client.js} +0 -0
  148. package/lib/{services → src/services}/auth-management/auth-management.class.d.ts +0 -0
  149. package/lib/{services → src/services}/auth-management/auth-management.d.ts +0 -0
  150. package/lib/{services → src/services}/auth-management/auth-management.shared.d.ts +0 -0
  151. package/lib/{services → src/services}/auth-management/auth-management.shared.js +0 -0
  152. package/lib/{services → src/services}/auth-management/auth-management.utils.d.ts +0 -0
  153. package/lib/{services → src/services}/config/config.class.d.ts +0 -0
  154. package/lib/{services → src/services}/config/config.d.ts +0 -0
  155. package/lib/{services → src/services}/config/config.shared.d.ts +0 -0
  156. package/lib/{services → src/services}/config/config.shared.js +0 -0
  157. package/lib/{services → src/services}/custom/custom.class.d.ts +0 -0
  158. package/lib/{services → src/services}/custom/custom.d.ts +0 -0
  159. package/lib/{services → src/services}/custom/custom.shared.d.ts +0 -0
  160. package/lib/{services → src/services}/custom/custom.shared.js +0 -0
  161. package/lib/{services → src/services}/exchanges/balance/balance.class.d.ts +0 -0
  162. package/lib/{services → src/services}/exchanges/balance/balance.d.ts +0 -0
  163. package/lib/{services → src/services}/exchanges/balance/balance.shared.d.ts +0 -0
  164. package/lib/{services → src/services}/exchanges/balance/balance.shared.js +0 -0
  165. package/lib/{services → src/services}/exchanges/download/download.shared.d.ts +0 -0
  166. package/lib/{services → src/services}/exchanges/download/download.shared.js +0 -0
  167. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.schema.d.ts +0 -0
  168. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.d.ts +0 -0
  169. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.js +0 -0
  170. package/lib/{services → src/services}/exchanges/exchanges.d.ts +0 -0
  171. package/lib/{services → src/services}/exchanges/exchanges.shared.d.ts +0 -0
  172. package/lib/{services → src/services}/exchanges/exchanges.shared.js +0 -0
  173. package/lib/{services → src/services}/exchanges/ticker/ticker.d.ts +0 -0
  174. package/lib/{services → src/services}/exchanges/ticker/ticker.shared.d.ts +0 -0
  175. package/lib/{services → src/services}/exchanges/ticker/ticker.shared.js +0 -0
  176. package/lib/{services → src/services}/homepage/homepage.class.d.ts +1 -1
  177. package/lib/{services → src/services}/homepage/homepage.d.ts +0 -0
  178. package/lib/{services → src/services}/homepage/homepage.shared.d.ts +0 -0
  179. package/lib/{services → src/services}/homepage/homepage.shared.js +0 -0
  180. package/lib/{services → src/services}/index.d.ts +0 -0
  181. package/lib/{services → src/services}/mailer/mailer.class.d.ts +0 -0
  182. package/lib/{services → src/services}/mailer/mailer.d.ts +0 -0
  183. package/lib/{services → src/services}/mailer/mailer.shared.d.ts +0 -0
  184. package/lib/{services → src/services}/mailer/mailer.shared.js +0 -0
  185. package/lib/{services → src/services}/marketplaces/marketplaces.d.ts +0 -0
  186. package/lib/{services → src/services}/marketplaces/marketplaces.shared.d.ts +0 -0
  187. package/lib/{services → src/services}/marketplaces/marketplaces.shared.js +0 -0
  188. package/lib/{services → src/services}/markets/markets.d.ts +0 -0
  189. package/lib/{services → src/services}/markets/markets.schema.d.ts +0 -0
  190. package/lib/{services → src/services}/markets/markets.shared.d.ts +0 -0
  191. package/lib/{services → src/services}/markets/markets.shared.js +0 -0
  192. package/lib/{services → src/services}/messages/messages.d.ts +0 -0
  193. package/lib/{services → src/services}/messages/messages.schema.d.ts +0 -0
  194. package/lib/{services → src/services}/messages/messages.shared.d.ts +0 -0
  195. package/lib/{services → src/services}/messages/messages.shared.js +0 -0
  196. package/lib/{services → src/services}/strategies/ai/ai.d.ts +0 -0
  197. package/lib/{services → src/services}/strategies/ai/ai.schema.d.ts +0 -0
  198. package/lib/{services → src/services}/strategies/ai/ai.shared.d.ts +0 -0
  199. package/lib/{services → src/services}/strategies/ai/ai.shared.js +0 -0
  200. package/lib/{services → src/services}/strategies/ai/stream/stream.class.d.ts +0 -0
  201. package/lib/{services → src/services}/strategies/ai/stream/stream.d.ts +0 -0
  202. package/lib/{services → src/services}/strategies/ai/stream/stream.shared.d.ts +0 -0
  203. package/lib/{services → src/services}/strategies/ai/stream/stream.shared.js +0 -0
  204. package/lib/{services → src/services}/strategies/backtest/backtest.d.ts +0 -0
  205. package/lib/{services → src/services}/strategies/backtest/backtest.shared.d.ts +0 -0
  206. package/lib/{services → src/services}/strategies/backtest/backtest.shared.js +0 -0
  207. package/lib/{services → src/services}/strategies/backtest/results/results.class.d.ts +0 -0
  208. package/lib/{services → src/services}/strategies/backtest/results/results.d.ts +0 -0
  209. package/lib/{services → src/services}/strategies/backtest/results/results.schema.d.ts +0 -0
  210. package/lib/{services → src/services}/strategies/backtest/results/results.shared.d.ts +0 -0
  211. package/lib/{services → src/services}/strategies/backtest/results/results.shared.js +0 -0
  212. package/lib/{services → src/services}/strategies/blob/blob.class.d.ts +0 -0
  213. package/lib/{services → src/services}/strategies/blob/blob.d.ts +0 -0
  214. package/lib/{services → src/services}/strategies/blob/blob.shared.d.ts +0 -0
  215. package/lib/{services → src/services}/strategies/blob/blob.shared.js +0 -0
  216. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.class.d.ts +0 -0
  217. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.schema.d.ts +8 -8
  218. /package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.d.ts +0 -0
  219. /package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.js +0 -0
  220. /package/lib/{services → src/services}/strategies/indicators/indicators.d.ts +0 -0
  221. /package/lib/{services → src/services}/strategies/indicators/indicators.schema.d.ts +0 -0
  222. /package/lib/{services → src/services}/strategies/indicators/indicators.shared.d.ts +0 -0
  223. /package/lib/{services → src/services}/strategies/indicators/indicators.shared.js +0 -0
  224. /package/lib/{services → src/services}/strategies/strategies.d.ts +0 -0
  225. /package/lib/{services → src/services}/strategies/strategies.shared.d.ts +0 -0
  226. /package/lib/{services → src/services}/strategies/strategies.shared.js +0 -0
  227. /package/lib/{services → src/services}/strategies/templates/templates.d.ts +0 -0
  228. /package/lib/{services → src/services}/strategies/templates/templates.schema.d.ts +0 -0
  229. /package/lib/{services → src/services}/strategies/templates/templates.shared.d.ts +0 -0
  230. /package/lib/{services → src/services}/strategies/templates/templates.shared.js +0 -0
  231. /package/lib/{services → src/services}/stripe/charges/charges.class.d.ts +0 -0
  232. /package/lib/{services → src/services}/stripe/charges/charges.d.ts +0 -0
  233. /package/lib/{services → src/services}/stripe/charges/charges.shared.d.ts +0 -0
  234. /package/lib/{services → src/services}/stripe/charges/charges.shared.js +0 -0
  235. /package/lib/{services → src/services}/stripe/customers/cards/cards.class.d.ts +0 -0
  236. /package/lib/{services → src/services}/stripe/customers/cards/cards.d.ts +0 -0
  237. /package/lib/{services → src/services}/stripe/customers/cards/cards.shared.d.ts +0 -0
  238. /package/lib/{services → src/services}/stripe/customers/cards/cards.shared.js +0 -0
  239. /package/lib/{services → src/services}/stripe/customers/customers.class.d.ts +0 -0
  240. /package/lib/{services → src/services}/stripe/customers/customers.d.ts +0 -0
  241. /package/lib/{services → src/services}/stripe/customers/customers.shared.d.ts +0 -0
  242. /package/lib/{services → src/services}/stripe/customers/customers.shared.js +0 -0
  243. /package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.class.d.ts +0 -0
  244. /package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.d.ts +0 -0
  245. /package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.shared.d.ts +0 -0
  246. /package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.shared.js +0 -0
  247. /package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.class.d.ts +0 -0
  248. /package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.d.ts +0 -0
  249. /package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.shared.d.ts +0 -0
  250. /package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.shared.js +0 -0
  251. /package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.class.d.ts +0 -0
  252. /package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.d.ts +0 -0
  253. /package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.shared.d.ts +0 -0
  254. /package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.shared.js +0 -0
  255. /package/lib/{services → src/services}/stripe/products/products.class.d.ts +0 -0
  256. /package/lib/{services → src/services}/stripe/products/products.d.ts +0 -0
  257. /package/lib/{services → src/services}/stripe/products/products.shared.d.ts +0 -0
  258. /package/lib/{services → src/services}/stripe/products/products.shared.js +0 -0
  259. /package/lib/{services → src/services}/stripe/webhooks/webhooks.class.d.ts +0 -0
  260. /package/lib/{services → src/services}/stripe/webhooks/webhooks.d.ts +0 -0
  261. /package/lib/{services → src/services}/stripe/webhooks/webhooks.shared.d.ts +0 -0
  262. /package/lib/{services → src/services}/stripe/webhooks/webhooks.shared.js +0 -0
  263. /package/lib/{services → src/services}/traders/pods/api/api.class.d.ts +0 -0
  264. /package/lib/{services → src/services}/traders/pods/api/api.d.ts +0 -0
  265. /package/lib/{services → src/services}/traders/pods/api/api.shared.d.ts +0 -0
  266. /package/lib/{services → src/services}/traders/pods/api/api.shared.js +0 -0
  267. /package/lib/{services → src/services}/traders/pods/blob/blob.class.d.ts +0 -0
  268. /package/lib/{services → src/services}/traders/pods/blob/blob.d.ts +0 -0
  269. /package/lib/{services → src/services}/traders/pods/blob/blob.shared.d.ts +0 -0
  270. /package/lib/{services → src/services}/traders/pods/blob/blob.shared.js +0 -0
  271. /package/lib/{services → src/services}/traders/pods/events/events.shared.d.ts +0 -0
  272. /package/lib/{services → src/services}/traders/pods/events/events.shared.js +0 -0
  273. /package/lib/{services → src/services}/traders/pods/pods.d.ts +0 -0
  274. /package/lib/{services → src/services}/traders/pods/pods.shared.d.ts +0 -0
  275. /package/lib/{services → src/services}/traders/pods/pods.shared.js +0 -0
  276. /package/lib/{services → src/services}/traders/pods/webhooks/webhooks.schema.d.ts +0 -0
  277. /package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.d.ts +0 -0
  278. /package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.js +0 -0
  279. /package/lib/{services → src/services}/traders/traders.class.d.ts +0 -0
  280. /package/lib/{services → src/services}/traders/traders.d.ts +0 -0
  281. /package/lib/{services → src/services}/traders/traders.shared.d.ts +0 -0
  282. /package/lib/{services → src/services}/traders/traders.shared.js +0 -0
  283. /package/lib/{services → src/services}/users/users.class.d.ts +0 -0
  284. /package/lib/{services → src/services}/users/users.d.ts +0 -0
  285. /package/lib/{services → src/services}/users/users.helper.d.ts +0 -0
  286. /package/lib/{services → src/services}/users/users.shared.d.ts +0 -0
  287. /package/lib/{services → src/services}/users/users.shared.js +0 -0
  288. /package/lib/{services → src/services}/version/version.class.d.ts +0 -0
  289. /package/lib/{services → src/services}/version/version.d.ts +0 -0
  290. /package/lib/{services → src/services}/version/version.shared.d.ts +0 -0
  291. /package/lib/{services → src/services}/version/version.shared.js +0 -0
@@ -1,6 +0,0 @@
1
- export declare class Sqlite {
2
- db: any;
3
- constructor(path: string);
4
- get(sql: any, params?: never[]): any;
5
- run(sql: any, params?: never[]): any;
6
- }
@@ -1,7 +0,0 @@
1
- import { SQSClient } from '@aws-sdk/client-sqs';
2
- export declare class SQSHelper {
3
- client: SQSClient;
4
- constructor();
5
- consume(QueueUrl: string): Promise<any>;
6
- delete(QueueUrl: string, ReceiptHandle: string): Promise<any>;
7
- }
@@ -1,48 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- /** SubscriptionHelper class provides methods for checking user subscriptions and limits. */
3
- export declare class SubscriptionHelper {
4
- private limits;
5
- getLimits(context: HookContext): {
6
- traders: number;
7
- backtest: {
8
- threshold: {
9
- cpu: number;
10
- };
11
- simultaneous: number;
12
- memory: number;
13
- cpu: number;
14
- };
15
- };
16
- /**
17
- * Checks if the user has an active subscription.
18
- *
19
- * @param {HookContext} context - The hook context object.
20
- * @returns {boolean} - Returns true if the user has an active subscription, otherwise undefined.
21
- */
22
- hasActiveSubscription(context: HookContext): true | undefined;
23
- /**
24
- * Checks if the user has a trial subscription.
25
- *
26
- * @param {HookContext} context - The hook context object.
27
- * @returns {boolean} - Returns true if the user has a trial subscription, otherwise undefined.
28
- */
29
- hasFreeTrialSubscriptionExpired(context: HookContext): void;
30
- /**
31
- * Checks if the user can trade with real money.
32
- *
33
- * @param {HookContext} context - The hook context object.
34
- * @returns {Promise<void>} - Returns a promise that resolves if the user can trade with real money.
35
- * @throws {Forbidden} - Throws a Forbidden error if the user does not have an active subscription.
36
- */
37
- verifyIfUserCanTradeWithRealMoney(context: HookContext): Promise<void>;
38
- /**
39
- * Checks if the user is below the limits of traders.
40
- *
41
- * @param {HookContext} context - The hook context object.
42
- * @returns {Promise<void>} - Returns a promise that resolves if the user is below the limits of traders.
43
- * @throws {Forbidden} - Throws a Forbidden error if the user has reached the limit of running traders.
44
- * @throws {Unprocessable} - Throws an Unprocessable error if there is an error getting traders.
45
- */
46
- verifyIfUserIsBelowLimitsOfTraders(context: HookContext): Promise<void>;
47
- verifyBacktestSimultaneouslyLimit(context: HookContext): Promise<void>;
48
- }
@@ -1,32 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- /** The TelegramHelper class provides methods for creating, updating, and deleting Telegram groups. */
3
- export declare class TelegramHelper {
4
- client: any;
5
- constructor(context: HookContext);
6
- /**
7
- * Creates a telegram group with the given title.
8
- *
9
- * @param {string} title - The title of the group.
10
- * @returns {Promise<any>} - A promise that resolves to an object containing the chat_id and invite_link of the
11
- * created group.
12
- * @throws {GeneralError} - If there is an error during the creation of the group.
13
- */
14
- createGroup(title: string): Promise<any>;
15
- /**
16
- * Updates the title of a telegram group.
17
- *
18
- * @param {any} chat_id - The ID of the group chat.
19
- * @param {string} title - The new title for the group.
20
- * @returns {Promise<any>} - A promise that resolves to the updated group object.
21
- * @throws {GeneralError} - If there is an error during the update of the group title.
22
- */
23
- updateGroup(chat_id: any, title: string): Promise<any>;
24
- /**
25
- * Deletes a telegram group with the given chat ID.
26
- *
27
- * @param {any} chat_id - The ID of the group chat.
28
- * @returns {Promise<any>} - A promise that resolves to the result of deleting the group.
29
- * @throws {GeneralError} - If there is an error during the deletion of the group.
30
- */
31
- deleteGroup(chat_id: any): Promise<any>;
32
- }
@@ -1,38 +0,0 @@
1
- /// <reference types="node" />
2
- import { HookContext } from '@feathersjs/feathers';
3
- import { PathLike } from 'fs';
4
- import { Traders } from 'src/services/traders/traders.schema';
5
- /** Helper class for traders. */
6
- export declare class TraderHelper {
7
- /**
8
- * Returns the webhook URL based on the environment.
9
- *
10
- * @param {HookContext} context - The hook context object.
11
- * @returns {PathLike} - The webhook URL.
12
- */
13
- getWebhookUrl(context: HookContext): PathLike;
14
- /**
15
- * Returns the path to the traders data directory.
16
- *
17
- * @param {HookContext} context - The hook context object.
18
- * @returns {PathLike} - The path to the traders data directory.
19
- */
20
- getTradersDataPath(context: HookContext): PathLike;
21
- getRelativeTradersDataPath(context: HookContext): PathLike;
22
- /**
23
- * Generates the webhooks configuration object.
24
- *
25
- * @param {HookContext} context - The hook context object.
26
- * @returns {any} - The webhooks configuration object.
27
- */
28
- generateWebhooks(context: HookContext): any;
29
- generateApiServer(context: HookContext): any;
30
- /**
31
- * Generates the Telegram configuration object.
32
- *
33
- * @param {any} chat_id - The chat ID.
34
- * @param {string} invite_link - The invite link.
35
- * @returns {Pick<Traders, 'telegram'>} - The Telegram configuration object.
36
- */
37
- generateTelegram(chat_id: any, invite_link: string): Pick<Traders, 'telegram'>;
38
- }
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const ccxtLoadMarketplacesMocked: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../../declarations';
2
- export declare const ccxtLoadMarketplaces: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../../declarations';
2
- export declare const ccxtLoadMarkets: (context: HookContext, next?: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const configPreparation: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const setupFilesystem: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const setupInfo: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const setupLoadIndicators: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../../declarations';
3
- export declare const setupLoadStrategyTemplates: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- export declare const backtestCopyCandlesFromUserData: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const backtestGenerateAndQueue: (context: HookContext) => Promise<void>;
@@ -1,8 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- /**
3
- * Generates a backtest configuration file for a trader.
4
- *
5
- * @param {HookContext} context - The hook context object.
6
- * @returns {Promise<void>} - A promise that resolves when the configuration file is generated.
7
- */
8
- export declare const backtestGenerateConfig: (context: HookContext) => Promise<void>;
@@ -1,8 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- /**
3
- * Generates the exchange configuration for backtesting.
4
- *
5
- * @param {HookContext} context - The hook context.
6
- * @returns {Promise<void>} - A promise that resolves when the exchange configuration is generated.
7
- */
8
- export declare const backtestGenerateExchangeConfig: (context: HookContext) => Promise<void>;
@@ -1,14 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- /**
3
- * Runs the 'backtest-get-results' hook on the specified context. Retrieves the backtest results using the
4
- * BacktestHelper.getResults method and assigns them to the context data. Retrieves the elapsed time using the
5
- * BacktestHelper.getElapsedTime method. Calculates the difference in seconds between the current time and the start
6
- * time of the backtest. Logs the difference and the backtest results. Creates a new message in the 'messages' service
7
- * with the title 'New backtest results' and the description 'From strategy {strategy name}'. Assigns the strategyId to
8
- * the context data. Creates a new backtest result in the 'strategies/backtest/results' service with the strategyId,
9
- * traderId, and executionTimeInSeconds.
10
- *
11
- * @param {HookContext} context - The hook context.
12
- * @returns {Promise<void>} - A promise that resolves when the hook is completed.
13
- */
14
- export declare const backtestGetResults: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const backtestInDiskCloneStrategy: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const backtestValidate: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const bootstrapUserExchanges: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const bootstrapUserStrategies: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const bootstrapUserTraders: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const checkRequiredCredentials: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const enrichWebhookToEvent: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const ccxtBalancesPropagateToExchange: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../../declarations';
2
- export declare const afterFindCcxtLoadMarkets: (context: HookContext, next?: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const whitelistBlacklistTransformAfterGetOrPatch: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const ccxtGetBalances: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const blacklistValidationPerExchange: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const ccxtConnectExchange: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const ccxtLoadMarkets: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const whitelistBlacklistTransform: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const whitelistBlacklistValidate: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../../declarations';
2
- export declare const getRecentDownloadedDataInfo: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../../declarations';
2
- export declare const generateConfig: (context: HookContext) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../../declarations';
2
- export declare const processExchangeDataDownload: (context: HookContext) => Promise<any>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const fileGenerateConfigHyperopt: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const hyperoptGenerateAndQueue: (context: HookContext) => Promise<void>;
@@ -1,8 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- /**
3
- * Generates the exchange configuration for hyperopting.
4
- *
5
- * @param {HookContext} context - The hook context.
6
- * @returns {Promise<void>} - A promise that resolves when the exchange configuration is generated.
7
- */
8
- export declare const hyperoptGenerateExchangeConfig: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const hyperoptGetResults: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- export declare const hyperoptInDiskCloneStrategy: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const hyperoptTrackUsage: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const initDataFolder: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../declarations';
2
- export declare const logError: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const messagesProcessData: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const openAiProcessRequest: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const pairsTransform: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const removeContainer: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const revenueCatIsSubscriptionActive: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const setDefaultStrategy: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../declarations';
2
- export declare const setupAWSSdk: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../declarations';
2
- export declare const setupCronjobs: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupEnsureImage: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../declarations';
2
- export declare const setupFirebase: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupHomepage: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupMautic: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupMixpanel: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupMaildevWhileInTestEnv: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import { NextFunction } from '@feathersjs/feathers';
2
- import type { HookContext } from '../declarations';
3
- export declare const setupQueues: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext, NextFunction } from '../declarations';
2
- export declare const setupStripe: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,3 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- import { NextFunction } from '@feathersjs/feathers';
3
- export declare const setupTelegramClient: (context: HookContext, next: NextFunction) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const sqliteResetDatabase: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const diskCreateStrategy: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const diskRemoveStrategy: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const fileStrategiesClone: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const stripeCheckSubscription: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const stripeCreatePaymentIntent: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const stripeIsSubscriptionActive: (context: HookContext) => Promise<HookContext>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const stripeSyncCustomerData: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const telegramCreateGroup: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const telegramDeleteGroup: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const telegramUpdateGroup: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../declarations';
2
- export declare const tickersFetch: (context: HookContext) => Promise<HookContext | undefined>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const fileCandlesClone: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const foldersInitialize: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const transformPairlistPlugins: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const containerApiControl: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const checkIfContainerStopIsRequested: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const createTraderContainer: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const generateExchangeConfig: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const generateTraderConfig: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- export declare const podsContainerInspect: (context: HookContext) => Promise<void>;
@@ -1,7 +0,0 @@
1
- import type { HookContext } from '../../declarations';
2
- /**
3
- * Deploys a container using Docker.
4
- *
5
- * @param context The context object containing the necessary data for deploying the container.
6
- */
7
- export declare const podsProcessWorker: (context: HookContext) => Promise<void>;
@@ -1,2 +0,0 @@
1
- import type { HookContext } from '../../../src/declarations';
2
- export declare const emailVerifySignup: (context: HookContext) => Promise<void>;
package/lib/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
package/lib/logger.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const logger: import("winston").Logger;
package/lib/mongodb.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { Db } from 'mongodb';
2
- import type { Application } from './declarations';
3
- declare module './declarations' {
4
- interface Configuration {
5
- mongodbClient: Promise<Db>;
6
- }
7
- }
8
- export declare const mongodb: (app: Application) => void;
@@ -1 +0,0 @@
1
- export {};
package/lib/sentry.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const tracingMiddleWare: (ctx: any, next: any) => void;
2
- export declare const requestHandler: (ctx: any, next: any) => void;
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import { Ajv } from '@feathersjs/schema';
2
- export declare const dataValidator: Ajv;
3
- export declare const queryValidator: Ajv;
File without changes
File without changes