@cryptorobot.ai/client 0.0.36 → 0.0.38

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 (294) hide show
  1. package/lib/{services → src/services}/exchanges/download/download.class.d.ts +1 -1
  2. package/lib/{services → src/services}/exchanges/download/download.d.ts +1 -0
  3. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.class.d.ts +1 -1
  4. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.d.ts +1 -0
  5. package/lib/{services → src/services}/exchanges/exchanges.class.d.ts +1 -1
  6. package/lib/{services → src/services}/exchanges/ticker/ticker.class.d.ts +1 -1
  7. package/lib/{services → src/services}/homepage/homepage.schema.d.ts +8 -0
  8. package/lib/{services → src/services}/marketplaces/marketplaces.class.d.ts +1 -1
  9. package/lib/{services → src/services}/markets/markets.class.d.ts +1 -1
  10. package/lib/{services → src/services}/messages/messages.class.d.ts +1 -1
  11. package/lib/{services → src/services}/strategies/ai/ai.class.d.ts +1 -1
  12. package/lib/{services → src/services}/strategies/backtest/backtest.class.d.ts +1 -1
  13. package/lib/{services → src/services}/strategies/backtest/backtest.schema.d.ts +36 -36
  14. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.d.ts +1 -0
  15. package/lib/{services → src/services}/strategies/indicators/indicators.class.d.ts +1 -1
  16. package/lib/{services → src/services}/strategies/strategies.class.d.ts +1 -1
  17. package/lib/{services → src/services}/strategies/templates/templates.class.d.ts +1 -1
  18. package/lib/{services → src/services}/traders/pods/api/api.schema.d.ts +112 -112
  19. package/lib/{services → src/services}/traders/pods/events/events.d.ts +1 -0
  20. package/lib/{services → src/services}/traders/pods/events/events.schema.d.ts +85 -3
  21. package/lib/{services → src/services}/traders/pods/pods.class.d.ts +1 -1
  22. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.class.d.ts +1 -1
  23. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.d.ts +1 -0
  24. package/lib/{services → src/services}/users/users.schema.d.ts +185 -3
  25. package/package.json +7 -36
  26. package/lib/app.d.ts +0 -4
  27. package/lib/authentication.d.ts +0 -8
  28. package/lib/channels.d.ts +0 -3
  29. package/lib/client.d.ts +0 -87
  30. package/lib/configuration.d.ts +0 -227
  31. package/lib/declarations.d.ts +0 -16
  32. package/lib/firebase-push-notification.d.ts +0 -1
  33. package/lib/helper.d.ts +0 -22
  34. package/lib/helpers/app.helper.d.ts +0 -17
  35. package/lib/helpers/backtest.helper.d.ts +0 -61
  36. package/lib/helpers/ccxt.helper.d.ts +0 -93
  37. package/lib/helpers/deployments.helper.d.ts +0 -84
  38. package/lib/helpers/funnel.helper.d.ts +0 -19
  39. package/lib/helpers/handlebars.helper.d.ts +0 -25
  40. package/lib/helpers/hyperopt.helper.d.ts +0 -22
  41. package/lib/helpers/logging.helper.d.ts +0 -9
  42. package/lib/helpers/mailer.helper.d.ts +0 -14
  43. package/lib/helpers/push-notification.helper.d.ts +0 -8
  44. package/lib/helpers/queue.helper.d.ts +0 -13
  45. package/lib/helpers/reports.helper.d.ts +0 -5
  46. package/lib/helpers/rules.helper.d.ts +0 -13
  47. package/lib/helpers/sqlite3.helper.d.ts +0 -6
  48. package/lib/helpers/sqs.helper.d.ts +0 -7
  49. package/lib/helpers/subscription.helper.d.ts +0 -40
  50. package/lib/helpers/telegram.helper.d.ts +0 -32
  51. package/lib/helpers/trader.helper.d.ts +0 -38
  52. package/lib/hooks/application/setup-ccxt-load-marketplaces-mocked.d.ts +0 -3
  53. package/lib/hooks/application/setup-ccxt-load-marketplaces.d.ts +0 -2
  54. package/lib/hooks/application/setup-ccxt-load-markets.d.ts +0 -2
  55. package/lib/hooks/application/setup-config-preparation.d.ts +0 -3
  56. package/lib/hooks/application/setup-fs.d.ts +0 -3
  57. package/lib/hooks/application/setup-info.d.ts +0 -3
  58. package/lib/hooks/application/setup-load-indicators.d.ts +0 -3
  59. package/lib/hooks/application/setup-load-strategy-templates.d.ts +0 -3
  60. package/lib/hooks/backtest-copy-candles-from-user-data.d.ts +0 -2
  61. package/lib/hooks/backtest-generate-and-queue.d.ts +0 -2
  62. package/lib/hooks/backtest-generate-config.d.ts +0 -8
  63. package/lib/hooks/backtest-generate-exchange-config.d.ts +0 -8
  64. package/lib/hooks/backtest-get-results.d.ts +0 -14
  65. package/lib/hooks/backtest-in-disk-clone-strategy.d.ts +0 -2
  66. package/lib/hooks/backtest-validate.d.ts +0 -2
  67. package/lib/hooks/bootstrap-user-exchanges.d.ts +0 -2
  68. package/lib/hooks/bootstrap-user-strategies.d.ts +0 -2
  69. package/lib/hooks/bootstrap-user-traders.d.ts +0 -2
  70. package/lib/hooks/check-required-credentials.d.ts +0 -2
  71. package/lib/hooks/enrich-webhook-to-event.d.ts +0 -2
  72. package/lib/hooks/exchanges/after-create-ccxt-balances-propagate-to-exchange.d.ts +0 -2
  73. package/lib/hooks/exchanges/after-find-ccxt-load-markets.d.ts +0 -2
  74. package/lib/hooks/exchanges/after-get-whitelist-blacklist-transform.d.ts +0 -2
  75. package/lib/hooks/exchanges/before-create-ccxt-get-balances.d.ts +0 -2
  76. package/lib/hooks/exchanges/before-patch-blacklist-validation-per-exchange.d.ts +0 -2
  77. package/lib/hooks/exchanges/before-patch-ccxt-connect-exchange.d.ts +0 -2
  78. package/lib/hooks/exchanges/before-patch-ccxt-load-markets.d.ts +0 -2
  79. package/lib/hooks/exchanges/before-patch-whitelist-blacklist-transform.d.ts +0 -2
  80. package/lib/hooks/exchanges/before-patch-whitelist-blacklist-validate.d.ts +0 -2
  81. package/lib/hooks/exchanges/download/after-create-get-recent-downloaded-data-info.d.ts +0 -2
  82. package/lib/hooks/exchanges/download/before-create-generate-config.d.ts +0 -2
  83. package/lib/hooks/exchanges/download/before-create-process-exchange-data-download.d.ts +0 -2
  84. package/lib/hooks/file-generate-config-hyperopt.d.ts +0 -2
  85. package/lib/hooks/get-pods-container-inspect.d.ts +0 -2
  86. package/lib/hooks/hyperopt-generate-and-queue.d.ts +0 -2
  87. package/lib/hooks/hyperopt-generate-exchange-config.d.ts +0 -8
  88. package/lib/hooks/hyperopt-get-results.d.ts +0 -2
  89. package/lib/hooks/hyperopt-in-disk-clone-strategy.d.ts +0 -2
  90. package/lib/hooks/hyperopt-track-usage.d.ts +0 -2
  91. package/lib/hooks/init-data-folder.d.ts +0 -2
  92. package/lib/hooks/log-error.d.ts +0 -2
  93. package/lib/hooks/messages/messages-process-data.d.ts +0 -2
  94. package/lib/hooks/openai-process-request.d.ts +0 -2
  95. package/lib/hooks/pairs-transform.d.ts +0 -2
  96. package/lib/hooks/remove-container.d.ts +0 -2
  97. package/lib/hooks/revenuecat-is-subscription-active.d.ts +0 -2
  98. package/lib/hooks/set-default-strategy.d.ts +0 -2
  99. package/lib/hooks/setup-aws-sdk.d.ts +0 -2
  100. package/lib/hooks/setup-cronjobs.d.ts +0 -2
  101. package/lib/hooks/setup-ensure-image.d.ts +0 -3
  102. package/lib/hooks/setup-firebase.d.ts +0 -2
  103. package/lib/hooks/setup-homepage.d.ts +0 -3
  104. package/lib/hooks/setup-mautic.d.ts +0 -3
  105. package/lib/hooks/setup-mixpanel.d.ts +0 -3
  106. package/lib/hooks/setup-prepare-maildev-while-in-test-env.d.ts +0 -3
  107. package/lib/hooks/setup-queues.d.ts +0 -3
  108. package/lib/hooks/setup-stripe.d.ts +0 -2
  109. package/lib/hooks/setup-telegram-client.d.ts +0 -3
  110. package/lib/hooks/sqlite-reset-database.d.ts +0 -2
  111. package/lib/hooks/strategies/disk-create-strategy.d.ts +0 -2
  112. package/lib/hooks/strategies/disk-remove-strategy.d.ts +0 -2
  113. package/lib/hooks/strategies/file-strategies-clone.d.ts +0 -2
  114. package/lib/hooks/stripe-check-subscription.d.ts +0 -2
  115. package/lib/hooks/stripe-create-payment-intent.d.ts +0 -2
  116. package/lib/hooks/stripe-is-subscription-active.d.ts +0 -2
  117. package/lib/hooks/stripe-sync-customer-data.d.ts +0 -2
  118. package/lib/hooks/telegram-create-group.d.ts +0 -2
  119. package/lib/hooks/telegram-delete-group.d.ts +0 -2
  120. package/lib/hooks/telegram-update-group.d.ts +0 -2
  121. package/lib/hooks/tickers-fetch.d.ts +0 -2
  122. package/lib/hooks/traders/after-patch-file-candles-clone.d.ts +0 -2
  123. package/lib/hooks/traders/before-patch-folders-initialize.d.ts +0 -2
  124. package/lib/hooks/traders/before-patch-transform-pairlist-plugins.d.ts +0 -2
  125. package/lib/hooks/traders/container-api-control.d.ts +0 -2
  126. package/lib/hooks/traders/container-stop.d.ts +0 -2
  127. package/lib/hooks/traders/create-trader-container.d.ts +0 -2
  128. package/lib/hooks/traders/generate-exchange-config.d.ts +0 -2
  129. package/lib/hooks/traders/generate-trader-config.d.ts +0 -2
  130. package/lib/hooks/traders/pods-container-inspect.d.ts +0 -2
  131. package/lib/hooks/traders/pods-process-worker.d.ts +0 -7
  132. package/lib/hooks/users/email-verify-signup.d.ts +0 -2
  133. package/lib/hooks/whitelist-set-default-by-volume.d.ts +0 -2
  134. package/lib/index.d.ts +0 -1
  135. package/lib/logger.d.ts +0 -1
  136. package/lib/mongodb.d.ts +0 -8
  137. package/lib/prepare-for-publish.d.ts +0 -1
  138. package/lib/sentry.d.ts +0 -2
  139. package/lib/telegram-get-credentials.d.ts +0 -1
  140. package/lib/validators.d.ts +0 -3
  141. package/readme.client.md +0 -4
  142. package/lib/{client.js → src/client.js} +0 -0
  143. package/lib/{services → src/services}/auth-management/auth-management.class.d.ts +0 -0
  144. package/lib/{services → src/services}/auth-management/auth-management.d.ts +0 -0
  145. package/lib/{services → src/services}/auth-management/auth-management.shared.d.ts +0 -0
  146. package/lib/{services → src/services}/auth-management/auth-management.shared.js +0 -0
  147. package/lib/{services → src/services}/auth-management/auth-management.utils.d.ts +0 -0
  148. package/lib/{services → src/services}/config/config.class.d.ts +0 -0
  149. package/lib/{services → src/services}/config/config.d.ts +0 -0
  150. package/lib/{services → src/services}/config/config.shared.d.ts +0 -0
  151. package/lib/{services → src/services}/config/config.shared.js +0 -0
  152. package/lib/{services → src/services}/custom/custom.class.d.ts +0 -0
  153. package/lib/{services → src/services}/custom/custom.d.ts +0 -0
  154. package/lib/{services → src/services}/custom/custom.shared.d.ts +0 -0
  155. package/lib/{services → src/services}/custom/custom.shared.js +0 -0
  156. package/lib/{services → src/services}/exchanges/balance/balance.class.d.ts +0 -0
  157. package/lib/{services → src/services}/exchanges/balance/balance.d.ts +0 -0
  158. package/lib/{services → src/services}/exchanges/balance/balance.schema.d.ts +0 -0
  159. package/lib/{services → src/services}/exchanges/balance/balance.shared.d.ts +0 -0
  160. package/lib/{services → src/services}/exchanges/balance/balance.shared.js +0 -0
  161. package/lib/{services → src/services}/exchanges/download/download.schema.d.ts +0 -0
  162. package/lib/{services → src/services}/exchanges/download/download.shared.d.ts +0 -0
  163. package/lib/{services → src/services}/exchanges/download/download.shared.js +0 -0
  164. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.schema.d.ts +0 -0
  165. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.d.ts +0 -0
  166. package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.js +0 -0
  167. package/lib/{services → src/services}/exchanges/exchanges.d.ts +0 -0
  168. package/lib/{services → src/services}/exchanges/exchanges.schema.d.ts +0 -0
  169. package/lib/{services → src/services}/exchanges/exchanges.shared.d.ts +0 -0
  170. package/lib/{services → src/services}/exchanges/exchanges.shared.js +0 -0
  171. package/lib/{services → src/services}/exchanges/ticker/ticker.d.ts +0 -0
  172. package/lib/{services → src/services}/exchanges/ticker/ticker.schema.d.ts +0 -0
  173. package/lib/{services → src/services}/exchanges/ticker/ticker.shared.d.ts +0 -0
  174. package/lib/{services → src/services}/exchanges/ticker/ticker.shared.js +0 -0
  175. package/lib/{services → src/services}/homepage/homepage.class.d.ts +1 -1
  176. package/lib/{services → src/services}/homepage/homepage.d.ts +0 -0
  177. package/lib/{services → src/services}/homepage/homepage.shared.d.ts +0 -0
  178. package/lib/{services → src/services}/homepage/homepage.shared.js +0 -0
  179. package/lib/{services → src/services}/index.d.ts +0 -0
  180. package/lib/{services → src/services}/mailer/mailer.class.d.ts +0 -0
  181. package/lib/{services → src/services}/mailer/mailer.d.ts +0 -0
  182. package/lib/{services → src/services}/mailer/mailer.shared.d.ts +0 -0
  183. package/lib/{services → src/services}/mailer/mailer.shared.js +0 -0
  184. package/lib/{services → src/services}/marketplaces/marketplaces.d.ts +0 -0
  185. package/lib/{services → src/services}/marketplaces/marketplaces.shared.d.ts +0 -0
  186. package/lib/{services → src/services}/marketplaces/marketplaces.shared.js +0 -0
  187. package/lib/{services → src/services}/markets/markets.d.ts +0 -0
  188. package/lib/{services → src/services}/markets/markets.schema.d.ts +0 -0
  189. package/lib/{services → src/services}/markets/markets.shared.d.ts +0 -0
  190. package/lib/{services → src/services}/markets/markets.shared.js +0 -0
  191. package/lib/{services → src/services}/messages/messages.d.ts +0 -0
  192. package/lib/{services → src/services}/messages/messages.schema.d.ts +0 -0
  193. package/lib/{services → src/services}/messages/messages.shared.d.ts +0 -0
  194. package/lib/{services → src/services}/messages/messages.shared.js +0 -0
  195. package/lib/{services → src/services}/strategies/ai/ai.d.ts +0 -0
  196. package/lib/{services → src/services}/strategies/ai/ai.schema.d.ts +0 -0
  197. package/lib/{services → src/services}/strategies/ai/ai.shared.d.ts +0 -0
  198. package/lib/{services → src/services}/strategies/ai/ai.shared.js +0 -0
  199. package/lib/{services → src/services}/strategies/ai/stream/stream.class.d.ts +0 -0
  200. package/lib/{services → src/services}/strategies/ai/stream/stream.d.ts +0 -0
  201. package/lib/{services → src/services}/strategies/ai/stream/stream.shared.d.ts +0 -0
  202. package/lib/{services → src/services}/strategies/ai/stream/stream.shared.js +0 -0
  203. package/lib/{services → src/services}/strategies/backtest/backtest.d.ts +0 -0
  204. package/lib/{services → src/services}/strategies/backtest/backtest.shared.d.ts +0 -0
  205. package/lib/{services → src/services}/strategies/backtest/backtest.shared.js +0 -0
  206. package/lib/{services → src/services}/strategies/backtest/results/results.class.d.ts +0 -0
  207. package/lib/{services → src/services}/strategies/backtest/results/results.d.ts +0 -0
  208. package/lib/{services → src/services}/strategies/backtest/results/results.schema.d.ts +0 -0
  209. package/lib/{services → src/services}/strategies/backtest/results/results.shared.d.ts +0 -0
  210. package/lib/{services → src/services}/strategies/backtest/results/results.shared.js +0 -0
  211. package/lib/{services → src/services}/strategies/blob/blob.class.d.ts +0 -0
  212. package/lib/{services → src/services}/strategies/blob/blob.d.ts +0 -0
  213. package/lib/{services → src/services}/strategies/blob/blob.shared.d.ts +0 -0
  214. package/lib/{services → src/services}/strategies/blob/blob.shared.js +0 -0
  215. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.class.d.ts +0 -0
  216. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.schema.d.ts +4 -4
  217. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.d.ts +0 -0
  218. package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.js +0 -0
  219. package/lib/{services → src/services}/strategies/indicators/indicators.d.ts +0 -0
  220. package/lib/{services → src/services}/strategies/indicators/indicators.schema.d.ts +0 -0
  221. package/lib/{services → src/services}/strategies/indicators/indicators.shared.d.ts +0 -0
  222. package/lib/{services → src/services}/strategies/indicators/indicators.shared.js +0 -0
  223. package/lib/{services → src/services}/strategies/strategies.d.ts +0 -0
  224. package/lib/{services → src/services}/strategies/strategies.schema.d.ts +24 -24
  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.class.d.ts +0 -0
  272. package/lib/{services → src/services}/traders/pods/events/events.shared.d.ts +0 -0
  273. package/lib/{services → src/services}/traders/pods/events/events.shared.js +0 -0
  274. package/lib/{services → src/services}/traders/pods/pods.d.ts +0 -0
  275. package/lib/{services → src/services}/traders/pods/pods.schema.d.ts +40 -40
  276. package/lib/{services → src/services}/traders/pods/pods.shared.d.ts +0 -0
  277. package/lib/{services → src/services}/traders/pods/pods.shared.js +0 -0
  278. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.schema.d.ts +0 -0
  279. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.d.ts +0 -0
  280. package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.js +0 -0
  281. package/lib/{services → src/services}/traders/traders.class.d.ts +0 -0
  282. package/lib/{services → src/services}/traders/traders.d.ts +0 -0
  283. package/lib/{services → src/services}/traders/traders.schema.d.ts +16 -16
  284. /package/lib/{services → src/services}/traders/traders.shared.d.ts +0 -0
  285. /package/lib/{services → src/services}/traders/traders.shared.js +0 -0
  286. /package/lib/{services → src/services}/users/users.class.d.ts +0 -0
  287. /package/lib/{services → src/services}/users/users.d.ts +0 -0
  288. /package/lib/{services → src/services}/users/users.helper.d.ts +0 -0
  289. /package/lib/{services → src/services}/users/users.shared.d.ts +0 -0
  290. /package/lib/{services → src/services}/users/users.shared.js +0 -0
  291. /package/lib/{services → src/services}/version/version.class.d.ts +0 -0
  292. /package/lib/{services → src/services}/version/version.d.ts +0 -0
  293. /package/lib/{services → src/services}/version/version.shared.d.ts +0 -0
  294. /package/lib/{services → src/services}/version/version.shared.js +0 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cryptorobot.ai/client",
