MCPcopy Create free account

hub / github.com/diogomatoschaves/MyCryptoBot / functions

Functions982 in github.com/diogomatoschaves/MyCryptoBot

↓ 120 callersMethodget
(self, object_name)
data/tests/setup/fixtures/internal_modules.py:250
↓ 43 callersMethodget
(self, object_name)
execution/tests/setup/fixtures/internal_modules.py:94
↓ 43 callersMethodnow
(cls, tz=None)
data/tests/setup/fixtures/external_modules.py:88
↓ 43 callersMethodsave
(self, *args, **kwargs)
database/model/models.py:249
↓ 41 callersFunctionsend_alert
Sends an operational alert to Telegram. Returns True if a message was actually sent, False otherwise (test mode, unconfigured, throttled, or
shared/utils/notifier.py:86
↓ 22 callersFunctionpublish_pipeline_event
Publishes a pipeline lifecycle event. Returns True if the event was published, False otherwise (test mode or redis unavailable). Payload
shared/utils/events.py:51
↓ 19 callersFunctionrequest
(path: string, options: RequestOptions = {})
dashboard/src/apiCalls/index.ts:18
↓ 18 callersMethodas_json
(self)
database/model/models.py:309
↓ 17 callersFunctioncheck_app_health
Main function to check the application's status by verifying open positions and active pipelines for any inconsistencies. Notes ----
data/service/cron_jobs/app_health/_app_health.py:393
↓ 14 callersMethodget
(self, object_name)
model/tests/setup/fixtures/internal_modules.py:71
↓ 13 callersMethoddelete
(self, object_name)
data/tests/setup/fixtures/internal_modules.py:261
↓ 12 callersFunctioncreate_strategies
(db)
shared/utils/tests/fixtures/models.py:50
↓ 11 callersFunctionnow_utc
()
model/tests/signal_generation/test_order_delivery.py:31
↓ 9 callersMethodjson
(self)
shared/utils/tests/fixtures/external_modules.py:18
↓ 9 callersFunctionmake_trader
(position_amt, quantity_precision=3)
execution/tests/service/test_reconciliation.py:20
↓ 9 callersMethodset
(self, object_name, object_value)
data/tests/setup/fixtures/internal_modules.py:247
↓ 9 callersMethodtrade
(self, symbol, signal, amount, header='', **kwargs)
execution/tests/setup/fixtures/internal_modules.py:53
↓ 8 callersMethodclose
(self)
data/tests/service/blueprints/test_events.py:29
↓ 8 callersFunctionreconcile_positions
Compares every active pipeline's recorded units with the actual exchange position and corrects the records (exchange wins) where the mismatch
execution/service/reconciliation.py:54
↓ 7 callersMethod_execute_order
(self, symbol, order_type, order_side, going, units, amount, header, **kwargs)
execution/exchanges/binance/_trading.py:162
↓ 7 callersMethodget_profit_loss_pct
(self)
database/model/models.py:306
↓ 7 callersFunctionmock_redis
()
data/tests/setup/fixtures/internal_modules.py:240
↓ 7 callersFunctiontrigger_order
Delivers a trading signal to the execution service, retrying transport failures with backoff until the delivery deadline. The execution
model/signal_generation/_signal_generation.py:209
↓ 6 callersFunction_order_fields
(**overrides)
execution/tests/exchanges/binance/futures/test_order_idempotency.py:24
↓ 6 callersFunctioncompute_delivery_deadline
Returns the moment after which delivering this signal is no longer safe. The deadline is the earlier of: the close of the candle the signal
model/signal_generation/_signal_generation.py:172
↓ 6 callersFunctioncreate_app
()
execution/service/app.py:117
↓ 6 callersFunctionget_pipeline_data
(pipeline_id, return_obj=False, ignore_exception=False)
shared/utils/helpers/_helpers.py:122
↓ 6 callersFunctionpipeline_label
(pipeline)
data/service/cron_jobs/app_health/_app_health.py:45
↓ 6 callersFunctionstart_stop_symbol_trading
(payload, start_or_stop)
data/service/external_requests.py:58
↓ 6 callersFunctionvalidateParams
(strategy: any)
dashboard/src/utils/helpers/index.ts:147
↓ 5 callersFunction_get_int
(env_var, default)
shared/utils/settings.py:20
↓ 5 callersMethod_place_order_idempotent
Places an order, retrying on connection errors without ever placing it twice: the same newClientOrderId is reused across attempts, an
execution/exchanges/binance/futures/_trading.py:288
↓ 5 callersMethod_set_position
(self, symbol, position, **kwargs)
execution/exchanges/binance/_trading.py:79
↓ 5 callersMethodgenerate_new_signal
(self, header)
data/sources/binance/_binance.py:289
↓ 5 callersFunctionget_fixtures
(current_path, fixtures=None, keys=None)
shared/utils/tests/test_setup.py:7
↓ 5 callersFunctionhexToRgba
(hex: string, alpha: number)
dashboard/src/ui/utils.ts:1
↓ 5 callersFunctionsave_portfolio_value_snapshot
()
execution/service/cron_jobs/save_pipelines_snapshot/_save_pipelines_snapshot.py:26
↓ 5 callersMethodstart_data_ingestion
Public method which sets in motion the data pipeline for a given symbol. Returns ------- None
data/sources/binance/_binance.py:121
↓ 5 callersFunctionstart_symbol_trading
(pipeline, restart=False)
data/service/blueprints/bots_api/_helpers.py:156
↓ 5 callersMethodstart_symbol_trading
(parameters, symbol, symbols)
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:598
↓ 4 callersFunctioncompile_strategies
()
model/strategies/properties.py:92
↓ 4 callersFunctionconfigure_logger
(level='INFO', libraries_level=None)
shared/utils/logger.py:5
↓ 4 callersFunctionconvert_date
(date)
data/sources/binance/extract/_helpers.py:103
↓ 4 callersFunctioncreate_app
()
data/service/app.py:84
↓ 4 callersFunctionevent_stream
Yields SSE frames from a redis pubsub subscription. Uses get_message(timeout=...) rather than listen(): listen() blocks indefinitely, wh
data/service/blueprints/events.py:24
↓ 4 callersMethodfutures_account_balance
(self)
execution/tests/setup/fixtures/external_modules.py:33
↓ 4 callersFunctiongetRoi
(original: number, current: number, side: number, leverage: number)
dashboard/src/utils/helpers/index.ts:279
↓ 4 callersFunctiongetTrades
(page?: number, pipelineId?: string)
dashboard/src/apiCalls/index.ts:52
↓ 4 callersFunctionget_item_from_cache
(cache, key)
shared/utils/helpers/_helpers.py:81
↓ 4 callersFunctionget_strategies
()
data/service/external_requests.py:80
↓ 4 callersFunctionload_data
(model_class, data, pipeline_id, update_duplicate=True, header='')
data/sources/binance/load/_load.py:19
↓ 4 callersFunctionnumericStrategy
(selectedParams: Record<string, any>)
dashboard/src/utils/helpers/helpers.test.ts:28
↓ 4 callersFunctionorganizePipeline
(pipeline: RawPipeline, strategiesOptions: Strategy[])
dashboard/src/utils/helpers/index.ts:218
↓ 4 callersMethodstop_data_ingestion
Public method which stops the data pipeline for the symbol. Returns ------- None
data/sources/binance/_binance.py:187
↓ 4 callersFunctionstop_instance
(pipeline_id, header, raise_exception=False, force=False)
data/service/blueprints/bots_api/_helpers.py:119
↓ 4 callersFunctionstop_pipeline
(pipeline_id, header='', raise_exception=False, nr_retries=3, force=False)
data/service/blueprints/bots_api/_helpers.py:140
↓ 4 callersFunctiontrigger_signal
(pipeline_id, header='', retry=0)
data/sources/_signal_triggerer.py:28
↓ 4 callersMethodvalidate_symbol
(symbol)
shared/exchanges/binance/_binance.py:54
↓ 3 callersMethod_etl_pipeline
( self, model_class, candle_size, reference_candle_size='5m', data=Non
data/sources/binance/_binance.py:220
↓ 3 callersFunction_get_str
(env_var, default)
shared/utils/settings.py:16
↓ 3 callersFunction_run_data_collection
Executor entrypoint for starting a pipeline's data collection. The bare task used to be fire-and-forget: an exception here died inside the
data/service/blueprints/bots_api/_helpers.py:46
↓ 3 callersFunctionapi_exception
(code, msg="error")
execution/tests/exchanges/binance/futures/test_order_idempotency.py:67
↓ 3 callersFunctioncreate_access_token
(x=None, **kwargs)
data/tests/setup/fixtures/external_modules.py:57
↓ 3 callersFunctioncreate_app
()
model/service/app.py:75
↓ 3 callersMethoddelete_last_entry
(self)
data/sources/binance/_binance.py:454
↓ 3 callersFunctionextract_and_validate
Extracts trading parameters from a request and validates them, including checking for the existence of a corresponding pipeline. Paramet
execution/service/helpers/_helpers.py:87
↓ 3 callersFunctionextract_data
Fetches missing data on specified model class and for a specific symbol, candle_size and exchange from the Binance API. Parameters -
data/sources/binance/extract/_extract.py:127
↓ 3 callersFunctionfilter_balances
(balances, coins)
execution/service/blueprints/market_data.py:34
↓ 3 callersMethodfutures_position_information
(self)
execution/tests/setup/fixtures/external_modules.py:45
↓ 3 callersMethodfutures_symbol_ticker
(self, symbol)
execution/tests/setup/fixtures/external_modules.py:36
↓ 3 callersFunctiongetBotColor
(name?: string)
dashboard/src/theme.ts:45
↓ 3 callersFunctiongetInitialState
( strategies: any, symbols?: any, candleSizes?: any, exchanges?: any, pipeline?: Pipeline )
dashboard/src/reducers/modalReducer.ts:124
↓ 3 callersFunctionget_binance_trader_instance
(paper_trading)
execution/service/app.py:42
↓ 3 callersFunctionget_data
(model_class, start_date, symbol, interval, exchange='binance')
shared/data/queries.py:6
↓ 3 callersFunctionget_end_date
Calculates the end date for a batch of data based on the start date, candle size, and batch size. Parameters ---------- start_da
data/sources/binance/extract/_helpers.py:151
↓ 3 callersFunctionget_jwt_secret_key
JWT signing key for service auth. Prefer a dedicated JWT_SECRET_KEY so a leaked Django SECRET_KEY can't be used to forge service tokens; fall
shared/utils/helpers/_helpers.py:53
↓ 3 callersFunctionget_saved_models
Retrieves a list of saved machine learning model filenames from a specified local directory. Parameters ---------- local_models_dir
model/service/cloud_storage/_cloud_storage.py:130
↓ 3 callersFunctionhandle_order_execution_errors
Handles fatal errors from a trade execution. The wrapped call is made exactly once: transient connection errors are retried at the singl
execution/service/helpers/decorators/handle_order_execution_errors.py:29
↓ 3 callersFunctionmockFetch
(status: number, json: any)
dashboard/src/apiCalls/apiCalls.test.ts:4
↓ 3 callersFunctionparse_balance
(value)
execution/service/cron_jobs/save_pipelines_snapshot/_save_pipelines_snapshot.py:17
↓ 3 callersFunctionsave_pipeline_snapshot
(pipeline_id, unrealized_profit=0)
execution/service/cron_jobs/save_pipelines_snapshot/_save_pipelines_snapshot.py:66
↓ 3 callersMethodstart_symbol_trading
Initiates trading for a specific symbol, setting initial parameters including leverage and position. Parameters ----------
execution/exchanges/binance/futures/_trading.py:57
↓ 3 callersMethodstop_symbol_trading
Stops trading for a specific symbol and optionally forces the closure of any open positions. Parameters ---------- p
execution/exchanges/binance/futures/_trading.py:101
↓ 3 callersMethodstop_symbol_trading
(parameters, symbols, position, units)
execution/tests/exchanges/binance/futures/test_binance_futures_trader.py:610
↓ 3 callersFunctiontimeFormatterDate
(date: Date, currentDate?: Date | null)
dashboard/src/utils/helpers/index.ts:250
↓ 3 callersFunctiontimeFormatterDiff
(difference: number)
dashboard/src/utils/helpers/index.ts:261
↓ 2 callersMethod__repr__
(self)
data/service/helpers/exceptions/name_invalid.py:11
↓ 2 callersMethod__repr__
(self)
execution/service/helpers/exceptions/no_units.py:8
↓ 2 callersMethod__str__
(self)
data/service/helpers/exceptions/name_invalid.py:8
↓ 2 callersMethod__str__
(self)
execution/service/helpers/exceptions/no_units.py:5
↓ 2 callersMethod_apply_net_value
Applies a computed net value to the in-memory trading state.
execution/exchanges/binance/futures/_trading.py:574
↓ 2 callersFunction_clean_record
(record)
data/sources/binance/load/_load.py:44
↓ 2 callersMethod_compute_net_value
Computes the new net value, units, and balances for a specified symbol without mutating any state. Pure on purpose: the resu
execution/exchanges/binance/futures/_trading.py:532
↓ 2 callersMethod_convert_units
Converts the amount specified in quote currency to units of the base currency or adjusts units based on a factor. Parameters
execution/exchanges/binance/futures/_trading.py:444
↓ 2 callersFunction_get_bool
(env_var, default)
shared/utils/settings.py:25
↓ 2 callersMethod_get_position_amt
Retrieves the current position amount for a given symbol. Parameters ---------- symbol : str The trading
execution/exchanges/binance/futures/_trading.py:206
↓ 2 callersMethod_get_symbol_info
Retrieves and stores trading symbol information, including base asset, quote asset, price precision, and quantity precision.
execution/exchanges/binance/futures/_trading.py:593
↓ 2 callersFunction_mark_price
(trader, symbol)
execution/service/reconciliation.py:50
↓ 2 callersMethod_persist_net_value
Writes the computed net value to the pipeline row. Must be called inside a transaction; the snapshot is deferred to after the commit
execution/exchanges/binance/futures/_trading.py:560
↓ 2 callersMethod_process_stream
( self, model_class, row, data, data_length, candle_size,
data/sources/binance/_binance.py:379
next →1–100 of 982, ranked by callers