@cryptorobot.ai/client 0.0.8
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/app.d.ts +3 -0
- package/lib/authentication.d.ts +8 -0
- package/lib/channels.d.ts +3 -0
- package/lib/client.d.ts +81 -0
- package/lib/client.js +99 -0
- package/lib/configuration.d.ts +148 -0
- package/lib/declarations.d.ts +16 -0
- package/lib/helper.d.ts +22 -0
- package/lib/helpers/app.helper.d.ts +12 -0
- package/lib/helpers/backtest.helper.d.ts +12 -0
- package/lib/helpers/ccxt.helper.d.ts +15 -0
- package/lib/helpers/deployments.helper.d.ts +11 -0
- package/lib/helpers/handlebars.helper.d.ts +10 -0
- package/lib/helpers/logging.helper.d.ts +7 -0
- package/lib/helpers/trader.helper.d.ts +10 -0
- package/lib/hooks/application/setup-ccxt-load-marketplaces.d.ts +2 -0
- package/lib/hooks/application/setup-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/application/setup-config-preparation.d.ts +3 -0
- package/lib/hooks/application/setup-info.d.ts +3 -0
- package/lib/hooks/application/setup-load-indicators.d.ts +3 -0
- package/lib/hooks/application/setup-load-strategy-templates.d.ts +3 -0
- package/lib/hooks/backtest-copy-candles-from-user-data.d.ts +2 -0
- package/lib/hooks/backtest-generate-and-start.d.ts +2 -0
- package/lib/hooks/backtest-generate-config.d.ts +2 -0
- package/lib/hooks/backtest-generate-exchange-config.d.ts +2 -0
- package/lib/hooks/backtest-get-results.d.ts +2 -0
- package/lib/hooks/backtest-in-disk-clone-strategy.d.ts +2 -0
- package/lib/hooks/backtest-validate.d.ts +2 -0
- package/lib/hooks/check-required-credentials.d.ts +2 -0
- package/lib/hooks/enrich-webhook-to-event.d.ts +2 -0
- package/lib/hooks/exchanges/after-create-ccxt-balances-propagate-to-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/after-find-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/exchanges/after-get-whitelist-blacklist-transform.d.ts +2 -0
- package/lib/hooks/exchanges/before-create-ccxt-get-balances.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-blacklist-validation-per-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-ccxt-connect-exchange.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-ccxt-load-markets.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-transform.d.ts +2 -0
- package/lib/hooks/exchanges/before-patch-whitelist-blacklist-validate.d.ts +2 -0
- package/lib/hooks/exchanges/download/after-create-get-recent-downloaded-data-info.d.ts +2 -0
- package/lib/hooks/exchanges/download/before-create-generate-config.d.ts +2 -0
- package/lib/hooks/exchanges/download/before-create-process-exchange-data-download.d.ts +2 -0
- package/lib/hooks/log-error.d.ts +2 -0
- package/lib/hooks/messages/messages-process-data.d.ts +2 -0
- package/lib/hooks/openai-process-request.d.ts +2 -0
- package/lib/hooks/pairs-transform.d.ts +2 -0
- package/lib/hooks/remove-container.d.ts +2 -0
- package/lib/hooks/set-default-strategy.d.ts +2 -0
- package/lib/hooks/setup-prepare-maildev-while-in-test-env.d.ts +3 -0
- package/lib/hooks/setup-stripe.d.ts +2 -0
- package/lib/hooks/strategies/disk-create-strategy.d.ts +2 -0
- package/lib/hooks/strategies/disk-remove-strategy.d.ts +2 -0
- package/lib/hooks/strategies/file-strategies-clone.d.ts +2 -0
- package/lib/hooks/stripe-check-subscription.d.ts +2 -0
- package/lib/hooks/stripe-create-payment-intent.d.ts +2 -0
- package/lib/hooks/stripe-is-subscription-active.d.ts +2 -0
- package/lib/hooks/stripe-sync-customer-data.d.ts +2 -0
- package/lib/hooks/tickers-fetch.d.ts +2 -0
- package/lib/hooks/traders/after-patch-file-candles-clone.d.ts +2 -0
- package/lib/hooks/traders/before-patch-folders-initialize.d.ts +2 -0
- package/lib/hooks/traders/before-patch-transform-pairlist-plugins.d.ts +2 -0
- package/lib/hooks/traders/container-api-control.d.ts +2 -0
- package/lib/hooks/traders/container-stop.d.ts +2 -0
- package/lib/hooks/traders/create-trader-container.d.ts +2 -0
- package/lib/hooks/traders/generate-exchange-config.d.ts +2 -0
- package/lib/hooks/traders/generate-trader-config.d.ts +2 -0
- package/lib/hooks/traders/pods-container-inspect.d.ts +2 -0
- package/lib/hooks/traders/pods-process-worker.d.ts +2 -0
- package/lib/hooks/users/email-verify-signup.d.ts +2 -0
- package/lib/index.d.ts +1 -0
- package/lib/logger.d.ts +1 -0
- package/lib/mongodb.d.ts +8 -0
- package/lib/prepare-for-publish.d.ts +1 -0
- package/lib/services/auth-management/auth-management.class.d.ts +1 -0
- package/lib/services/auth-management/auth-management.d.ts +7 -0
- package/lib/services/auth-management/auth-management.shared.d.ts +6 -0
- package/lib/services/auth-management/auth-management.shared.js +17 -0
- package/lib/services/auth-management/auth-management.utils.d.ts +1 -0
- package/lib/services/config/config.class.d.ts +14 -0
- package/lib/services/config/config.d.ts +10 -0
- package/lib/services/config/config.shared.d.ts +13 -0
- package/lib/services/config/config.shared.js +13 -0
- package/lib/services/custom/custom.class.d.ts +26 -0
- package/lib/services/custom/custom.d.ts +10 -0
- package/lib/services/custom/custom.shared.d.ts +13 -0
- package/lib/services/custom/custom.shared.js +13 -0
- package/lib/services/exchanges/balance/balance.class.d.ts +11 -0
- package/lib/services/exchanges/balance/balance.d.ts +11 -0
- package/lib/services/exchanges/balance/balance.schema.d.ts +711 -0
- package/lib/services/exchanges/balance/balance.shared.d.ts +13 -0
- package/lib/services/exchanges/balance/balance.shared.js +13 -0
- package/lib/services/exchanges/download/download.class.d.ts +11 -0
- package/lib/services/exchanges/download/download.d.ts +11 -0
- package/lib/services/exchanges/download/download.schema.d.ts +871 -0
- package/lib/services/exchanges/download/download.shared.d.ts +13 -0
- package/lib/services/exchanges/download/download.shared.js +13 -0
- package/lib/services/exchanges/download/webhooks/webhooks.class.d.ts +11 -0
- package/lib/services/exchanges/download/webhooks/webhooks.d.ts +11 -0
- package/lib/services/exchanges/download/webhooks/webhooks.schema.d.ts +541 -0
- package/lib/services/exchanges/download/webhooks/webhooks.shared.d.ts +13 -0
- package/lib/services/exchanges/download/webhooks/webhooks.shared.js +13 -0
- package/lib/services/exchanges/exchanges.class.d.ts +11 -0
- package/lib/services/exchanges/exchanges.d.ts +11 -0
- package/lib/services/exchanges/exchanges.schema.d.ts +835 -0
- package/lib/services/exchanges/exchanges.shared.d.ts +13 -0
- package/lib/services/exchanges/exchanges.shared.js +13 -0
- package/lib/services/exchanges/ticker/ticker.class.d.ts +11 -0
- package/lib/services/exchanges/ticker/ticker.d.ts +11 -0
- package/lib/services/exchanges/ticker/ticker.schema.d.ts +859 -0
- package/lib/services/exchanges/ticker/ticker.shared.d.ts +13 -0
- package/lib/services/exchanges/ticker/ticker.shared.js +13 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/mailer/mailer.class.d.ts +26 -0
- package/lib/services/mailer/mailer.d.ts +7 -0
- package/lib/services/mailer/mailer.shared.d.ts +13 -0
- package/lib/services/mailer/mailer.shared.js +13 -0
- package/lib/services/marketplaces/marketplaces.class.d.ts +14 -0
- package/lib/services/marketplaces/marketplaces.d.ts +10 -0
- package/lib/services/marketplaces/marketplaces.shared.d.ts +13 -0
- package/lib/services/marketplaces/marketplaces.shared.js +13 -0
- package/lib/services/markets/markets.class.d.ts +11 -0
- package/lib/services/markets/markets.d.ts +11 -0
- package/lib/services/markets/markets.schema.d.ts +503 -0
- package/lib/services/markets/markets.shared.d.ts +13 -0
- package/lib/services/markets/markets.shared.js +13 -0
- package/lib/services/messages/messages.class.d.ts +11 -0
- package/lib/services/messages/messages.d.ts +11 -0
- package/lib/services/messages/messages.schema.d.ts +711 -0
- package/lib/services/messages/messages.shared.d.ts +13 -0
- package/lib/services/messages/messages.shared.js +13 -0
- package/lib/services/strategies/ai/ai.class.d.ts +11 -0
- package/lib/services/strategies/ai/ai.d.ts +11 -0
- package/lib/services/strategies/ai/ai.schema.d.ts +287 -0
- package/lib/services/strategies/ai/ai.shared.d.ts +13 -0
- package/lib/services/strategies/ai/ai.shared.js +13 -0
- package/lib/services/strategies/ai/stream/stream.class.d.ts +26 -0
- package/lib/services/strategies/ai/stream/stream.d.ts +10 -0
- package/lib/services/strategies/ai/stream/stream.shared.d.ts +13 -0
- package/lib/services/strategies/ai/stream/stream.shared.js +13 -0
- package/lib/services/strategies/backtest/backtest.class.d.ts +11 -0
- package/lib/services/strategies/backtest/backtest.d.ts +11 -0
- package/lib/services/strategies/backtest/backtest.schema.d.ts +401 -0
- package/lib/services/strategies/backtest/backtest.shared.d.ts +13 -0
- package/lib/services/strategies/backtest/backtest.shared.js +13 -0
- package/lib/services/strategies/backtest/results/results.class.d.ts +11 -0
- package/lib/services/strategies/backtest/results/results.d.ts +11 -0
- package/lib/services/strategies/backtest/results/results.schema.d.ts +1115 -0
- package/lib/services/strategies/backtest/results/results.shared.d.ts +13 -0
- package/lib/services/strategies/backtest/results/results.shared.js +13 -0
- package/lib/services/strategies/blob/blob.class.d.ts +26 -0
- package/lib/services/strategies/blob/blob.d.ts +10 -0
- package/lib/services/strategies/blob/blob.shared.d.ts +13 -0
- package/lib/services/strategies/blob/blob.shared.js +13 -0
- package/lib/services/strategies/indicators/indicators.class.d.ts +11 -0
- package/lib/services/strategies/indicators/indicators.d.ts +11 -0
- package/lib/services/strategies/indicators/indicators.schema.d.ts +277 -0
- package/lib/services/strategies/indicators/indicators.shared.d.ts +13 -0
- package/lib/services/strategies/indicators/indicators.shared.js +13 -0
- package/lib/services/strategies/strategies.class.d.ts +11 -0
- package/lib/services/strategies/strategies.d.ts +11 -0
- package/lib/services/strategies/strategies.schema.d.ts +2279 -0
- package/lib/services/strategies/strategies.shared.d.ts +13 -0
- package/lib/services/strategies/strategies.shared.js +13 -0
- package/lib/services/strategies/templates/templates.class.d.ts +11 -0
- package/lib/services/strategies/templates/templates.d.ts +11 -0
- package/lib/services/strategies/templates/templates.schema.d.ts +269 -0
- package/lib/services/strategies/templates/templates.shared.d.ts +13 -0
- package/lib/services/strategies/templates/templates.shared.js +13 -0
- package/lib/services/stripe/charges/charges.class.d.ts +26 -0
- package/lib/services/stripe/charges/charges.d.ts +10 -0
- package/lib/services/stripe/charges/charges.shared.d.ts +13 -0
- package/lib/services/stripe/charges/charges.shared.js +13 -0
- package/lib/services/stripe/customers/cards/cards.class.d.ts +26 -0
- package/lib/services/stripe/customers/cards/cards.d.ts +10 -0
- package/lib/services/stripe/customers/cards/cards.shared.d.ts +13 -0
- package/lib/services/stripe/customers/cards/cards.shared.js +13 -0
- package/lib/services/stripe/customers/customers.class.d.ts +26 -0
- package/lib/services/stripe/customers/customers.d.ts +10 -0
- package/lib/services/stripe/customers/customers.shared.d.ts +13 -0
- package/lib/services/stripe/customers/customers.shared.js +13 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.class.d.ts +26 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.d.ts +10 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.shared.d.ts +13 -0
- package/lib/services/stripe/customers/paymentintent/paymentintent.shared.js +13 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.class.d.ts +26 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.d.ts +10 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.shared.d.ts +13 -0
- package/lib/services/stripe/customers/paymentmethods/paymentmethods.shared.js +13 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.class.d.ts +26 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.d.ts +10 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.shared.d.ts +13 -0
- package/lib/services/stripe/customers/subscriptions/subscriptions.shared.js +13 -0
- package/lib/services/stripe/products/products.class.d.ts +26 -0
- package/lib/services/stripe/products/products.d.ts +10 -0
- package/lib/services/stripe/products/products.shared.d.ts +13 -0
- package/lib/services/stripe/products/products.shared.js +13 -0
- package/lib/services/traders/pods/api/api.class.d.ts +11 -0
- package/lib/services/traders/pods/api/api.d.ts +11 -0
- package/lib/services/traders/pods/api/api.schema.d.ts +5149 -0
- package/lib/services/traders/pods/api/api.shared.d.ts +13 -0
- package/lib/services/traders/pods/api/api.shared.js +13 -0
- package/lib/services/traders/pods/blob/blob.class.d.ts +26 -0
- package/lib/services/traders/pods/blob/blob.d.ts +9 -0
- package/lib/services/traders/pods/blob/blob.shared.d.ts +13 -0
- package/lib/services/traders/pods/blob/blob.shared.js +13 -0
- package/lib/services/traders/pods/events/events.class.d.ts +11 -0
- package/lib/services/traders/pods/events/events.d.ts +11 -0
- package/lib/services/traders/pods/events/events.schema.d.ts +531 -0
- package/lib/services/traders/pods/events/events.shared.d.ts +13 -0
- package/lib/services/traders/pods/events/events.shared.js +13 -0
- package/lib/services/traders/pods/pods.class.d.ts +11 -0
- package/lib/services/traders/pods/pods.d.ts +11 -0
- package/lib/services/traders/pods/pods.schema.d.ts +3933 -0
- package/lib/services/traders/pods/pods.shared.d.ts +13 -0
- package/lib/services/traders/pods/pods.shared.js +13 -0
- package/lib/services/traders/pods/webhooks/webhooks.class.d.ts +11 -0
- package/lib/services/traders/pods/webhooks/webhooks.d.ts +11 -0
- package/lib/services/traders/pods/webhooks/webhooks.schema.d.ts +351 -0
- package/lib/services/traders/pods/webhooks/webhooks.shared.d.ts +13 -0
- package/lib/services/traders/pods/webhooks/webhooks.shared.js +13 -0
- package/lib/services/traders/traders.class.d.ts +11 -0
- package/lib/services/traders/traders.d.ts +11 -0
- package/lib/services/traders/traders.schema.d.ts +2825 -0
- package/lib/services/traders/traders.shared.d.ts +13 -0
- package/lib/services/traders/traders.shared.js +13 -0
- package/lib/services/users/users.class.d.ts +11 -0
- package/lib/services/users/users.d.ts +11 -0
- package/lib/services/users/users.helper.d.ts +9 -0
- package/lib/services/users/users.schema.d.ts +615 -0
- package/lib/services/users/users.shared.d.ts +13 -0
- package/lib/services/users/users.shared.js +13 -0
- package/lib/validators.d.ts +3 -0
- package/package.json +37 -0
- package/readme.md +41 -0
package/lib/app.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AuthenticationService } from '@feathersjs/authentication';
|
|
2
|
+
import type { Application } from './declarations';
|
|
3
|
+
declare module './declarations' {
|
|
4
|
+
interface ServiceTypes {
|
|
5
|
+
authentication: AuthenticationService;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
export declare const authentication: (app: Application) => void;
|
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { TransportConnection, Application } from '@feathersjs/feathers';
|
|
2
|
+
import type { AuthenticationClientOptions } from '@feathersjs/authentication-client';
|
|
3
|
+
import './services/stripe/customers/paymentmethods/paymentmethods.shared';
|
|
4
|
+
export type { StripeCustomersPaymentmethods, StripeCustomersPaymentmethodsData, StripeCustomersPaymentmethodsQuery, StripeCustomersPaymentmethodsPatch } from './services/stripe/customers/paymentmethods/paymentmethods.shared';
|
|
5
|
+
import './services/stripe/customers/subscriptions/subscriptions.shared';
|
|
6
|
+
export type { StripeCustomersSubscriptions, StripeCustomersSubscriptionsData, StripeCustomersSubscriptionsQuery, StripeCustomersSubscriptionsPatch } from './services/stripe/customers/subscriptions/subscriptions.shared';
|
|
7
|
+
import './services/stripe/products/products.shared';
|
|
8
|
+
export type { StripeProducts, StripeProductsData, StripeProductsQuery, StripeProductsPatch } from './services/stripe/products/products.shared';
|
|
9
|
+
import './services/stripe/customers/cards/cards.shared';
|
|
10
|
+
export type { StripeCustomersCards, StripeCustomersCardsData, StripeCustomersCardsQuery, StripeCustomersCardsPatch } from './services/stripe/customers/cards/cards.shared';
|
|
11
|
+
import './services/stripe/customers/paymentintent/paymentintent.shared';
|
|
12
|
+
export type { StripeCustomersPaymentintent, StripeCustomersPaymentintentData, StripeCustomersPaymentintentQuery, StripeCustomersPaymentintentPatch } from './services/stripe/customers/paymentintent/paymentintent.shared';
|
|
13
|
+
import './services/stripe/customers/customers.shared';
|
|
14
|
+
export type { StripeCustomers, StripeCustomersData, StripeCustomersQuery, StripeCustomersPatch } from './services/stripe/customers/customers.shared';
|
|
15
|
+
import './services/stripe/charges/charges.shared';
|
|
16
|
+
export type { StripeCharges, StripeChargesData, StripeChargesQuery, StripeChargesPatch } from './services/stripe/charges/charges.shared';
|
|
17
|
+
import './services/strategies/ai/stream/stream.shared';
|
|
18
|
+
export type { StrategiesAiStream, StrategiesAiStreamData, StrategiesAiStreamQuery, StrategiesAiStreamPatch } from './services/strategies/ai/stream/stream.shared';
|
|
19
|
+
import './services/strategies/ai/ai.shared';
|
|
20
|
+
export type { StrategiesAi, StrategiesAiData, StrategiesAiQuery, StrategiesAiPatch } from './services/strategies/ai/ai.shared';
|
|
21
|
+
import './services/strategies/backtest/results/results.shared';
|
|
22
|
+
export type { StrategiesBacktestResults, StrategiesBacktestResultsData, StrategiesBacktestResultsQuery, StrategiesBacktestResultsPatch } from './services/strategies/backtest/results/results.shared';
|
|
23
|
+
import './services/strategies/backtest/backtest.shared';
|
|
24
|
+
export type { StrategiesBacktest, StrategiesBacktestData, StrategiesBacktestQuery, StrategiesBacktestPatch } from './services/strategies/backtest/backtest.shared';
|
|
25
|
+
import './services/traders/pods/events/events.shared';
|
|
26
|
+
export type { TradersPodsEvents, TradersPodsEventsData, TradersPodsEventsQuery, TradersPodsEventsPatch } from './services/traders/pods/events/events.shared';
|
|
27
|
+
import './services/traders/pods/webhooks/webhooks.shared';
|
|
28
|
+
export type { TradersPodsWebhooks, TradersPodsWebhooksData, TradersPodsWebhooksQuery, TradersPodsWebhooksPatch } from './services/traders/pods/webhooks/webhooks.shared';
|
|
29
|
+
import './services/traders/pods/api/api.shared';
|
|
30
|
+
export type { TradersPodsApi, TradersPodsApiData, TradersPodsApiQuery, TradersPodsApiPatch } from './services/traders/pods/api/api.shared';
|
|
31
|
+
import './services/strategies/indicators/indicators.shared';
|
|
32
|
+
export type { StrategiesIndicators, StrategiesIndicatorsData, StrategiesIndicatorsQuery, StrategiesIndicatorsPatch } from './services/strategies/indicators/indicators.shared';
|
|
33
|
+
import './services/strategies/templates/templates.shared';
|
|
34
|
+
export type { StrategiesTemplates, StrategiesTemplatesData, StrategiesTemplatesQuery, StrategiesTemplatesPatch } from './services/strategies/templates/templates.shared';
|
|
35
|
+
import './services/strategies/blob/blob.shared';
|
|
36
|
+
export type { StrategiesBlob, StrategiesBlobData, StrategiesBlobQuery, StrategiesBlobPatch } from './services/strategies/blob/blob.shared';
|
|
37
|
+
import './services/strategies/strategies.shared';
|
|
38
|
+
export type { Strategies, StrategiesData, StrategiesQuery, StrategiesPatch } from './services/strategies/strategies.shared';
|
|
39
|
+
import './services/traders/pods/pods.shared';
|
|
40
|
+
export type { TradersPods, TradersPodsData, TradersPodsQuery, TradersPodsPatch } from './services/traders/pods/pods.shared';
|
|
41
|
+
import './services/traders/traders.shared';
|
|
42
|
+
export type { Traders, TradersData, TradersQuery, TradersPatch } from './services/traders/traders.shared';
|
|
43
|
+
import './services/exchanges/download/webhooks/webhooks.shared';
|
|
44
|
+
export type { ExchangesDownloadWebhooks, ExchangesDownloadWebhooksData, ExchangesDownloadWebhooksQuery, ExchangesDownloadWebhooksPatch } from './services/exchanges/download/webhooks/webhooks.shared';
|
|
45
|
+
import './services/traders/pods/blob/blob.shared';
|
|
46
|
+
export type { TradersPodsBlob, TradersPodsBlobData, TradersPodsBlobQuery, TradersPodsBlobPatch } from './services/traders/pods/blob/blob.shared';
|
|
47
|
+
import './services/exchanges/download/download.shared';
|
|
48
|
+
export type { ExchangesDownload, ExchangesDownloadData, ExchangesDownloadQuery, ExchangesDownloadPatch } from './services/exchanges/download/download.shared';
|
|
49
|
+
import './services/exchanges/balance/balance.shared';
|
|
50
|
+
export type { ExchangesBalance, ExchangesBalanceData, ExchangesBalanceQuery, ExchangesBalancePatch } from './services/exchanges/balance/balance.shared';
|
|
51
|
+
import './services/exchanges/ticker/ticker.shared';
|
|
52
|
+
export type { ExchangesTicker, ExchangesTickerData, ExchangesTickerQuery, ExchangesTickerPatch } from './services/exchanges/ticker/ticker.shared';
|
|
53
|
+
import './services/marketplaces/marketplaces.shared';
|
|
54
|
+
export type { Marketplaces, MarketplacesData, MarketplacesQuery, MarketplacesPatch } from './services/marketplaces/marketplaces.shared';
|
|
55
|
+
import './services/config/config.shared';
|
|
56
|
+
export type { Config, ConfigData, ConfigQuery, ConfigPatch } from './services/config/config.shared';
|
|
57
|
+
import './services/markets/markets.shared';
|
|
58
|
+
export type { Markets, MarketsData, MarketsQuery, MarketsPatch } from './services/markets/markets.shared';
|
|
59
|
+
import './services/exchanges/exchanges.shared';
|
|
60
|
+
export type { Exchanges, ExchangesData, ExchangesQuery, ExchangesPatch } from './services/exchanges/exchanges.shared';
|
|
61
|
+
import './services/custom/custom.shared';
|
|
62
|
+
export type { Custom, CustomData, CustomQuery, CustomPatch } from './services/custom/custom.shared';
|
|
63
|
+
import './services/messages/messages.shared';
|
|
64
|
+
export type { Messages, MessagesData, MessagesQuery, MessagesPatch } from './services/messages/messages.shared';
|
|
65
|
+
import './services/users/users.shared';
|
|
66
|
+
export type { User, UserData, UserQuery, UserPatch } from './services/users/users.shared';
|
|
67
|
+
export interface Configuration {
|
|
68
|
+
connection: TransportConnection<ServiceTypes>;
|
|
69
|
+
}
|
|
70
|
+
export interface ServiceTypes {
|
|
71
|
+
}
|
|
72
|
+
export type ClientApplication = Application<ServiceTypes, Configuration>;
|
|
73
|
+
/**
|
|
74
|
+
* Returns a typed client for the backend app.
|
|
75
|
+
*
|
|
76
|
+
* @param connection The REST or Socket.io Feathers client connection
|
|
77
|
+
* @param authenticationOptions Additional settings for the authentication client
|
|
78
|
+
* @see https://dove.feathersjs.com/api/client.html
|
|
79
|
+
* @returns The Feathers client application
|
|
80
|
+
*/
|
|
81
|
+
export declare const createClient: <Configuration_1 = any>(connection: TransportConnection<ServiceTypes>, authenticationOptions?: Partial<AuthenticationClientOptions>) => ClientApplication;
|
package/lib/client.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createClient = void 0;
|
|
7
|
+
// For more information about this file see https://dove.feathersjs.com/guides/cli/client.html
|
|
8
|
+
const feathers_1 = require("@feathersjs/feathers");
|
|
9
|
+
const authentication_client_1 = __importDefault(require("@feathersjs/authentication-client"));
|
|
10
|
+
const paymentmethods_shared_1 = require("./services/stripe/customers/paymentmethods/paymentmethods.shared");
|
|
11
|
+
const subscriptions_shared_1 = require("./services/stripe/customers/subscriptions/subscriptions.shared");
|
|
12
|
+
const products_shared_1 = require("./services/stripe/products/products.shared");
|
|
13
|
+
const cards_shared_1 = require("./services/stripe/customers/cards/cards.shared");
|
|
14
|
+
const paymentintent_shared_1 = require("./services/stripe/customers/paymentintent/paymentintent.shared");
|
|
15
|
+
const customers_shared_1 = require("./services/stripe/customers/customers.shared");
|
|
16
|
+
const charges_shared_1 = require("./services/stripe/charges/charges.shared");
|
|
17
|
+
const stream_shared_1 = require("./services/strategies/ai/stream/stream.shared");
|
|
18
|
+
const ai_shared_1 = require("./services/strategies/ai/ai.shared");
|
|
19
|
+
const results_shared_1 = require("./services/strategies/backtest/results/results.shared");
|
|
20
|
+
const backtest_shared_1 = require("./services/strategies/backtest/backtest.shared");
|
|
21
|
+
const events_shared_1 = require("./services/traders/pods/events/events.shared");
|
|
22
|
+
const webhooks_shared_1 = require("./services/traders/pods/webhooks/webhooks.shared");
|
|
23
|
+
const api_shared_1 = require("./services/traders/pods/api/api.shared");
|
|
24
|
+
const indicators_shared_1 = require("./services/strategies/indicators/indicators.shared");
|
|
25
|
+
const templates_shared_1 = require("./services/strategies/templates/templates.shared");
|
|
26
|
+
const blob_shared_1 = require("./services/strategies/blob/blob.shared");
|
|
27
|
+
const strategies_shared_1 = require("./services/strategies/strategies.shared");
|
|
28
|
+
const pods_shared_1 = require("./services/traders/pods/pods.shared");
|
|
29
|
+
const traders_shared_1 = require("./services/traders/traders.shared");
|
|
30
|
+
const webhooks_shared_2 = require("./services/exchanges/download/webhooks/webhooks.shared");
|
|
31
|
+
const blob_shared_2 = require("./services/traders/pods/blob/blob.shared");
|
|
32
|
+
const download_shared_1 = require("./services/exchanges/download/download.shared");
|
|
33
|
+
// import { exchangesDataClient } from './services/exchanges/data/data.shared'
|
|
34
|
+
// export type {
|
|
35
|
+
// ExchangesData,
|
|
36
|
+
// ExchangesDataData,
|
|
37
|
+
// ExchangesDataQuery,
|
|
38
|
+
// ExchangesDataPatch
|
|
39
|
+
// } from './services/exchanges/data/data.shared'
|
|
40
|
+
const balance_shared_1 = require("./services/exchanges/balance/balance.shared");
|
|
41
|
+
const ticker_shared_1 = require("./services/exchanges/ticker/ticker.shared");
|
|
42
|
+
const marketplaces_shared_1 = require("./services/marketplaces/marketplaces.shared");
|
|
43
|
+
const config_shared_1 = require("./services/config/config.shared");
|
|
44
|
+
const markets_shared_1 = require("./services/markets/markets.shared");
|
|
45
|
+
const exchanges_shared_1 = require("./services/exchanges/exchanges.shared");
|
|
46
|
+
const custom_shared_1 = require("./services/custom/custom.shared");
|
|
47
|
+
const messages_shared_1 = require("./services/messages/messages.shared");
|
|
48
|
+
const users_shared_1 = require("./services/users/users.shared");
|
|
49
|
+
/**
|
|
50
|
+
* Returns a typed client for the backend app.
|
|
51
|
+
*
|
|
52
|
+
* @param connection The REST or Socket.io Feathers client connection
|
|
53
|
+
* @param authenticationOptions Additional settings for the authentication client
|
|
54
|
+
* @see https://dove.feathersjs.com/api/client.html
|
|
55
|
+
* @returns The Feathers client application
|
|
56
|
+
*/
|
|
57
|
+
const createClient = (connection, authenticationOptions = {}) => {
|
|
58
|
+
const client = (0, feathers_1.feathers)();
|
|
59
|
+
client.configure(connection);
|
|
60
|
+
client.configure((0, authentication_client_1.default)(authenticationOptions));
|
|
61
|
+
client.set('connection', connection);
|
|
62
|
+
client.configure(users_shared_1.userClient);
|
|
63
|
+
client.configure(messages_shared_1.messagesClient);
|
|
64
|
+
client.configure(custom_shared_1.customClient);
|
|
65
|
+
client.configure(exchanges_shared_1.exchangesClient);
|
|
66
|
+
client.configure(markets_shared_1.marketsClient);
|
|
67
|
+
client.configure(config_shared_1.configClient);
|
|
68
|
+
client.configure(marketplaces_shared_1.marketplacesClient);
|
|
69
|
+
client.configure(ticker_shared_1.exchangesTickerClient);
|
|
70
|
+
client.configure(balance_shared_1.exchangesBalanceClient);
|
|
71
|
+
// client.configure(exchangesDataClient)
|
|
72
|
+
client.configure(download_shared_1.exchangesDownloadClient);
|
|
73
|
+
client.configure(blob_shared_2.tradersPodsBlobClient);
|
|
74
|
+
client.configure(webhooks_shared_2.exchangesDownloadWebhooksClient);
|
|
75
|
+
client.configure(traders_shared_1.tradersClient);
|
|
76
|
+
client.configure(pods_shared_1.tradersPodsClient);
|
|
77
|
+
client.configure(strategies_shared_1.strategiesClient);
|
|
78
|
+
client.configure(blob_shared_1.strategiesBlobClient);
|
|
79
|
+
client.configure(templates_shared_1.strategiesTemplatesClient);
|
|
80
|
+
client.configure(indicators_shared_1.strategiesIndicatorsClient);
|
|
81
|
+
client.configure(api_shared_1.tradersPodsApiClient);
|
|
82
|
+
client.configure(webhooks_shared_1.tradersPodsWebhooksClient);
|
|
83
|
+
client.configure(webhooks_shared_2.exchangesDownloadWebhooksClient);
|
|
84
|
+
client.configure(events_shared_1.tradersPodsEventsClient);
|
|
85
|
+
client.configure(backtest_shared_1.strategiesBacktestClient);
|
|
86
|
+
client.configure(results_shared_1.strategiesBacktestResultsClient);
|
|
87
|
+
client.configure(ai_shared_1.strategiesAiClient);
|
|
88
|
+
client.configure(stream_shared_1.strategiesAiStreamClient);
|
|
89
|
+
client.configure(charges_shared_1.stripeChargesClient);
|
|
90
|
+
client.configure(customers_shared_1.stripeCustomersClient);
|
|
91
|
+
client.configure(paymentintent_shared_1.stripeCustomersPaymentintentClient);
|
|
92
|
+
client.configure(cards_shared_1.stripeCustomersCardsClient);
|
|
93
|
+
client.configure(products_shared_1.stripeProductsClient);
|
|
94
|
+
client.configure(subscriptions_shared_1.stripeCustomersSubscriptionsClient);
|
|
95
|
+
client.configure(paymentmethods_shared_1.stripeCustomersPaymentmethodsClient);
|
|
96
|
+
return client;
|
|
97
|
+
};
|
|
98
|
+
exports.createClient = createClient;
|
|
99
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1,148 @@
|
|
|
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
|
+
project: import("@feathersjs/typebox").TObject<{
|
|
100
|
+
name: import("@feathersjs/typebox").TString<string>;
|
|
101
|
+
address: import("@feathersjs/typebox").TString<string>;
|
|
102
|
+
zipcode: import("@feathersjs/typebox").TString<string>;
|
|
103
|
+
city: import("@feathersjs/typebox").TString<string>;
|
|
104
|
+
country: import("@feathersjs/typebox").TString<string>;
|
|
105
|
+
}>;
|
|
106
|
+
ccxt: import("@feathersjs/typebox").TObject<{
|
|
107
|
+
loadMarketsIntervalInMinutes: import("@feathersjs/typebox").TNumber;
|
|
108
|
+
minRefreshIntervalBalancesInMinutes: import("@feathersjs/typebox").TNumber;
|
|
109
|
+
}>;
|
|
110
|
+
storage: import("@feathersjs/typebox").TString<string>;
|
|
111
|
+
configurationId: import("@feathersjs/typebox").TString<string>;
|
|
112
|
+
provider: import("@feathersjs/typebox").TUnion<[import("@feathersjs/typebox").TLiteral<"docker">]>;
|
|
113
|
+
email: import("@feathersjs/typebox").TObject<{
|
|
114
|
+
host: import("@feathersjs/typebox").TString<string>;
|
|
115
|
+
port: import("@feathersjs/typebox").TNumber;
|
|
116
|
+
user: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
117
|
+
pass: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TString<string>>;
|
|
118
|
+
secure: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TBoolean>;
|
|
119
|
+
from: import("@feathersjs/typebox").TString<string>;
|
|
120
|
+
}>;
|
|
121
|
+
emails: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
122
|
+
resendVerifySignup: import("@feathersjs/typebox").TString<string>;
|
|
123
|
+
verifySignup: import("@feathersjs/typebox").TString<string>;
|
|
124
|
+
sendResetPwd: import("@feathersjs/typebox").TString<string>;
|
|
125
|
+
resetPwdShort: import("@feathersjs/typebox").TString<string>;
|
|
126
|
+
resetPwdLong: import("@feathersjs/typebox").TString<string>;
|
|
127
|
+
passwordChange: import("@feathersjs/typebox").TString<string>;
|
|
128
|
+
}>>;
|
|
129
|
+
image: import("@feathersjs/typebox").TString<string>;
|
|
130
|
+
maildev: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TObject<{
|
|
131
|
+
api: import("@feathersjs/typebox").TString<string>;
|
|
132
|
+
inbox: import("@feathersjs/typebox").TString<string>;
|
|
133
|
+
}>>;
|
|
134
|
+
strategies: import("@feathersjs/typebox").TObject<{
|
|
135
|
+
templates: import("@feathersjs/typebox").TObject<{
|
|
136
|
+
repository: import("@feathersjs/typebox").TString<string>;
|
|
137
|
+
}>;
|
|
138
|
+
}>;
|
|
139
|
+
openai: import("@feathersjs/typebox").TObject<{
|
|
140
|
+
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
141
|
+
}>;
|
|
142
|
+
stripe: import("@feathersjs/typebox").TObject<{
|
|
143
|
+
apiKey: import("@feathersjs/typebox").TString<string>;
|
|
144
|
+
}>;
|
|
145
|
+
testData: import("@feathersjs/typebox").TOptional<import("@feathersjs/typebox").TAny>;
|
|
146
|
+
}>]>;
|
|
147
|
+
export type ApplicationConfiguration = Static<typeof configurationSchema>;
|
|
148
|
+
export declare const configurationValidator: import("@feathersjs/schema").Validator<any, any>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
package/lib/helper.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
getLogsPath(context: HookContext): PathLike;
|
|
9
|
+
getDataDownloadConfigPath(context: HookContext): PathLike;
|
|
10
|
+
getDataDownloadPath(context: HookContext): PathLike;
|
|
11
|
+
getFolderSize(folderPath: any): Promise<number>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
+
export declare class BacktestHelper {
|
|
3
|
+
client: any;
|
|
4
|
+
constructor();
|
|
5
|
+
static getName(createdAt: any): string;
|
|
6
|
+
static generate(context: HookContext): object;
|
|
7
|
+
static promisifyStream(stream: any): any;
|
|
8
|
+
static getResults(context: HookContext): any;
|
|
9
|
+
static getElapsedTime(context: HookContext): any;
|
|
10
|
+
static deploy(context: HookContext, deployment: any): Promise<any>;
|
|
11
|
+
static getTraderData(context: HookContext): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
+
export declare class CCXT {
|
|
3
|
+
ccxt: any;
|
|
4
|
+
context: HookContext;
|
|
5
|
+
exchange: any;
|
|
6
|
+
constructor(context: HookContext);
|
|
7
|
+
checkIfExchangeIsSupported(exchange: String): any;
|
|
8
|
+
errorHandler(e: any): any;
|
|
9
|
+
getRequiredCredentials(exchange: any): Promise<any>;
|
|
10
|
+
checkCredentials(exchange: any): Promise<any>;
|
|
11
|
+
loadMarkets(context: any, exchange: any, silent?: Boolean): Promise<any>;
|
|
12
|
+
getBasesAndQuotes(markets: any): Promise<any>;
|
|
13
|
+
verifyIfNeedToRefresh(context: HookContext, markets: any, exchange: String, force?: Boolean): Promise<any>;
|
|
14
|
+
keepOnlyLastOnePerExchange(context: HookContext, exchange: String): Promise<any>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HookContext } from '@feathersjs/feathers';
|
|
2
|
+
export declare class Docker {
|
|
3
|
+
client: any;
|
|
4
|
+
constructor();
|
|
5
|
+
static checkIfStrategyIsAvailable(context: HookContext): void;
|
|
6
|
+
static checkIfStrategyExistsInDisk(context: HookContext): Promise<void>;
|
|
7
|
+
static checkIfConfigExistsInDisk(context: HookContext): Promise<void>;
|
|
8
|
+
static generate(context: HookContext): object;
|
|
9
|
+
static deploy(context: HookContext, deployment: any): Promise<any>;
|
|
10
|
+
static getTraderData(context: HookContext): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
readTemplate: () => Promise<unknown>;
|
|
9
|
+
compileWithValues: (file: any, values: any) => Promise<unknown>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { HookContext } from '@feathersjs/feathers';
|
|
3
|
+
import { PathLike } from 'fs';
|
|
4
|
+
export declare class TraderHelper {
|
|
5
|
+
getWebhookUrl(context: HookContext): PathLike;
|
|
6
|
+
getTradersDataPath(context: HookContext): PathLike;
|
|
7
|
+
getRelativeTradersDataPath(context: HookContext): PathLike;
|
|
8
|
+
generateWebhooks(context: HookContext): any;
|
|
9
|
+
generateApiServer(context: HookContext): any;
|
|
10
|
+
}
|