@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.
- package/lib/{services → src/services}/exchanges/download/download.class.d.ts +1 -1
- package/lib/{services → src/services}/exchanges/download/download.d.ts +1 -0
- package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.class.d.ts +1 -1
- package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.d.ts +1 -0
- package/lib/{services → src/services}/exchanges/exchanges.class.d.ts +1 -1
- package/lib/{services → src/services}/exchanges/ticker/ticker.class.d.ts +1 -1
- package/lib/{services → src/services}/homepage/homepage.schema.d.ts +8 -0
- package/lib/{services → src/services}/marketplaces/marketplaces.class.d.ts +1 -1
- package/lib/{services → src/services}/markets/markets.class.d.ts +1 -1
- package/lib/{services → src/services}/messages/messages.class.d.ts +1 -1
- package/lib/{services → src/services}/strategies/ai/ai.class.d.ts +1 -1
- package/lib/{services → src/services}/strategies/backtest/backtest.class.d.ts +1 -1
- package/lib/{services → src/services}/strategies/backtest/backtest.schema.d.ts +36 -36
- package/lib/{services → src/services}/strategies/hyperopt/hyperopt.d.ts +1 -0
- package/lib/{services → src/services}/strategies/indicators/indicators.class.d.ts +1 -1
- package/lib/{services → src/services}/strategies/strategies.class.d.ts +1 -1
- package/lib/{services → src/services}/strategies/templates/templates.class.d.ts +1 -1
- package/lib/{services → src/services}/traders/pods/api/api.schema.d.ts +112 -112
- package/lib/{services → src/services}/traders/pods/events/events.d.ts +1 -0
- package/lib/{services → src/services}/traders/pods/events/events.schema.d.ts +85 -3
- package/lib/{services → src/services}/traders/pods/pods.class.d.ts +1 -1
- package/lib/{services → src/services}/traders/pods/webhooks/webhooks.class.d.ts +1 -1
- package/lib/{services → src/services}/traders/pods/webhooks/webhooks.d.ts +1 -0
- package/lib/{services → src/services}/users/users.schema.d.ts +185 -3
- package/package.json +7 -36
- package/lib/app.d.ts +0 -4
- package/lib/authentication.d.ts +0 -8
- package/lib/channels.d.ts +0 -3
- package/lib/client.d.ts +0 -87
- package/lib/configuration.d.ts +0 -227
- package/lib/declarations.d.ts +0 -16
- package/lib/firebase-push-notification.d.ts +0 -1
- package/lib/helper.d.ts +0 -22
- package/lib/helpers/app.helper.d.ts +0 -17
- package/lib/helpers/backtest.helper.d.ts +0 -61
- package/lib/helpers/ccxt.helper.d.ts +0 -93
- package/lib/helpers/deployments.helper.d.ts +0 -84
- package/lib/helpers/funnel.helper.d.ts +0 -19
- package/lib/helpers/handlebars.helper.d.ts +0 -25
- package/lib/helpers/hyperopt.helper.d.ts +0 -22
- package/lib/helpers/logging.helper.d.ts +0 -9
- package/lib/helpers/mailer.helper.d.ts +0 -14
- package/lib/helpers/push-notification.helper.d.ts +0 -8
- package/lib/helpers/queue.helper.d.ts +0 -13
- package/lib/helpers/reports.helper.d.ts +0 -5
- package/lib/helpers/rules.helper.d.ts +0 -13
- package/lib/helpers/sqlite3.helper.d.ts +0 -6
- package/lib/helpers/sqs.helper.d.ts +0 -7
- package/lib/helpers/subscription.helper.d.ts +0 -40
- package/lib/helpers/telegram.helper.d.ts +0 -32
- package/lib/helpers/trader.helper.d.ts +0 -38
- package/lib/hooks/application/setup-ccxt-load-marketplaces-mocked.d.ts +0 -3
- package/lib/hooks/application/setup-ccxt-load-marketplaces.d.ts +0 -2
- package/lib/hooks/application/setup-ccxt-load-markets.d.ts +0 -2
- package/lib/hooks/application/setup-config-preparation.d.ts +0 -3
- package/lib/hooks/application/setup-fs.d.ts +0 -3
- package/lib/hooks/application/setup-info.d.ts +0 -3
- package/lib/hooks/application/setup-load-indicators.d.ts +0 -3
- package/lib/hooks/application/setup-load-strategy-templates.d.ts +0 -3
- package/lib/hooks/backtest-copy-candles-from-user-data.d.ts +0 -2
- package/lib/hooks/backtest-generate-and-queue.d.ts +0 -2
- package/lib/hooks/backtest-generate-config.d.ts +0 -8
- package/lib/hooks/backtest-generate-exchange-config.d.ts +0 -8
- package/lib/hooks/backtest-get-results.d.ts +0 -14
- package/lib/hooks/backtest-in-disk-clone-strategy.d.ts +0 -2
- package/lib/hooks/backtest-validate.d.ts +0 -2
- package/lib/hooks/bootstrap-user-exchanges.d.ts +0 -2
- package/lib/hooks/bootstrap-user-strategies.d.ts +0 -2
- package/lib/hooks/bootstrap-user-traders.d.ts +0 -2
- package/lib/hooks/check-required-credentials.d.ts +0 -2
- package/lib/hooks/enrich-webhook-to-event.d.ts +0 -2
- package/lib/hooks/exchanges/after-create-ccxt-balances-propagate-to-exchange.d.ts +0 -2
- package/lib/hooks/exchanges/after-find-ccxt-load-markets.d.ts +0 -2
- package/lib/hooks/exchanges/after-get-whitelist-blacklist-transform.d.ts +0 -2
- package/lib/hooks/exchanges/before-create-ccxt-get-balances.d.ts +0 -2
- package/lib/hooks/exchanges/before-patch-blacklist-validation-per-exchange.d.ts +0 -2
- package/lib/hooks/exchanges/before-patch-ccxt-connect-exchange.d.ts +0 -2
- package/lib/hooks/exchanges/before-patch-ccxt-load-markets.d.ts +0 -2
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-transform.d.ts +0 -2
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-validate.d.ts +0 -2
- package/lib/hooks/exchanges/download/after-create-get-recent-downloaded-data-info.d.ts +0 -2
- package/lib/hooks/exchanges/download/before-create-generate-config.d.ts +0 -2
- package/lib/hooks/exchanges/download/before-create-process-exchange-data-download.d.ts +0 -2
- package/lib/hooks/file-generate-config-hyperopt.d.ts +0 -2
- package/lib/hooks/get-pods-container-inspect.d.ts +0 -2
- package/lib/hooks/hyperopt-generate-and-queue.d.ts +0 -2
- package/lib/hooks/hyperopt-generate-exchange-config.d.ts +0 -8
- package/lib/hooks/hyperopt-get-results.d.ts +0 -2
- package/lib/hooks/hyperopt-in-disk-clone-strategy.d.ts +0 -2
- package/lib/hooks/hyperopt-track-usage.d.ts +0 -2
- package/lib/hooks/init-data-folder.d.ts +0 -2
- package/lib/hooks/log-error.d.ts +0 -2
- package/lib/hooks/messages/messages-process-data.d.ts +0 -2
- package/lib/hooks/openai-process-request.d.ts +0 -2
- package/lib/hooks/pairs-transform.d.ts +0 -2
- package/lib/hooks/remove-container.d.ts +0 -2
- package/lib/hooks/revenuecat-is-subscription-active.d.ts +0 -2
- package/lib/hooks/set-default-strategy.d.ts +0 -2
- package/lib/hooks/setup-aws-sdk.d.ts +0 -2
- package/lib/hooks/setup-cronjobs.d.ts +0 -2
- package/lib/hooks/setup-ensure-image.d.ts +0 -3
- package/lib/hooks/setup-firebase.d.ts +0 -2
- package/lib/hooks/setup-homepage.d.ts +0 -3
- package/lib/hooks/setup-mautic.d.ts +0 -3
- package/lib/hooks/setup-mixpanel.d.ts +0 -3
- package/lib/hooks/setup-prepare-maildev-while-in-test-env.d.ts +0 -3
- package/lib/hooks/setup-queues.d.ts +0 -3
- package/lib/hooks/setup-stripe.d.ts +0 -2
- package/lib/hooks/setup-telegram-client.d.ts +0 -3
- package/lib/hooks/sqlite-reset-database.d.ts +0 -2
- package/lib/hooks/strategies/disk-create-strategy.d.ts +0 -2
- package/lib/hooks/strategies/disk-remove-strategy.d.ts +0 -2
- package/lib/hooks/strategies/file-strategies-clone.d.ts +0 -2
- package/lib/hooks/stripe-check-subscription.d.ts +0 -2
- package/lib/hooks/stripe-create-payment-intent.d.ts +0 -2
- package/lib/hooks/stripe-is-subscription-active.d.ts +0 -2
- package/lib/hooks/stripe-sync-customer-data.d.ts +0 -2
- package/lib/hooks/telegram-create-group.d.ts +0 -2
- package/lib/hooks/telegram-delete-group.d.ts +0 -2
- package/lib/hooks/telegram-update-group.d.ts +0 -2
- package/lib/hooks/tickers-fetch.d.ts +0 -2
- package/lib/hooks/traders/after-patch-file-candles-clone.d.ts +0 -2
- package/lib/hooks/traders/before-patch-folders-initialize.d.ts +0 -2
- package/lib/hooks/traders/before-patch-transform-pairlist-plugins.d.ts +0 -2
- package/lib/hooks/traders/container-api-control.d.ts +0 -2
- package/lib/hooks/traders/container-stop.d.ts +0 -2
- package/lib/hooks/traders/create-trader-container.d.ts +0 -2
- package/lib/hooks/traders/generate-exchange-config.d.ts +0 -2
- package/lib/hooks/traders/generate-trader-config.d.ts +0 -2
- package/lib/hooks/traders/pods-container-inspect.d.ts +0 -2
- package/lib/hooks/traders/pods-process-worker.d.ts +0 -7
- package/lib/hooks/users/email-verify-signup.d.ts +0 -2
- package/lib/hooks/whitelist-set-default-by-volume.d.ts +0 -2
- package/lib/index.d.ts +0 -1
- package/lib/logger.d.ts +0 -1
- package/lib/mongodb.d.ts +0 -8
- package/lib/prepare-for-publish.d.ts +0 -1
- package/lib/sentry.d.ts +0 -2
- package/lib/telegram-get-credentials.d.ts +0 -1
- package/lib/validators.d.ts +0 -3
- package/readme.client.md +0 -4
- package/lib/{client.js → src/client.js} +0 -0
- package/lib/{services → src/services}/auth-management/auth-management.class.d.ts +0 -0
- package/lib/{services → src/services}/auth-management/auth-management.d.ts +0 -0
- package/lib/{services → src/services}/auth-management/auth-management.shared.d.ts +0 -0
- package/lib/{services → src/services}/auth-management/auth-management.shared.js +0 -0
- package/lib/{services → src/services}/auth-management/auth-management.utils.d.ts +0 -0
- package/lib/{services → src/services}/config/config.class.d.ts +0 -0
- package/lib/{services → src/services}/config/config.d.ts +0 -0
- package/lib/{services → src/services}/config/config.shared.d.ts +0 -0
- package/lib/{services → src/services}/config/config.shared.js +0 -0
- package/lib/{services → src/services}/custom/custom.class.d.ts +0 -0
- package/lib/{services → src/services}/custom/custom.d.ts +0 -0
- package/lib/{services → src/services}/custom/custom.shared.d.ts +0 -0
- package/lib/{services → src/services}/custom/custom.shared.js +0 -0
- package/lib/{services → src/services}/exchanges/balance/balance.class.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/balance/balance.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/balance/balance.schema.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/balance/balance.shared.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/balance/balance.shared.js +0 -0
- package/lib/{services → src/services}/exchanges/download/download.schema.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/download/download.shared.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/download/download.shared.js +0 -0
- package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.schema.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/download/webhooks/webhooks.shared.js +0 -0
- package/lib/{services → src/services}/exchanges/exchanges.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/exchanges.schema.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/exchanges.shared.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/exchanges.shared.js +0 -0
- package/lib/{services → src/services}/exchanges/ticker/ticker.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/ticker/ticker.schema.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/ticker/ticker.shared.d.ts +0 -0
- package/lib/{services → src/services}/exchanges/ticker/ticker.shared.js +0 -0
- package/lib/{services → src/services}/homepage/homepage.class.d.ts +1 -1
- package/lib/{services → src/services}/homepage/homepage.d.ts +0 -0
- package/lib/{services → src/services}/homepage/homepage.shared.d.ts +0 -0
- package/lib/{services → src/services}/homepage/homepage.shared.js +0 -0
- package/lib/{services → src/services}/index.d.ts +0 -0
- package/lib/{services → src/services}/mailer/mailer.class.d.ts +0 -0
- package/lib/{services → src/services}/mailer/mailer.d.ts +0 -0
- package/lib/{services → src/services}/mailer/mailer.shared.d.ts +0 -0
- package/lib/{services → src/services}/mailer/mailer.shared.js +0 -0
- package/lib/{services → src/services}/marketplaces/marketplaces.d.ts +0 -0
- package/lib/{services → src/services}/marketplaces/marketplaces.shared.d.ts +0 -0
- package/lib/{services → src/services}/marketplaces/marketplaces.shared.js +0 -0
- package/lib/{services → src/services}/markets/markets.d.ts +0 -0
- package/lib/{services → src/services}/markets/markets.schema.d.ts +0 -0
- package/lib/{services → src/services}/markets/markets.shared.d.ts +0 -0
- package/lib/{services → src/services}/markets/markets.shared.js +0 -0
- package/lib/{services → src/services}/messages/messages.d.ts +0 -0
- package/lib/{services → src/services}/messages/messages.schema.d.ts +0 -0
- package/lib/{services → src/services}/messages/messages.shared.d.ts +0 -0
- package/lib/{services → src/services}/messages/messages.shared.js +0 -0
- package/lib/{services → src/services}/strategies/ai/ai.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/ai.schema.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/ai.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/ai.shared.js +0 -0
- package/lib/{services → src/services}/strategies/ai/stream/stream.class.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/stream/stream.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/stream/stream.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/ai/stream/stream.shared.js +0 -0
- package/lib/{services → src/services}/strategies/backtest/backtest.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/backtest.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/backtest.shared.js +0 -0
- package/lib/{services → src/services}/strategies/backtest/results/results.class.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/results/results.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/results/results.schema.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/results/results.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/backtest/results/results.shared.js +0 -0
- package/lib/{services → src/services}/strategies/blob/blob.class.d.ts +0 -0
- package/lib/{services → src/services}/strategies/blob/blob.d.ts +0 -0
- package/lib/{services → src/services}/strategies/blob/blob.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/blob/blob.shared.js +0 -0
- package/lib/{services → src/services}/strategies/hyperopt/hyperopt.class.d.ts +0 -0
- package/lib/{services → src/services}/strategies/hyperopt/hyperopt.schema.d.ts +4 -4
- package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/hyperopt/hyperopt.shared.js +0 -0
- package/lib/{services → src/services}/strategies/indicators/indicators.d.ts +0 -0
- package/lib/{services → src/services}/strategies/indicators/indicators.schema.d.ts +0 -0
- package/lib/{services → src/services}/strategies/indicators/indicators.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/indicators/indicators.shared.js +0 -0
- package/lib/{services → src/services}/strategies/strategies.d.ts +0 -0
- package/lib/{services → src/services}/strategies/strategies.schema.d.ts +24 -24
- package/lib/{services → src/services}/strategies/strategies.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/strategies.shared.js +0 -0
- package/lib/{services → src/services}/strategies/templates/templates.d.ts +0 -0
- package/lib/{services → src/services}/strategies/templates/templates.schema.d.ts +0 -0
- package/lib/{services → src/services}/strategies/templates/templates.shared.d.ts +0 -0
- package/lib/{services → src/services}/strategies/templates/templates.shared.js +0 -0
- package/lib/{services → src/services}/stripe/charges/charges.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/charges/charges.d.ts +0 -0
- package/lib/{services → src/services}/stripe/charges/charges.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/charges/charges.shared.js +0 -0
- package/lib/{services → src/services}/stripe/customers/cards/cards.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/cards/cards.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/cards/cards.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/cards/cards.shared.js +0 -0
- package/lib/{services → src/services}/stripe/customers/customers.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/customers.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/customers.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/customers.shared.js +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentintent/paymentintent.shared.js +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/paymentmethods/paymentmethods.shared.js +0 -0
- package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/customers/subscriptions/subscriptions.shared.js +0 -0
- package/lib/{services → src/services}/stripe/products/products.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/products/products.d.ts +0 -0
- package/lib/{services → src/services}/stripe/products/products.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/products/products.shared.js +0 -0
- package/lib/{services → src/services}/stripe/webhooks/webhooks.class.d.ts +0 -0
- package/lib/{services → src/services}/stripe/webhooks/webhooks.d.ts +0 -0
- package/lib/{services → src/services}/stripe/webhooks/webhooks.shared.d.ts +0 -0
- package/lib/{services → src/services}/stripe/webhooks/webhooks.shared.js +0 -0
- package/lib/{services → src/services}/traders/pods/api/api.class.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/api/api.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/api/api.shared.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/api/api.shared.js +0 -0
- package/lib/{services → src/services}/traders/pods/blob/blob.class.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/blob/blob.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/blob/blob.shared.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/blob/blob.shared.js +0 -0
- package/lib/{services → src/services}/traders/pods/events/events.class.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/events/events.shared.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/events/events.shared.js +0 -0
- package/lib/{services → src/services}/traders/pods/pods.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/pods.schema.d.ts +40 -40
- package/lib/{services → src/services}/traders/pods/pods.shared.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/pods.shared.js +0 -0
- package/lib/{services → src/services}/traders/pods/webhooks/webhooks.schema.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.d.ts +0 -0
- package/lib/{services → src/services}/traders/pods/webhooks/webhooks.shared.js +0 -0
- package/lib/{services → src/services}/traders/traders.class.d.ts +0 -0
- package/lib/{services → src/services}/traders/traders.d.ts +0 -0
- package/lib/{services → src/services}/traders/traders.schema.d.ts +16 -16
- /package/lib/{services → src/services}/traders/traders.shared.d.ts +0 -0
- /package/lib/{services → src/services}/traders/traders.shared.js +0 -0
- /package/lib/{services → src/services}/users/users.class.d.ts +0 -0
- /package/lib/{services → src/services}/users/users.d.ts +0 -0
- /package/lib/{services → src/services}/users/users.helper.d.ts +0 -0
- /package/lib/{services → src/services}/users/users.shared.d.ts +0 -0
- /package/lib/{services → src/services}/users/users.shared.js +0 -0
- /package/lib/{services → src/services}/version/version.class.d.ts +0 -0
- /package/lib/{services → src/services}/version/version.d.ts +0 -0
- /package/lib/{services → src/services}/version/version.shared.d.ts +0 -0
- /package/lib/{services → src/services}/version/version.shared.js +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
export declare class Docker {
|
|
3
|
-
client: any;
|
|
4
|
-
constructor();
|
|
5
|
-
/**
|
|
6
|
-
* Validates if the strategy is available.
|
|
7
|
-
*
|
|
8
|
-
* @param context - The HookContext object.
|
|
9
|
-
* @throws {Unprocessable} - If the strategy is not available.
|
|
10
|
-
*/
|
|
11
|
-
static checkIfStrategyIsAvailable(context: HookContext): void;
|
|
12
|
-
/**
|
|
13
|
-
* Check if the strategy file exists in disk.
|
|
14
|
-
*
|
|
15
|
-
* @param context - The HookContext object.
|
|
16
|
-
* @returns Promise<void>
|
|
17
|
-
* @throws {Unprocessable} - If the strategy file is not available in the disk.
|
|
18
|
-
*/
|
|
19
|
-
static checkIfStrategyExistsInDisk(context: HookContext): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* Check if the config file exists in disk.
|
|
22
|
-
*
|
|
23
|
-
* @param context - The HookContext object.
|
|
24
|
-
* @returns Promise<void>
|
|
25
|
-
*/
|
|
26
|
-
static checkIfConfigExistsInDisk(context: HookContext): Promise<void>;
|
|
27
|
-
/**
|
|
28
|
-
* Requests an available host port.
|
|
29
|
-
*
|
|
30
|
-
* @param context - The HookContext object.
|
|
31
|
-
* @returns A Promise that resolves to a string representing the available port.
|
|
32
|
-
* @throws Error if unable to find a free port.
|
|
33
|
-
*/
|
|
34
|
-
static requestAvailableHostPort(context: HookContext): Promise<String>;
|
|
35
|
-
/**
|
|
36
|
-
* Generates a deployment object for Docker based on the provided context.
|
|
37
|
-
*
|
|
38
|
-
* @param {HookContext} context - The context object containing the necessary data for generating the deployment.
|
|
39
|
-
* @returns {Promise<object>} - A promise that resolves to the generated deployment object.
|
|
40
|
-
* @throws {GeneralError} - If there is an error during the generation process.
|
|
41
|
-
*/
|
|
42
|
-
static generate(context: HookContext): Promise<object>;
|
|
43
|
-
/**
|
|
44
|
-
* Deploys a container using the provided deployment configuration.
|
|
45
|
-
*
|
|
46
|
-
* @param context - The HookContext object.
|
|
47
|
-
* @param deployment - The deployment configuration.
|
|
48
|
-
* @returns A promise that resolves to the deployed container.
|
|
49
|
-
* @throws {NotFound} If the image specified in the deployment configuration is not found.
|
|
50
|
-
* @throws {GeneralError} If there is an error deploying the container.
|
|
51
|
-
*/
|
|
52
|
-
static deploy(context: HookContext, deployment: any): Promise<any>;
|
|
53
|
-
/**
|
|
54
|
-
* Returns the path to the trader data directory.
|
|
55
|
-
*
|
|
56
|
-
* @param {HookContext} context - The HookContext object.
|
|
57
|
-
* @returns {string} - The path to the trader data directory.
|
|
58
|
-
*/
|
|
59
|
-
static getTraderData(context: HookContext): string;
|
|
60
|
-
/**
|
|
61
|
-
* Checks if an image with the specified name exists in the Docker registry.
|
|
62
|
-
*
|
|
63
|
-
* @param {string} imageName - The name of the image to check.
|
|
64
|
-
* @returns {Promise<boolean>} - A promise that resolves to true if the image exists, false otherwise.
|
|
65
|
-
* @throws {Error} - If there is an error checking the image existence.
|
|
66
|
-
*/
|
|
67
|
-
static checkImageExists(imageName: string): Promise<boolean>;
|
|
68
|
-
/**
|
|
69
|
-
* Pulls an image from the Docker registry.
|
|
70
|
-
*
|
|
71
|
-
* @param {string} imageName - The name of the image to pull.
|
|
72
|
-
* @returns {Promise<void>} - A promise that resolves when the image is successfully pulled.
|
|
73
|
-
* @throws {Error} - If there is an error pulling the image.
|
|
74
|
-
*/
|
|
75
|
-
static pullImage(imageName: string): Promise<void>;
|
|
76
|
-
/**
|
|
77
|
-
* Ensures that the specified image exists in the Docker registry.
|
|
78
|
-
*
|
|
79
|
-
* @param {string} imageName - The name of the image to ensure.
|
|
80
|
-
* @returns {Promise<void>} - A promise that resolves when the image is successfully ensured.
|
|
81
|
-
* @throws {Error} - If there is an error ensuring the image.
|
|
82
|
-
*/
|
|
83
|
-
static ensureImage(imageName: string): Promise<Boolean>;
|
|
84
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Application, HookContext } from '@feathersjs/feathers';
|
|
2
|
-
import { User } from 'src/services/users/users.schema';
|
|
3
|
-
export declare class FunnellHelper {
|
|
4
|
-
app: Application;
|
|
5
|
-
context: HookContext;
|
|
6
|
-
mixpanel: any;
|
|
7
|
-
mautic: any;
|
|
8
|
-
constructor(context: HookContext);
|
|
9
|
-
trackSignup(type: String, user: User): Promise<void>;
|
|
10
|
-
trackSubscriptionActivation(type: String, user: User): Promise<void>;
|
|
11
|
-
trackSubscriptionCancellation(type: String, user: User): Promise<void>;
|
|
12
|
-
incrementCountOf(key: string, user: User, count?: Number): Promise<void>;
|
|
13
|
-
trackEvent(context: HookContext): Promise<void>;
|
|
14
|
-
trackLogin(user: User): Promise<void>;
|
|
15
|
-
setUserToQualifying(user: User, event?: any): Promise<void>;
|
|
16
|
-
setUserToOnboarded(user: User): Promise<void>;
|
|
17
|
-
setUserToNurtured(user: User): Promise<void>;
|
|
18
|
-
setUserToGivingUp(user: User): Promise<void>;
|
|
19
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
export declare class Handlebars {
|
|
3
|
-
handlebars: any;
|
|
4
|
-
context: HookContext;
|
|
5
|
-
constructor(context: HookContext);
|
|
6
|
-
register: () => void;
|
|
7
|
-
templateExists: () => Promise<boolean | undefined>;
|
|
8
|
-
/**
|
|
9
|
-
* Reads the template file and returns its content as a Promise.
|
|
10
|
-
*
|
|
11
|
-
* @returns {Promise<string>} A Promise that resolves with the content of the template file.
|
|
12
|
-
*/
|
|
13
|
-
readTemplates: () => Promise<{
|
|
14
|
-
strategy: string;
|
|
15
|
-
hyperopt: string;
|
|
16
|
-
}>;
|
|
17
|
-
/**
|
|
18
|
-
* Compiles the template with the provided values.
|
|
19
|
-
*
|
|
20
|
-
* @param file - The template file to compile.
|
|
21
|
-
* @param values - The values to be used during compilation.
|
|
22
|
-
* @returns A promise that resolves with the compiled result.
|
|
23
|
-
*/
|
|
24
|
-
compileWithValues: (file: any, values: any) => Promise<unknown>;
|
|
25
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
export declare class HyperoptHelper {
|
|
3
|
-
context: HookContext;
|
|
4
|
-
client: any;
|
|
5
|
-
batch: any;
|
|
6
|
-
iam: any;
|
|
7
|
-
cloudformation: any;
|
|
8
|
-
constructor(context: HookContext);
|
|
9
|
-
prepareLocalEnvironment(): Promise<void>;
|
|
10
|
-
jobDefinitionExists(name: string): Promise<boolean>;
|
|
11
|
-
static generate(context: HookContext, provider: string): object;
|
|
12
|
-
static deploy(context: HookContext, deployment: any, provider: string): Promise<any>;
|
|
13
|
-
updateJobStatus(message: any): Promise<void>;
|
|
14
|
-
registerJobDefinition(definition: any): Promise<any>;
|
|
15
|
-
submitJob(context: HookContext): Promise<void>;
|
|
16
|
-
static getName(createdAt: any): string;
|
|
17
|
-
static getTraderData(context: HookContext): string;
|
|
18
|
-
static promisifyStream(container: any): Promise<any>;
|
|
19
|
-
static getOptimalParamsFromDisk(context: HookContext): any;
|
|
20
|
-
static getBestHyperoptExecution(context: HookContext): Promise<any>;
|
|
21
|
-
static updateProgressOfRunningExecutions(context: HookContext): object;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export default class Log {
|
|
2
|
-
static info(message: any, context?: any, filename?: any, extra?: any): void;
|
|
3
|
-
static warn(message: any, context?: any, filename?: any, extra?: any): void;
|
|
4
|
-
static debug(message: any, context?: any, filename?: any, extra?: any): void;
|
|
5
|
-
static error(message: any, context?: any, filename?: any, extra?: any): void;
|
|
6
|
-
static silly(message: any, context?: any, filename?: any, extra?: any): void;
|
|
7
|
-
static verbose(message: any, context?: any, filename?: any, extra?: any): void;
|
|
8
|
-
static container(message: any, context?: any, filename?: any, extra?: any): void;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Application } from '@feathersjs/feathers';
|
|
2
|
-
export interface Email {
|
|
3
|
-
from?: string | undefined | null;
|
|
4
|
-
to?: string | undefined | null;
|
|
5
|
-
bcc?: string | undefined | null;
|
|
6
|
-
subject?: string | null;
|
|
7
|
-
html?: string | null;
|
|
8
|
-
text?: string | null;
|
|
9
|
-
}
|
|
10
|
-
export declare class MailerHelper {
|
|
11
|
-
client: any;
|
|
12
|
-
constructor();
|
|
13
|
-
static sendEmailWithMjml(type: string, email: Email, data: any): Promise<Application>;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
import { User } from '../../src/services/users/users.schema';
|
|
3
|
-
export declare class PushNotificationHelper {
|
|
4
|
-
client: any;
|
|
5
|
-
constructor(context: HookContext);
|
|
6
|
-
dispatchToAdmin(notification: object): Promise<any>;
|
|
7
|
-
dispatch(user: User, notification: object): Promise<any>;
|
|
8
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
export declare class QueueHelper {
|
|
3
|
-
constructor();
|
|
4
|
-
/**
|
|
5
|
-
* Retrieves a queue from the context based on its ID.
|
|
6
|
-
*
|
|
7
|
-
* @param {HookContext} context - The context object containing the application and other data.
|
|
8
|
-
* @param {string} id - The ID of the queue to retrieve.
|
|
9
|
-
* @returns {Promise<any>} - A promise that resolves to the queue object.
|
|
10
|
-
* @throws {NotFound} - If the queue with the specified ID is not found.
|
|
11
|
-
*/
|
|
12
|
-
getQueue(context: HookContext, id: string): Promise<any>;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare class RulesHelper {
|
|
2
|
-
values: any;
|
|
3
|
-
conditionsEntry: any;
|
|
4
|
-
conditionsExit: any;
|
|
5
|
-
constructor(values: any);
|
|
6
|
-
getIndicatorById(indicators: any, id: string): any;
|
|
7
|
-
getValueByTypeFromRule(rule: any, position: string): any;
|
|
8
|
-
isLastItem(array: any, item: any): boolean;
|
|
9
|
-
processEntryWhen(): void;
|
|
10
|
-
processExitWhen(): void;
|
|
11
|
-
getConditionsEntry(): any;
|
|
12
|
-
getConditionsExit(): any;
|
|
13
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
-
import { User } from 'src/services/users/users.schema';
|
|
3
|
-
/** SubscriptionHelper class provides methods for checking user subscriptions and limits. */
|
|
4
|
-
export declare class SubscriptionHelper {
|
|
5
|
-
private limits;
|
|
6
|
-
getLimits(context: HookContext): {
|
|
7
|
-
backtest: {
|
|
8
|
-
threshold: {
|
|
9
|
-
cpu: number;
|
|
10
|
-
};
|
|
11
|
-
cpu: number;
|
|
12
|
-
simultaneous: number;
|
|
13
|
-
memory: number;
|
|
14
|
-
};
|
|
15
|
-
traders: number;
|
|
16
|
-
};
|
|
17
|
-
hasActiveOrTrialSubscription(user: User): true | undefined;
|
|
18
|
-
hasCanceledSubscription(user: User): true | undefined;
|
|
19
|
-
hasFreeTrialSubscriptionExpired(context: HookContext): void;
|
|
20
|
-
isTrialActive(context: HookContext): boolean | undefined;
|
|
21
|
-
getTrialExpirationDate(context: HookContext): string | undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Checks if the user can trade with real money.
|
|
24
|
-
*
|
|
25
|
-
* @param {HookContext} context - The hook context object.
|
|
26
|
-
* @returns {Promise<void>} - Returns a promise that resolves if the user can trade with real money.
|
|
27
|
-
* @throws {Forbidden} - Throws a Forbidden error if the user does not have an active subscription.
|
|
28
|
-
*/
|
|
29
|
-
verifyIfUserCanTradeWithRealMoney(context: HookContext): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Checks if the user is below the limits of traders.
|
|
32
|
-
*
|
|
33
|
-
* @param {HookContext} context - The hook context object.
|
|
34
|
-
* @returns {Promise<void>} - Returns a promise that resolves if the user is below the limits of traders.
|
|
35
|
-
* @throws {Forbidden} - Throws a Forbidden error if the user has reached the limit of running traders.
|
|
36
|
-
* @throws {Unprocessable} - Throws an Unprocessable error if there is an error getting traders.
|
|
37
|
-
*/
|
|
38
|
-
verifyIfUserIsBelowLimitsOfTraders(context: HookContext): Promise<void>;
|
|
39
|
-
verifyBacktestSimultaneouslyLimit(context: HookContext): Promise<void>;
|
|
40
|
-
}
|
|
@@ -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,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,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>;
|
package/lib/hooks/log-error.d.ts
DELETED