3
3
  "description": "A typed client for the cryptorobot.ai platform",
4
- "version": "0.0.36",
4
+ "version": "0.0.38",
5
5
  "homepage": "",
6
6
  "keywords": [
7
7
  "cryptocurrency",
@@ -16,38 +16,9 @@
16
16
  "contributors": [],
17
17
  "bugs": {},
18
18
  "engines": {
19
- "node": ">= 18.0.0"
20
- },
21
- "feathers": {
22
- "language": "ts",
23
- "packager": "pnpm",
24
- "database": "mongodb",
25
- "framework": "koa",
26
- "transports": [
27
- "rest",
28
- "websockets"
29
- ],
30
- "schema": "typebox"
31
- },
32
- "directories": {
33
- "lib": "src",
34
- "test": "test",
35
- "config": "config"
36
- },
37
- "files": [
38
- "lib/client.js",
39
- "lib/**/*.d.ts",
40
- "lib/**/*.shared.js"
41
- ],
42
- "main": "lib/client",
43
- "config": {
44
- "commitizen": {
45
- "path": "node_modules/cz-customizable"
46
- },
47
- "cz-customizable": {
48
- "config": ".cz.config.js"
49
- }
19
+ "node": ">= 22.0.0"
50
20
  },
21
+ "main": "lib/src/client",
51
22
  "dependencies": {
52
23
  "@feathersjs/authentication": "^5.0.21",
53
24
  "@feathersjs/authentication-client": "^5.0.21",
@@ -56,13 +27,13 @@
56
27
  "@feathersjs/configuration": "^5.0.21",
57
28
  "@feathersjs/errors": "^5.0.21",
58
29
  "@feathersjs/feathers": "^5.0.21",
59
- "@feathersjs/schema": "^5.0.21",
60
30
  "@feathersjs/koa": "^5.0.21",
31
+ "@feathersjs/memory": "^5.0.21",
61
32
  "@feathersjs/mongodb": "^5.0.21",
33
+ "@feathersjs/schema": "^5.0.21",
62
34
  "@feathersjs/socketio": "^5.0.21",
63
- "@feathersjs/transport-commons": "^5.0.21",
64
- "@feathersjs/typebox": "^5.0.21",
65
35
  "@feathersjs/socketio-client": "^5.0.21",
66
- "@feathersjs/memory": "^5.0.21"
36
+ "@feathersjs/transport-commons": "^5.0.21",
37
+ "@feathersjs/typebox": "^5.0.21"
67
38
  }
68
39
  }
