MCPcopy Create free account

hub / github.com/Erio-Harrison/rust-trade / functions

Functions220 in github.com/Erio-Harrison/rust-trade

↓ 16 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/lib/utils.ts:4
↓ 14 callersFunctioncleanup_database
(pool: &PgPool, symbol: &str)
trading-common/src/data/repository.rs:956
↓ 8 callersFunctioncreate_repository
()
trading-common/src/data/repository.rs:943
↓ 8 callersFunctioncreate_strategy
(strategy_id: &str)
trading-common/src/backtest/strategy/mod.rs:16
↓ 8 callersMethodget_pool
Get database pool reference
trading-common/src/data/repository.rs:40
↓ 8 callersMethodget_recent_ticks
(&self, symbol: &str, limit: usize)
trading-common/src/data/cache.rs:139
↓ 8 callersMethodinsert_tick
Insert single tick data
trading-common/src/data/repository.rs:54
↓ 8 callersMethodpush_tick
(&mut self, tick: TickData, max_size: usize)
trading-common/src/data/cache.rs:57
↓ 7 callersMethodas_str
(&self)
trading-common/src/data/types.rs:235
↓ 6 callersFunctioncreate_test_tick
( symbol: &str, price: &str, trade_id: &str, timestamp: Option<DateTime<Utc>>,
trading-common/src/data/repository.rs:926
↓ 5 callersMethodalign_timestamp
Get the start of the time window for a given timestamp
trading-common/src/data/types.rs:249
↓ 5 callersMethodbatch_insert
Batch insert tick data with optimized performance
trading-common/src/data/repository.rs:96
↓ 5 callersFunctioncreate_test_tick
( symbol: &str, price: &str, trade_id: &str, timestamp: DateTime<Utc>, )
trading-core/benches/repository_bench.rs:14
↓ 5 callersFunctionformatPercentage
(value: string | number)
frontend/src/app/backtest/page.tsx:142
↓ 5 callersFunctionformatPrice
(value: string)
frontend/src/app/backtest/page.tsx:147
↓ 5 callersMethodget_ticks
Get tick data based on query parameters
trading-common/src/data/repository.rs:164
↓ 5 callersMethodparse_trade_side
Parse trade side from database string
trading-common/src/data/repository.rs:604
↓ 5 callersMethodtotal_value
(&self)
trading-common/src/backtest/portfolio.rs:170
↓ 4 callersMethodcalculate_sma
(&self, period: usize)
trading-common/src/backtest/strategy/sma.rs:23
↓ 4 callersMethodclear_symbol
(&self, symbol: &str)
trading-common/src/data/cache.rs:169
↓ 4 callersMethodget_backtest_data_info
Get backtest data information for user selection
trading-common/src/data/repository.rs:438
↓ 4 callersMethodget_recent_ticks_for_backtest
Get recent N ticks for backtesting (ordered by time ASC)
trading-common/src/data/repository.rs:336
↓ 4 callersMethodget_symbol_info
Get information for a specific symbol
trading-common/src/data/types.rs:175
↓ 4 callersFunctionlist_strategies
()
trading-common/src/backtest/strategy/mod.rs:24
↓ 4 callersMethodtotal_pnl
(&self)
trading-common/src/backtest/portfolio.rs:191
↓ 4 callersMethodwith_commission_rate
(mut self, rate: Decimal)
trading-common/src/backtest/engine.rs:24
↓ 3 callersFunctioncreate_database_pool
Create database connection pool
trading-core/src/main.rs:645
↓ 3 callersMethodgenerate_recent_ohlc_for_backtest
Generate recent OHLC data for backtesting with time-based approach
trading-common/src/data/repository.rs:819
↓ 3 callersMethodget_cache
Get cache reference
trading-common/src/data/repository.rs:45
↓ 3 callersMethodget_cache_key
(&self, symbol: &str)
trading-common/src/data/cache.rs:228
↓ 3 callersMethodget_historical_data_for_backtest
Get historical data for backtesting within time range (ordered by time ASC)
trading-common/src/data/repository.rs:383
↓ 3 callersFunctioninit_application
Initialize application environment and logging
trading-core/src/main.rs:546
↓ 3 callersMethodname
(&self)
trading-common/src/backtest/strategy/rsi.rs:49
↓ 3 callersMethodparse_trade_message
Parse WebSocket message and extract trade data
trading-core/src/exchange/binance.rs:36
↓ 3 callersMethodpreferred_timeframe
(&self)
trading-common/src/backtest/strategy/rsi.rs:179
↓ 3 callersMethodrun
(&mut self, data: Vec<TickData>)
trading-common/src/backtest/engine.rs:58
↓ 3 callersFunctionrun_live_mode
Real-time mode entry
trading-core/src/main.rs:195
↓ 3 callersMethodsupports_ohlc
(&self)
trading-common/src/backtest/strategy/rsi.rs:176
↓ 3 callersFunctiontest_database_connection
Test database connection
trading-core/src/main.rs:659
↓ 2 callersMethodas_db_str
Convert to database string representation
trading-common/src/data/types.rs:85
↓ 2 callersMethodas_duration
(&self)
trading-common/src/data/types.rs:222
↓ 2 callersFunctionbuild_binance_trade_streams
Build WebSocket subscription streams for Binance
trading-core/src/exchange/utils.rs:85
↓ 2 callersMethodcalculate_rsi
(&self)
trading-common/src/backtest/strategy/rsi.rs:29
↓ 2 callersFunctioncleanup_database
(pool: &PgPool, symbol: &str)
trading-core/benches/repository_bench.rs:48
↓ 2 callersFunctionconvert_binance_to_tick_data
Convert Binance trade message to standard TickData format
trading-core/src/exchange/utils.rs:10
↓ 2 callersMethodcount_losing_trades
(&self)
trading-common/src/backtest/engine.rs:191
↓ 2 callersMethodcount_winning_trades
(&self)
trading-common/src/backtest/engine.rs:183
↓ 2 callersFunctioncreate_backtest_response
3. Add helper function to commands.rs
src-tauri/src/commands.rs:210
↓ 2 callersFunctioncreate_cache
Create cache instance (original live mode)
trading-core/src/main.rs:685
↓ 2 callersFunctioncreate_test_tick
(symbol: &str, price: &str, trade_id: &str)
trading-common/src/data/cache.rs:469
↓ 2 callersMethodexecute_buy
( &mut self, symbol: String, quantity: Decimal, price: Decimal, timest
trading-common/src/backtest/portfolio.rs:65
↓ 2 callersMethodexecute_sell
( &mut self, symbol: String, quantity: Decimal, price: Decimal, timest
trading-common/src/backtest/portfolio.rs:121
↓ 2 callersFunctiongetDataCoverageDays
()
frontend/src/app/page.tsx:195
↓ 2 callersMethodget_available_symbols
Get available symbols
trading-common/src/data/types.rs:180
↓ 2 callersMethodget_equity_curve
(&self)
trading-common/src/backtest/portfolio.rs:208
↓ 2 callersMethodget_latest_price
Get latest price for a symbol
trading-common/src/data/repository.rs:251
↓ 2 callersMethodget_shutdown_tx
(&self)
trading-core/src/service/market_data.rs:57
↓ 2 callersMethodget_symbols
(&self)
trading-common/src/data/cache.rs:162
↓ 2 callersMethodhas_sufficient_data
Check if has sufficient data for backtesting
trading-common/src/data/types.rs:188
↓ 2 callersMethodon_tick
(&mut self, tick: &TickData)
trading-common/src/backtest/strategy/rsi.rs:82
↓ 2 callersMethodprint_summary
(&self)
trading-common/src/backtest/engine.rs:331
↓ 2 callersMethodprint_trade_analysis
(&self)
trading-common/src/backtest/engine.rs:422
↓ 2 callersFunctionprint_usage
()
trading-core/src/main.rs:54
↓ 2 callersMethodrun_with_ohlc
(&mut self, data: Vec<crate::data::types::OHLCData>)
trading-common/src/backtest/engine.rs:199
↓ 2 callersMethodsnapshot_equity
(&mut self)
trading-common/src/backtest/portfolio.rs:204
↓ 2 callersMethodstart
Start the market data service
trading-core/src/service/market_data.rs:62
↓ 2 callersFunctiontest_cache_connection
Test cache connection
trading-core/src/main.rs:724
↓ 2 callersMethodtotal_commission
(&self)
trading-common/src/backtest/portfolio.rs:195
↓ 2 callersMethodupdate_price
(&mut self, symbol: &str, price: Decimal)
trading-common/src/backtest/portfolio.rs:55
↓ 2 callersMethodvalidate_tick_data
Validate tick data
trading-common/src/data/repository.rs:583
↓ 1 callersMethodbatch_insert_chunk
Insert a chunk of ticks using bulk insert
trading-common/src/data/repository.rs:131
↓ 1 callersMethodcalculate_portfolio_value
(&self, current_price: Decimal)
trading-core/src/live_trading/paper_trading.rs:159
↓ 1 callersFunctioncalculate_required_duration_hours
Calculate required time duration based on timeframe and candle count
trading-common/src/data/repository.rs:900
↓ 1 callersMethodcleanup_expired
Clean up expired cache entries
trading-common/src/data/cache.rs:100
↓ 1 callersMethodconnect_and_subscribe
Connect to WebSocket and handle subscription
trading-core/src/exchange/binance.rs:133
↓ 1 callersFunctioncreate_backtest_cache
Create simplified cache for backtest mode
trading-core/src/main.rs:706
↓ 1 callersFunctioncreate_database_pool
(settings: &DatabaseSettings)
src-tauri/src/state.rs:59
↓ 1 callersFunctioncreate_gui_cache
(settings: &DatabaseSettings)
src-tauri/src/state.rs:96
↓ 1 callersFunctioncreate_minimal_cache
()
src-tauri/src/state.rs:116
↓ 1 callersFunctioncreate_settings_from_env
()
src-tauri/src/state.rs:43
↓ 1 callersMethodexecute_signal
(&mut self, signal: &Signal, tick: &TickData)
trading-core/src/live_trading/paper_trading.rs:98
↓ 1 callersFunctionformatQuantity
(value: string)
frontend/src/app/backtest/page.tsx:151
↓ 1 callersFunctionformatTime
(timeframe: string, date: Date)
frontend/src/app/page.tsx:222
↓ 1 callersMethodgenerate_ohlc_from_ticks
Generate OHLC data from tick data for a specific time range
trading-common/src/data/repository.rs:653
↓ 1 callersFunctiongetAvgProcessingTime
()
frontend/src/app/page.tsx:206
↓ 1 callersFunctiongetCountByTimeframe
(tf: string)
frontend/src/app/page.tsx:113
↓ 1 callersFunctiongetCurrentSymbolInfo
()
frontend/src/app/page.tsx:254
↓ 1 callersFunctiongetOhlcChartData
()
frontend/src/app/page.tsx:211
↓ 1 callersFunctiongetOhlcSupportCount
()
frontend/src/app/page.tsx:202
↓ 1 callersMethodget_db_stats
Get database statistics
trading-common/src/data/repository.rs:529
↓ 1 callersMethodget_recent
(&mut self, limit: usize)
trading-common/src/data/cache.rs:67
↓ 1 callersFunctionget_strategy_info
(strategy_id: &str)
trading-common/src/backtest/strategy/mod.rs:40
↓ 1 callersMethodget_ticks_for_timespan_limited
Get ticks for a specific time duration with record limit
trading-common/src/data/repository.rs:772
↓ 1 callersMethodhandle_websocket_connection
Handle WebSocket connection with reconnection logic
trading-core/src/exchange/binance.rs:65
↓ 1 callersFunctioninit_tracing
Initialize tracing subscriber for logging
trading-core/src/main.rs:558
↓ 1 callersMethodinitialize
(&mut self, params: HashMap<String, String>)
trading-common/src/backtest/strategy/rsi.rs:53
↓ 1 callersFunctioninitializeDashboard
()
frontend/src/app/page.tsx:78
↓ 1 callersFunctioninitializeData
()
frontend/src/app/backtest/page.tsx:63
↓ 1 callersMethodinsert_live_strategy_log
(&self, log: &LiveStrategyLog)
trading-common/src/data/repository.rs:628
↓ 1 callersMethodis_expired
(&self, ttl: Duration)
trading-common/src/data/cache.rs:78
next →1–100 of 220, ranked by callers