@cryptorobot.ai/client 0.0.35 → 0.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{services → src/services}/exchanges/balance/balance.schema.d.ts +28 -4
- 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/download.schema.d.ts +28 -4
- 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/exchanges.schema.d.ts +246 -90
- package/lib/{services → src/services}/exchanges/ticker/ticker.class.d.ts +1 -1
- package/lib/{services → src/services}/exchanges/ticker/ticker.schema.d.ts +28 -4
- package/lib/{services → src/services}/homepage/homepage.schema.d.ts +17 -1
- 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 +92 -92
- 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/strategies.schema.d.ts +117 -35
- 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 +164 -140
- package/lib/{services → src/services}/traders/pods/events/events.class.d.ts +1 -1
- 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 +93 -3
- package/lib/{services → src/services}/traders/pods/pods.class.d.ts +1 -1
- package/lib/{services → src/services}/traders/pods/pods.schema.d.ts +84 -60
- 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}/traders/traders.schema.d.ts +263 -131
- package/lib/{services → src/services}/users/users.schema.d.ts +185 -3
- package/package.json +13 -10
- package/readme.md +50 -2
- 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 -226
- 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 -92
- 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/push-notification.helper.d.ts +0 -8
- package/lib/helpers/queue.helper.d.ts +0 -13
- 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 -48
- 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/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/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 → README.md} +0 -0
- 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.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.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.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.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 +8 -8
- /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.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.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.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.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
package/lib/configuration.d.ts
DELETED
|
@@ -1,226 +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
|
-
secure: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
122
|
-
from: import("@feathersjs/typebox").TString<string>;
|
|
123
|
-
}>;
|
|
124
|
-
backtest: import("@feathersjs/typebox").TObject<{
|
|
125
|
-
provider: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"batch">, import("@feathersjs/typebox").TLiteral<"docker">]>;
|
|
126
|
-
from: import("@feathersjs/typebox").TString<string>;
|
|
127
|
-
days: import("@feathersjs/typebox").TNumber;
|
|
128
|
-
}>;
|
|
129
|
-
emails: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
130
|
-
resendVerifySignup: import("@feathersjs/typebox").TString<string>;
|
|
131
|
-
verifySignup: import("@feathersjs/typebox").TString<string>;
|
|
132
|
-
sendResetPwd: import("@feathersjs/typebox").TString<string>;
|
|
133
|
-
resetPwdShort: import("@feathersjs/typebox").TString<string>;
|
|
134
|
-
resetPwdLong: import("@feathersjs/typebox").TString<string>;
|
|
135
|
-
passwordChange: import("@feathersjs/typebox").TString<string>;
|
|
136
|
-
}>>;
|
|
137
|
-
subscription: import("@feathersjs/typebox").TObject<{
|
|
138
|
-
limits: import("@feathersjs/typebox").TObject<{
|
|
139
|
-
trial: import("@feathersjs/typebox").TObject<{
|
|
140
|
-
days: import("@feathersjs/typebox").TNumber;
|
|
141
|
-
}>;
|
|
142
|
-
freemium: import("@feathersjs/typebox").TObject<{
|
|
143
|
-
traders: import("@feathersjs/typebox").TNumber;
|
|
144
|
-
backtest: import("@feathersjs/typebox").TObject<{
|
|
145
|
-
threshold: import("@feathersjs/typebox").TObject<{
|
|
146
|
-
cpu: import("@feathersjs/typebox").TNumber;
|
|
147
|
-
}>;
|
|
148
|
-
simultaneous: import("@feathersjs/typebox").TNumber;
|
|
149
|
-
memory: import("@feathersjs/typebox").TNumber;
|
|
150
|
-
cpu: import("@feathersjs/typebox").TNumber;
|
|
151
|
-
}>;
|
|
152
|
-
}>;
|
|
153
|
-
premium: import("@feathersjs/typebox").TObject<{
|
|
154
|
-
traders: import("@feathersjs/typebox").TNumber;
|
|
155
|
-
backtest: import("@feathersjs/typebox").TObject<{
|
|
156
|
-
threshold: import("@feathersjs/typebox").TObject<{
|
|
157
|
-
cpu: import("@feathersjs/typebox").TNumber;
|
|
158
|
-
}>;
|
|
159
|
-
simultaneous: import("@feathersjs/typebox").TNumber;
|
|
160
|
-
memory: import("@feathersjs/typebox").TNumber;
|
|
161
|
-
cpu: import("@feathersjs/typebox").TNumber;
|
|
162
|
-
}>;
|
|
163
|
-
}>;
|
|
164
|
-
}>;
|
|
165
|
-
}>;
|
|
166
|
-
image: import("@feathersjs/typebox").TString<string>;
|
|
167
|
-
maildev: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
168
|
-
api: import("@feathersjs/typebox").TString<string>;
|
|
169
|
-
inbox: import("@feathersjs/typebox").TString<string>;
|
|
170
|
-
}>>;
|
|
171
|
-
strategies: import("@feathersjs/typebox").TObject<{
|
|
172
|
-
templates: import("@feathersjs/typebox").TObject<{
|
|
173
|
-
repository: import("@feathersjs/typebox").TString<string>;
|
|
174
|
-
}>;
|
|
175
|
-
}>;
|
|
176
|
-
openai: import("@feathersjs/typebox").TObject<{
|
|
177
|
-
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
178
|
-
}>;
|
|
179
|
-
stripe: import("@feathersjs/typebox").TObject<{
|
|
180
|
-
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
181
|
-
}>;
|
|
182
|
-
testData: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
183
|
-
mixpanel: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
184
|
-
enabled: import("@feathersjs/typebox").TBoolean;
|
|
185
|
-
debug: import("@feathersjs/typebox").TBoolean;
|
|
186
|
-
token: import("@feathersjs/typebox").TString<string>;
|
|
187
|
-
}>>;
|
|
188
|
-
mautic: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
189
|
-
enabled: import("@feathersjs/typebox").TBoolean;
|
|
190
|
-
url: import("@feathersjs/typebox").TString<string>;
|
|
191
|
-
username: import("@feathersjs/typebox").TString<string>;
|
|
192
|
-
password: import("@feathersjs/typebox").TString<string>;
|
|
193
|
-
}>>;
|
|
194
|
-
mixpanelClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
195
|
-
firebaseClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
196
|
-
telegramClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
197
|
-
brevoClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
198
|
-
mauticClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
199
|
-
maildevClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
200
|
-
brevo: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
201
|
-
enabled: import("@feathersjs/typebox").TBoolean;
|
|
202
|
-
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
203
|
-
}>>;
|
|
204
|
-
revenueCat: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
205
|
-
enabled: import("@feathersjs/typebox").TBoolean;
|
|
206
|
-
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
207
|
-
}>>;
|
|
208
|
-
fileSystemId: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
209
|
-
useInMemoryServices: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
210
|
-
awsClient: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
211
|
-
telegram: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
212
|
-
enabled: import("@feathersjs/typebox").TBoolean;
|
|
213
|
-
apiId: import("@feathersjs/typebox").TAny;
|
|
214
|
-
apiHash: import("@feathersjs/typebox").TAny;
|
|
215
|
-
stringSession: import("@feathersjs/typebox").TAny;
|
|
216
|
-
}>>;
|
|
217
|
-
logs: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
218
|
-
driver: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"awslogs">]>;
|
|
219
|
-
credentials: import("@feathersjs/typebox").TObject<{
|
|
220
|
-
AWS_ACCESS_KEY_ID: import("@feathersjs/typebox").TString<string>;
|
|
221
|
-
AWS_SECRET_ACCESS_KEY: import("@feathersjs/typebox").TString<string>;
|
|
222
|
-
}>;
|
|
223
|
-
}>>;
|
|
224
|
-
}>]>;
|
|
225
|
-
export type ApplicationConfiguration = Static<typeof configurationSchema>;
|
|
226
|
-
export declare const configurationValidator: import("@feathersjs/schema").Validator<any, any>;
|
package/lib/declarations.d.ts
DELETED
|
@@ -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,92 +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
|
-
/**
|
|
41
|
-
* Validates the required credentials for an exchange.
|
|
42
|
-
*
|
|
43
|
-
* @param exchange - The exchange object containing the required credentials.
|
|
44
|
-
* @returns A promise that resolves to true if the credentials are valid, or false if they are not.
|
|
45
|
-
* @throws BadRequest error if the required credentials are not provided.
|
|
46
|
-
*/
|
|
47
|
-
checkCredentials(exchange: any): Promise<any>;
|
|
48
|
-
/**
|
|
49
|
-
* Loads the markets for a given exchange.
|
|
50
|
-
*
|
|
51
|
-
* This function is needed to store the pairs from each exchange and runs on every patch exchange hook. However, to
|
|
52
|
-
* avoid overloading the endpoint, the response update to the market table is done using a minimum time difference
|
|
53
|
-
* required.
|
|
54
|
-
*
|
|
55
|
-
* @param context - The context object.
|
|
56
|
-
* @param exchange - The exchange name.
|
|
57
|
-
* @param silent - Optional. If true, suppresses debug logs. Default is false.
|
|
58
|
-
* @returns A promise that resolves to the loaded markets.
|
|
59
|
-
* @throws {GeneralError} If there is an error loading the markets.
|
|
60
|
-
*/
|
|
61
|
-
loadMarkets(context: any, exchange: any, silent?: Boolean): Promise<any>;
|
|
62
|
-
/**
|
|
63
|
-
* Retrieves the bases and quotes from the given markets.
|
|
64
|
-
*
|
|
65
|
-
* @param markets - The markets object.
|
|
66
|
-
* @returns A promise that resolves to an object containing the markets, bases, and quotes.
|
|
67
|
-
*/
|
|
68
|
-
getBasesAndQuotes(markets: any): Promise<any>;
|
|
69
|
-
/**
|
|
70
|
-
* Verifies if the interval needed to wait in order to add again to the database is bigger than the value informed in
|
|
71
|
-
* default.json. If the interval is not bigger, the method skips creating the data into the database.
|
|
72
|
-
*
|
|
73
|
-
* @param {HookContext} context - The context object.
|
|
74
|
-
* @param {any} markets - The markets data.
|
|
75
|
-
* @param {String} exchange - The exchange name.
|
|
76
|
-
* @param {Boolean} [force] - Optional. If true, forces the refresh of the market data.
|
|
77
|
-
* @returns {Promise<any>} - A promise that resolves with the markets data if the refresh is needed, or false if the
|
|
78
|
-
* refresh is not needed.
|
|
79
|
-
*/
|
|
80
|
-
verifyIfNeedToRefresh(context: HookContext, markets: any, exchange: String, force?: Boolean): Promise<any>;
|
|
81
|
-
/**
|
|
82
|
-
* Finds all pairs/markets of a specific exchange and keeps only the last one to save space in the database.
|
|
83
|
-
*
|
|
84
|
-
* @param {HookContext} context - The context object.
|
|
85
|
-
* @param {String} exchange - The name of the exchange.
|
|
86
|
-
* @returns {Promise<any>} - A promise that resolves with the markets data.
|
|
87
|
-
* @throws {GeneralError} - If there is an error finding or removing the markets.
|
|
88
|
-
*/
|
|
89
|
-
keepOnlyLastOnePerExchange(context: HookContext, exchange: String): Promise<any>;
|
|
90
|
-
static getAllExchanges(): any;
|
|
91
|
-
static getTimeframesFromExchange(alias: string): any;
|
|
92
|
-
}
|
|
@@ -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,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
|
-
}
|