package/lib/app.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import type { Application } from './declarations';
2
- declare const app: Application;
3
- export declare const hooks: any;
4
- export { app };
@@ -1,8 +0,0 @@
1
- import { AuthenticationService } from '@feathersjs/authentication';
2
- import type { Application } from './declarations';
3
- declare module './declarations' {
4
- interface ServiceTypes {
5
- authentication: AuthenticationService;
6
- }
7
- }
8
- export declare const authentication: (app: Application) => void;
package/lib/channels.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import '@feathersjs/transport-commons';
2
- import type { Application } from './declarations';
3
- export declare const channels: (app: Application) => void;
package/lib/client.d.ts DELETED
@@ -1,87 +0,0 @@
1
- import type { AuthenticationClientOptions } from '@feathersjs/authentication-client';
2
- import './services/stripe/webhooks/webhooks.shared';
3
- export type { StripeWebhooks, StripeWebhooksData, StripeWebhooksPatch, StripeWebhooksQuery } from './services/stripe/webhooks/webhooks.shared';
4
- export type { Config, ConfigData, ConfigPatch, ConfigQuery } from './services/config/config.shared';
5
- export type { Custom, CustomData, CustomPatch, CustomQuery } from './services/custom/custom.shared';
6
- export type { ExchangesBalance, ExchangesBalanceData, ExchangesBalancePatch, ExchangesBalanceQuery } from './services/exchanges/balance/balance.shared';
7
- export type { ExchangesDownload, ExchangesDownloadData, ExchangesDownloadPatch, ExchangesDownloadQuery } from './services/exchanges/download/download.shared';
8
- export type { ExchangesDownloadWebhooks, ExchangesDownloadWebhooksData, ExchangesDownloadWebhooksPatch, ExchangesDownloadWebhooksQuery } from './services/exchanges/download/webhooks/webhooks.shared';
9
- export type { Exchanges, ExchangesData, ExchangesPatch, ExchangesQuery } from './services/exchanges/exchanges.shared';
10
- export type { ExchangesTicker, ExchangesTickerData, ExchangesTickerPatch, ExchangesTickerQuery } from './services/exchanges/ticker/ticker.shared';
11
- export type { HomepageService } from './services/homepage/homepage.class';
12
- export type { Homepage, HomepageData, HomepagePatch, HomepageQuery } from './services/homepage/homepage.shared';
13
- export type { Marketplaces, MarketplacesData, MarketplacesPatch, MarketplacesQuery } from './services/marketplaces/marketplaces.shared';
14
- export type { Markets, MarketsData, MarketsPatch, MarketsQuery } from './services/markets/markets.shared';
15
- export type { Messages, MessagesData, MessagesPatch, MessagesQuery } from './services/messages/messages.shared';
16
- export type { StrategiesAi, StrategiesAiData, StrategiesAiPatch, StrategiesAiQuery } from './services/strategies/ai/ai.shared';
17
- export type { StrategiesAiStream, StrategiesAiStreamData, StrategiesAiStreamPatch, StrategiesAiStreamQuery } from './services/strategies/ai/stream/stream.shared';
18
- export type { StrategiesBacktest, StrategiesBacktestData, StrategiesBacktestPatch, StrategiesBacktestQuery } from './services/strategies/backtest/backtest.shared';
19
- export type { StrategiesBlob, StrategiesBlobData, StrategiesBlobPatch, StrategiesBlobQuery } from './services/strategies/blob/blob.shared';
20
- export type { StrategiesHyperopt, StrategiesHyperoptData, StrategiesHyperoptPatch, StrategiesHyperoptQuery } from './services/strategies/hyperopt/hyperopt.shared';
21
- export type { StrategiesIndicators, StrategiesIndicatorsData, StrategiesIndicatorsPatch, StrategiesIndicatorsQuery } from './services/strategies/indicators/indicators.shared';
22
- export type { Strategies, StrategiesData, StrategiesPatch, StrategiesQuery } from './services/strategies/strategies.shared';
23
- export type { StrategiesTemplates, StrategiesTemplatesData, StrategiesTemplatesPatch, StrategiesTemplatesQuery } from './services/strategies/templates/templates.shared';
24
- export type { StripeCharges, StripeChargesData, StripeChargesPatch, StripeChargesQuery } from './services/stripe/charges/charges.shared';
25
- export type { StripeCustomersCards, StripeCustomersCardsData, StripeCustomersCardsPatch, StripeCustomersCardsQuery } from './services/stripe/customers/cards/cards.shared';
26
- export type { StripeCustomers, StripeCustomersData, StripeCustomersPatch, StripeCustomersQuery } from './services/stripe/customers/customers.shared';
27
- export type { StripeCustomersPaymentintent, StripeCustomersPaymentintentData, StripeCustomersPaymentintentPatch, StripeCustomersPaymentintentQuery } from './services/stripe/customers/paymentintent/paymentintent.shared';
28
- export type { StripeCustomersPaymentmethods, StripeCustomersPaymentmethodsData, StripeCustomersPaymentmethodsPatch, StripeCustomersPaymentmethodsQuery } from './services/stripe/customers/paymentmethods/paymentmethods.shared';
29
- export type { StripeCustomersSubscriptions, StripeCustomersSubscriptionsData, StripeCustomersSubscriptionsPatch, StripeCustomersSubscriptionsQuery } from './services/stripe/customers/subscriptions/subscriptions.shared';
30
- export type { StripeProducts, StripeProductsData, StripeProductsPatch, StripeProductsQuery } from './services/stripe/products/products.shared';
31
- export type { TradersPodsApi, TradersPodsApiData, TradersPodsApiPatch, TradersPodsApiQuery } from './services/traders/pods/api/api.shared';
32
- export type { TradersPodsBlob, TradersPodsBlobData, TradersPodsBlobPatch, TradersPodsBlobQuery } from './services/traders/pods/blob/blob.shared';
33
- export type { TradersPodsEvents, TradersPodsEventsData, TradersPodsEventsPatch, TradersPodsEventsQuery } from './services/traders/pods/events/events.shared';
34
- export type { TradersPods, TradersPodsData, TradersPodsPatch, TradersPodsQuery } from './services/traders/pods/pods.shared';
35
- export type { TradersPodsWebhooks, TradersPodsWebhooksData, TradersPodsWebhooksPatch, TradersPodsWebhooksQuery } from './services/traders/pods/webhooks/webhooks.shared';
36
- export type { Traders, TradersData, TradersPatch, TradersQuery } from './services/traders/traders.shared';
37
- export type { User, UserData, UserPatch, UserQuery } from './services/users/users.shared';
38
- export type { Version, VersionData, VersionPatch, VersionQuery } from './services/version/version.shared';
39
- import './services/strategies/hyperopt/hyperopt.shared';
40
- import type { Application, TransportConnection } from '@feathersjs/feathers';
41
- import './services/version/version.shared';
42
- import './services/stripe/customers/paymentmethods/paymentmethods.shared';
43
- import './services/stripe/customers/subscriptions/subscriptions.shared';
44
- import './services/stripe/products/products.shared';
45
- import './services/stripe/customers/cards/cards.shared';
46
- import './services/stripe/customers/paymentintent/paymentintent.shared';
47
- import './services/stripe/customers/customers.shared';
48
- import './services/stripe/charges/charges.shared';
49
- import './services/strategies/ai/stream/stream.shared';
50
- import './services/strategies/ai/ai.shared';
51
- import './services/strategies/backtest/backtest.shared';
52
- import './services/traders/pods/events/events.shared';
53
- import './services/traders/pods/webhooks/webhooks.shared';
54
- import './services/traders/pods/api/api.shared';
55
- import './services/strategies/indicators/indicators.shared';
56
- import './services/strategies/templates/templates.shared';
57
- import './services/strategies/blob/blob.shared';
58
- import './services/strategies/strategies.shared';
59
- import './services/traders/pods/pods.shared';
60
- import './services/traders/traders.shared';
61
- import './services/exchanges/download/webhooks/webhooks.shared';
62
- import './services/traders/pods/blob/blob.shared';
63
- import './services/exchanges/download/download.shared';
64
- import './services/exchanges/balance/balance.shared';
65
- import './services/exchanges/ticker/ticker.shared';
66
- import './services/marketplaces/marketplaces.shared';
67
- import './services/config/config.shared';
68
- import './services/markets/markets.shared';
69
- import './services/exchanges/exchanges.shared';
70
- import './services/custom/custom.shared';
71
- import './services/messages/messages.shared';
72
- import './services/users/users.shared';
73
- export interface Configuration {
74
- connection: TransportConnection<ServiceTypes>;
75
- }
76
- export interface ServiceTypes {
77
- }
78
- export type ClientApplication = Application<ServiceTypes, Configuration>;
79
- /**
80
- * Returns a typed client for the backend app.
81
- *
82
- * @param connection The REST or Socket.io Feathers client connection
83
- * @param authenticationOptions Additional settings for the authentication client
84
- * @returns The Feathers client application
85
- * @see https://dove.feathersjs.com/api/client.html
86
- */
87
- export declare const createClient: <Configuration_1 = any>(connection: TransportConnection<ServiceTypes>, authenticationOptions?: Partial<AuthenticationClientOptions>) => ClientApplication;
@@ -1,227 +0,0 @@
1
- import type { Static } from '@feathersjs/typebox';
2
- export declare const configurationSchema: import("@feathersjs/typebox").TIntersect<[import("@feathersjs/typebox").TObject<{
3
- authentication: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
4
- secret: import("@feathersjs/typebox").TString<string>;
5
- entity: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TNull]>>;
6
- entityId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
7
- service: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
8
- authStrategies: import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>;
9
- parseStrategies: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>>;
10
- jwtOptions: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{}>>;
11
- jwt: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
12
- header: import("@feathersjs/typebox").TString<string>;
13
- schemes: import("@feathersjs/typebox").TString<string>;
14
- }>>;
15
- local: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
16
- usernameField: import("@feathersjs/typebox").TString<string>;
17
- passwordField: import("@feathersjs/typebox").TString<string>;
18
- hashSize: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TNumber>;
19
- errorMessage: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
20
- entityUsernameField: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
21
- entityPasswordField: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
22
- }>>;
23
- oauth: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
24
- redirect: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
25
- origins: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>>;
26
- defaults: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
27
- key: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
28
- secret: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
29
- }>>;
30
- }>>;
31
- }>>;
32
- paginate: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
33
- default: import("@feathersjs/typebox").TNumber;
34
- max: import("@feathersjs/typebox").TNumber;
35
- }>>;
36
- origins: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TString<string>>>;
37
- mongodb: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
38
- mysql: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
39
- client: import("@feathersjs/typebox").TString<string>;
40
- connection: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
41
- host: import("@feathersjs/typebox").TString<string>;
42
- port: import("@feathersjs/typebox").TNumber;
43
- user: import("@feathersjs/typebox").TString<string>;
44
- password: import("@feathersjs/typebox").TString<string>;
45
- database: import("@feathersjs/typebox").TString<string>;
46
- }>>]>;
47
- pool: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
48
- min: import("@feathersjs/typebox").TNumber;
49
- max: import("@feathersjs/typebox").TNumber;
50
- }>>;
51
- }>>;
52
- postgresql: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
53
- client: import("@feathersjs/typebox").TString<string>;
54
- connection: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
55
- host: import("@feathersjs/typebox").TString<string>;
56
- port: import("@feathersjs/typebox").TNumber;
57
- user: import("@feathersjs/typebox").TString<string>;
58
- password: import("@feathersjs/typebox").TString<string>;
59
- database: import("@feathersjs/typebox").TString<string>;
60
- }>>]>;
61
- pool: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
62
- min: import("@feathersjs/typebox").TNumber;
63
- max: import("@feathersjs/typebox").TNumber;
64
- }>>;
65
- }>>;
66
- sqlite: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
67
- client: import("@feathersjs/typebox").TString<string>;
68
- connection: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
69
- host: import("@feathersjs/typebox").TString<string>;
70
- port: import("@feathersjs/typebox").TNumber;
71
- user: import("@feathersjs/typebox").TString<string>;
72
- password: import("@feathersjs/typebox").TString<string>;
73
- database: import("@feathersjs/typebox").TString<string>;
74
- }>>]>;
75
- pool: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
76
- min: import("@feathersjs/typebox").TNumber;
77
- max: import("@feathersjs/typebox").TNumber;
78
- }>>;
79
- }>>;
80
- mssql: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
81
- client: import("@feathersjs/typebox").TString<string>;
82
- connection: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TString<string>, import("@feathersjs/typebox").TPartial<import("@feathersjs/typebox").TObject<{
83
- host: import("@feathersjs/typebox").TString<string>;
84
- port: import("@feathersjs/typebox").TNumber;
85
- user: import("@feathersjs/typebox").TString<string>;
86
- password: import("@feathersjs/typebox").TString<string>;
87
- database: import("@feathersjs/typebox").TString<string>;
88
- }>>]>;
89
- pool: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
90
- min: import("@feathersjs/typebox").TNumber;
91
- max: import("@feathersjs/typebox").TNumber;
92
- }>>;
93
- }>>;
94
- }>, import("@feathersjs/typebox").TObject<{
95
- host: import("@feathersjs/typebox").TString<string>;
96
- port: import("@feathersjs/typebox").TNumber;
97
- public: import("@feathersjs/typebox").TString<string>;
98
- protocol: import("@feathersjs/typebox").TString<string>;
99
- database: import("@feathersjs/typebox").TString<string>;
100
- project: import("@feathersjs/typebox").TObject<{
101
- name: import("@feathersjs/typebox").TString<string>;
102
- address: import("@feathersjs/typebox").TString<string>;
103
- zipcode: import("@feathersjs/typebox").TString<string>;
104
- city: import("@feathersjs/typebox").TString<string>;
105
- country: import("@feathersjs/typebox").TString<string>;
106
- }>;
107
- ccxt: import("@feathersjs/typebox").TObject<{
108
- loadMarketsIntervalInMinutes: import("@feathersjs/typebox").TNumber;
109
- minRefreshIntervalBalancesInMinutes: import("@feathersjs/typebox").TNumber;
110
- proxies: import("@feathersjs/typebox").TAny;
111
- }>;
112
- queues: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TArray<import("@feathersjs/typebox").TAny>>;
113
- storage: import("@feathersjs/typebox").TString<string>;
114
- configurationId: import("@feathersjs/typebox").TString<string>;
115
- provider: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"docker">]>;
116
- email: import("@feathersjs/typebox").TObject<{
117
- host: import("@feathersjs/typebox").TString<string>;
118
- port: import("@feathersjs/typebox").TNumber;
119
- user: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
120
- pass: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
121
- bcc: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
122
- secure: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
123
- from: import("@feathersjs/typebox").TString<string>;
124
- }>;
125
- backtest: import("@feathersjs/typebox").TObject<{
126
- provider: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"batch">, import("@feathersjs/typebox").TLiteral<"docker">]>;
127
- from: import("@feathersjs/typebox").TString<string>;
128
- days: import("@feathersjs/typebox").TNumber;
129
- }>;
130
- emails: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
131
- resendVerifySignup: import("@feathersjs/typebox").TString<string>;
132
- verifySignup: import("@feathersjs/typebox").TString<string>;
133
- sendResetPwd: import("@feathersjs/typebox").TString<string>;
134
- resetPwdShort: import("@feathersjs/typebox").TString<string>;
135
- resetPwdLong: import("@feathersjs/typebox").TString<string>;
136
- passwordChange: import("@feathersjs/typebox").TString<string>;
137
- }>>;
138
- subscription: import("@feathersjs/typebox").TObject<{
139
- limits: import("@feathersjs/typebox").TObject<{
140
- trial: import("@feathersjs/typebox").TObject<{
141
- days: import("@feathersjs/typebox").TNumber;
142
- }>;
143
- freemium: import("@feathersjs/typebox").TObject<{
144
- traders: import("@feathersjs/typebox").TNumber;
145
- backtest: import("@feathersjs/typebox").TObject<{
146
- threshold: import("@feathersjs/typebox").TObject<{
147
- cpu: import("@feathersjs/typebox").TNumber;
148
- }>;
149
- simultaneous: import("@feathersjs/typebox").TNumber;
150
- memory: import("@feathersjs/typebox").TNumber;
151
- cpu: import("@feathersjs/typebox").TNumber;
152
- }>;
153
- }>;
154
- premium: import("@feathersjs/typebox").TObject<{
155
- traders: import("@feathersjs/typebox").TNumber;
156
- backtest: import("@feathersjs/typebox").TObject<{
157
- threshold: import("@feathersjs/typebox").TObject<{
158
- cpu: import("@feathersjs/typebox").TNumber;
159
- }>;
160
- simultaneous: import("@feathersjs/typebox").TNumber;
161
- memory: import("@feathersjs/typebox").TNumber;
162
- cpu: import("@feathersjs/typebox").TNumber;
163
- }>;
164
- }>;
165
- }>;
166
- }>;
167
- image: import("@feathersjs/typebox").TString<string>;
168
- maildev: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
169
- api: import("@feathersjs/typebox").TString<string>;
170
- inbox: import("@feathersjs/typebox").TString<string>;
171
- }>>;
172
- strategies: import("@feathersjs/typebox").TObject<{
173
- templates: import("@feathersjs/typebox").TObject<{
174
- repository: import("@feathersjs/typebox").TString<string>;
175
- }>;
176
- }>;
177
- openai: import("@feathersjs/typebox").TObject<{
178
- apiKey: import("@feathersjs/typebox").TString<string>;
179
- }>;
180
- stripe: import("@feathersjs/typebox").TObject<{
181
- apiKey: import("@feathersjs/typebox").TString<string>;
182
- }>;
183
- testData: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
184
- mixpanel: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
185
- enabled: import("@feathersjs/typebox").TBoolean;
186
- debug: import("@feathersjs/typebox").TBoolean;
187
- token: import("@feathersjs/typebox").TString<string>;
188
- }>>;
189
- mautic: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
190
- enabled: import("@feathersjs/typebox").TBoolean;
191
- url: import("@feathersjs/typebox").TString<string>;
192
- username: import("@feathersjs/typebox").TString<string>;
193
- password: import("@feathersjs/typebox").TString<string>;
194
- }>>;
195
- mixpanelClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
196
- firebaseClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
197
- telegramClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
198
- brevoClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
199
- mauticClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
200
- maildevClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
201
- brevo: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
202
- enabled: import("@feathersjs/typebox").TBoolean;
203
- apiKey: import("@feathersjs/typebox").TString<string>;
204
- }>>;
205
- revenueCat: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
206
- enabled: import("@feathersjs/typebox").TBoolean;
207
- apiKey: import("@feathersjs/typebox").TString<string>;
208
- }>>;
209
- fileSystemId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
210
- useInMemoryServices: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
211
- awsClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
212
- telegram: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
213
- enabled: import("@feathersjs/typebox").TBoolean;
214
- apiId: import("@feathersjs/typebox").TAny;
215
- apiHash: import("@feathersjs/typebox").TAny;
216
- stringSession: import("@feathersjs/typebox").TAny;
217
- }>>;
218
- logs: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
219
- driver: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"awslogs">]>;
220
- credentials: import("@feathersjs/typebox").TObject<{
221
- AWS_ACCESS_KEY_ID: import("@feathersjs/typebox").TString<string>;
222
- AWS_SECRET_ACCESS_KEY: import("@feathersjs/typebox").TString<string>;
223
- }>;
224
- }>>;
225
- }>]>;
226
- export type ApplicationConfiguration = Static<typeof configurationSchema>;
227
- export declare const configurationValidator: import("@feathersjs/schema").Validator<any, any>;
@@ -1,16 +0,0 @@
1
- import { HookContext as FeathersHookContext, NextFunction } from '@feathersjs/feathers';
2
- import { Application as FeathersApplication } from '@feathersjs/koa';
3
- import { ApplicationConfiguration } from './configuration';
4
- import { User } from './services/users/users';
5
- export { NextFunction };
6
- export interface Configuration extends ApplicationConfiguration {
7
- }
8
- export interface ServiceTypes {
9
- }
10
- export type Application = FeathersApplication<ServiceTypes, Configuration>;
11
- export type HookContext<S = any> = FeathersHookContext<Application, S>;
12
- declare module '@feathersjs/feathers' {
13
- interface Params {
14
- user?: User;
15
- }
16
- }
@@ -1 +0,0 @@
1
- export {};
package/lib/helper.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export default class Utils {
2
- static isTestEnvironment(): boolean;
3
- static isKubernetesEnvironment(): boolean;
4
- static debugHook(context: any): void;
5
- static skipNonRequiredExecutionForTraders(context: any): boolean;
6
- static doSomething(val: string): string;
7
- static omit(keysToOmit: string[], originalObj?: {}): {
8
- [k: string]: unknown;
9
- };
10
- static joi(): {
11
- options: {
12
- convert: boolean;
13
- abortEarly: boolean;
14
- };
15
- };
16
- static removeFalsyElement: (object: any) => any;
17
- static roughSizeOfObject(object: any): number;
18
- static toTitleCase(input: any): string;
19
- static isPaymentProvider: (provider: string) => (context: any) => boolean;
20
- static fromTemplate: (type: string, data: any) => Promise<unknown>;
21
- static killProcessOnPort: (port: Number) => void;
22
- }
@@ -1,17 +0,0 @@
1
- /// <reference types="node" />
2
- import { HookContext } from '@feathersjs/feathers';
3
- import { PathLike } from 'fs';
4
- export declare class AppHelper {
5
- getConfig(): Promise<any>;
6
- setConfig(params: any): Promise<any>;
7
- getUserPath(context: HookContext): PathLike;
8
- getFullUserPath(context: HookContext): PathLike;
9
- getLogsPath(context: HookContext): PathLike;
10
- getFullLogsPath(context: HookContext): PathLike;
11
- getDataDownloadConfigPath(context: HookContext): PathLike;
12
- getDataDownloadPath(context: HookContext): PathLike;
13
- checkFolderPermissions(path: PathLike): Promise<boolean>;
14
- changeFolderPermissions(path: PathLike, mode: string): Promise<boolean>;
15
- getFolderSize(folderPath: any): Promise<number>;
16
- isPortOpen(port: number): Boolean;
17
- }
@@ -1,61 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- /** The `BacktestHelper` class provides utility methods for generating and managing backtest deployments. */
3
- export declare class BacktestHelper {
4
- context: HookContext;
5
- client: any;
6
- batch: any;
7
- constructor(context: HookContext);
8
- static getName(createdAt: any): string;
9
- /**
10
- * Generates a container spec for backtesting.
11
- *
12
- * @param context - The HookContext object.
13
- * @returns The generated container spec.
14
- */
15
- static generate(context: HookContext, provider: string): object;
16
- /**
17
- * Promisifies a stream and resolves or rejects based on the stream events.
18
- *
19
- * @param stream - The stream object.
20
- * @returns A promise that resolves to true when the stream ends successfully, or rejects with an Unprocessable error
21
- * if the stream data includes 'WARNING - No history for'.
22
- */
23
- static promisifyStream(container: any): Promise<any>;
24
- /**
25
- * Retrieves the results of a backtest.
26
- *
27
- * @param context - The HookContext object.
28
- * @returns A Promise that resolves to the parsed results of the backtest.
29
- * @throws Unprocessable error if no results are found.
30
- */
31
- static getResults(context: HookContext): any;
32
- /**
33
- * Retrieves the elapsed time from the backtest results.
34
- *
35
- * @param {HookContext} context - The context object containing the necessary data.
36
- * @returns {Promise<any>} - A promise that resolves to the parsed backtest results.
37
- * @throws {Error} - If the backtest results path or meta file is not found.
38
- */
39
- static getElapsedTime(context: HookContext): any;
40
- static verifyCapacityAllocationForCPU(context: HookContext): Promise<any>;
41
- /**
42
- * Deploys a container for backtesting.
43
- *
44
- * @param context - The HookContext object.
45
- * @param deployment - The deployment object.
46
- * @returns A Promise that resolves to the result of the backtest.
47
- * @throws If there is an error during the backtest.
48
- */
49
- static deploy(context: HookContext, deployment: any, provider: string): Promise<any>;
50
- /**
51
- * Retrieves the trader data path based on the provided context.
52
- *
53
- * @param {HookContext} context - The context object containing the necessary data.
54
- * @returns {string} - The path to the trader data.
55
- */
56
- static getTraderData(context: HookContext): string;
57
- updateJobStatus(message: any): Promise<void>;
58
- submitJob(command?: string[]): Promise<any>;
59
- jobDefinitionExists(name: string): Promise<boolean>;
60
- registerJobDefinition(definition: any): Promise<any>;
61
- }
@@ -1,93 +0,0 @@
1
- import { HookContext } from '@feathersjs/feathers';
2
- /**
3
- * The CCXT class provides methods for interacting with cryptocurrency exchanges using the CCXT library. It includes
4
- * functions for checking if an exchange is supported, handling errors, retrieving required credentials, loading
5
- * markets, and more.
6
- *
7
- * @class
8
- */
9
- export declare class CCXT {
10
- ccxt: any;
11
- context: HookContext;
12
- exchange: any;
13
- constructor(context: HookContext);
14
- /**
15
- * Checks if the given exchange is supported.
16
- *
17
- * @param exchange - The name of the exchange to check.
18
- * @throws NotFound - If the exchange is not available.
19
- */
20
- checkIfExchangeIsSupported(exchange: String): any;
21
- /**
22
- * Handles different types of errors thrown by the CCXT library.
23
- *
24
- * @param e - The error object.
25
- * @returns Void
26
- * @throws GeneralError - If the error is a DDoSProtection error or contains 'ECONNRESET' in the message.
27
- * @throws Timeout - If the error is a RequestTimeout error.
28
- * @throws NotAuthenticated - If the error is an AuthenticationError.
29
- * @throws Unavailable - If the error is an ExchangeNotAvailable error.
30
- * @throws GeneralError - If the error is an ExchangeError or NetworkError.
31
- */
32
- errorHandler(e: any): any;
33
- /**
34
- * Retrieves the required credentials for a given exchange.
35
- *
36
- * @param exchange - The name of the exchange.
37
- * @returns A promise that resolves to an array of required credentials.
38
- */
39
- getRequiredCredentials(exchange: any): Promise<any>;
40
- fetchTickers(exchange: any): Promise<any>;
41
- /**
42
- * Validates the required credentials for an exchange.
43
- *
44
- * @param exchange - The exchange object containing the required credentials.
45
- * @returns A promise that resolves to true if the credentials are valid, or false if they are not.
46
- * @throws BadRequest error if the required credentials are not provided.
47
- */
48
- checkCredentials(exchange: any): Promise<any>;
49
- /**
50
- * Loads the markets for a given exchange.
51
- *
52
- * This function is needed to store the pairs from each exchange and runs on every patch exchange hook. However, to
53
- * avoid overloading the endpoint, the response update to the market table is done using a minimum time difference
54
- * required.
55
- *
56
- * @param context - The context object.
57
- * @param exchange - The exchange name.
58
- * @param silent - Optional. If true, suppresses debug logs. Default is false.
59
- * @returns A promise that resolves to the loaded markets.
60
- * @throws {GeneralError} If there is an error loading the markets.
61
- */
62
- loadMarkets(context: any, exchange: any, silent?: Boolean): Promise<any>;
63
- /**
64
- * Retrieves the bases and quotes from the given markets.
65
- *
66
- * @param markets - The markets object.
67
- * @returns A promise that resolves to an object containing the markets, bases, and quotes.
68
- */
69
- getBasesAndQuotes(markets: any): Promise<any>;
70
- /**
71
- * Verifies if the interval needed to wait in order to add again to the database is bigger than the value informed in
72
- * default.json. If the interval is not bigger, the method skips creating the data into the database.
73
- *
74
- * @param {HookContext} context - The context object.
75
- * @param {any} markets - The markets data.
76
- * @param {String} exchange - The exchange name.
77
- * @param {Boolean} [force] - Optional. If true, forces the refresh of the market data.
78
- * @returns {Promise<any>} - A promise that resolves with the markets data if the refresh is needed, or false if the
79
- * refresh is not needed.
80
- */
81
- verifyIfNeedToRefresh(context: HookContext, markets: any, exchange: String, force?: Boolean): Promise<any>;
82
- /**
83
- * Finds all pairs/markets of a specific exchange and keeps only the last one to save space in the database.
84
- *
85
- * @param {HookContext} context - The context object.
86
- * @param {String} exchange - The name of the exchange.
87
- * @returns {Promise<any>} - A promise that resolves with the markets data.
88
- * @throws {GeneralError} - If there is an error finding or removing the markets.
89
- */
90
- keepOnlyLastOnePerExchange(context: HookContext, exchange: String): Promise<any>;
91
- static getAllExchanges(): any;
92
- static getTimeframesFromExchange(alias: string): any;
93
- }