MCPcopy Create free account

hub / github.com/DegenSugarBoo/OpenBook / functions

Functions232 in github.com/DegenSugarBoo/OpenBook

↓ 27 callersFunctionassert_close
(left: f64, right: f64, tol: f64)
tests/unit/micro_tests.rs:4
↓ 17 callersMethodpush
(&mut self, sample: CumulativeSample)
src/micro.rs:54
↓ 15 callersFunctionassert_close
(left: f64, right: f64, tol: f64)
tests/unit/models_tests.rs:7
↓ 14 callersFunctionassert_close
(actual: f64, expected: f64)
tests/unit/ui_tests.rs:7
↓ 11 callersMethodon_trade
( &mut self, trade: &Trade, depth_epoch: u64, tick_size: f64, book: &O
src/micro.rs:162
↓ 10 callersFunctionmake_sample
(timestamp_ms: u64, fill_qty: f64, kill_qty: f64, overfill: bool)
tests/unit/micro_tests.rs:33
↓ 10 callersFunctionmake_trade
(timestamp_ms: u64, price: f64, quantity: f64, is_buy: bool)
tests/unit/micro_tests.rs:23
↓ 10 callersMethodon_fill_kill_sample
(&mut self, sample: &FillKillSample)
src/micro.rs:354
↓ 8 callersFunctionformat_price
(value: f64, decimals: usize)
src/ui.rs:206
↓ 8 callersFunctionlerp_color
(a: egui::Color32, b: egui::Color32, t: f32)
src/ui.rs:3502
↓ 8 callersFunctionmake_book
(bids: &[(f64, f64)], asks: &[(f64, f64)])
tests/unit/micro_tests.rs:11
↓ 8 callersFunctionmake_depth_update
( first_update_id: u64, final_update_id: u64, prev_final_update_id: u64, )
tests/unit/main_tests.rs:4
↓ 8 callersMethodpush_event
( &mut self, timestamp_ms: u64, update_id: u64, changes: Vec<DepthLevelDelta>,
src/models.rs:421
↓ 8 callersMethodreset_from_book
(&mut self, book: &OrderBook, timestamp_ms: u64, update_id: u64)
src/models.rs:393
↓ 8 callersMethodsample_cumulative
(&mut self, now_ms: u64)
src/micro.rs:365
↓ 7 callersFunctionbuild_tape_rows
( trades: &[(u64, f64, f64, bool)], min_notional: Option<f64>, row_cap: usize, )
src/ui.rs:222
↓ 7 callersMethodon_depth_epoch_advance
( &mut self, now_ms: u64, depth_epoch: u64, tick_size: f64, )
src/micro.rs:227
↓ 6 callersMethodestimated_bytes
(&self)
src/models.rs:359
↓ 6 callersMethodlatest
(&self)
src/micro.rs:76
↓ 5 callersFunctionapply_depth_update
(state: &mut SharedState, update: &WsDepthUpdate)
src/main.rs:264
↓ 5 callersFunctionbuild_default_tree
()
src/workspace.rs:100
↓ 5 callersFunctioncompute_fill_kill_ratio
(fill_qty: f64, kill_qty: f64)
src/micro.rs:616
↓ 5 callersFunctionensure_all_panes
(tree: &mut Tree<PaneKind>)
src/workspace.rs:150
↓ 5 callersMethodestimate_market_impact
Simulate a market order of `notional_usd` and estimate fill/slippage.
src/models.rs:227
↓ 5 callersFunctionrecord_sample
(metrics: &mut MicroMetrics, sample: FillKillSample)
tests/unit/micro_tests.rs:47
↓ 5 callersMethodreset_fill_kill
(&mut self)
src/micro.rs:443
↓ 5 callersMethodset_active_index
(&mut self, idx: usize)
src/workspace.rs:277
↓ 4 callersMethodactive_index
(&self)
src/workspace.rs:270
↓ 4 callersMethodclone_snapshot
(&mut self, impact_notional: f64)
src/ui.rs:3543
↓ 4 callersFunctioncompute_signed_log_ratio
(fill_qty: f64, kill_qty: f64)
src/micro.rs:629
↓ 4 callersMethodkpi_snapshot
(&self)
src/micro.rs:424
↓ 4 callersFunctionnormalize_non_negative
(value: f64)
src/micro.rs:547
↓ 4 callersFunctionpane_tile_map
(tree: &Tree<PaneKind>)
src/workspace.rs:140
↓ 4 callersMethodprune_now
(&mut self, now_ms: u64)
src/models.rs:728
↓ 4 callersMethodrolling_tps
(&self, now_exchange_ms: u64, window_ms: u64)
src/models.rs:752
↓ 4 callersFunctionset_linear_shares
(tiles: &mut Tiles<PaneKind>, tile_id: TileId, shares: &[(TileId, f32)])
src/workspace.rs:132
↓ 4 callersMethodsync_micro_epochs
(&mut self)
src/models.rs:842
↓ 4 callersMethodsync_profile_indices
(&mut self)
src/ui.rs:637
↓ 3 callersMethodbest_ask
(&self)
src/models.rs:197
↓ 3 callersMethodbest_bid
(&self)
src/models.rs:193
↓ 3 callersFunctionbuild_na_sample
(timestamp_ms: u64, fill_qty: f64, direction: BurstDirection)
src/micro.rs:525
↓ 3 callersFunctioncurrent_time_ms_u64
()
src/main.rs:318
↓ 3 callersMethodflush_if_needed
( &mut self, now_ms: u64, depth_epoch: u64, tick_size: f64, )
src/micro.rs:236
↓ 3 callersMethodpersist_layout_store
(&self, storage: &mut dyn eframe::Storage)
src/ui.rs:647
↓ 3 callersFunctionprice_to_tick_index
(price: f64, tick_size: f64)
src/micro.rs:587
↓ 3 callersMethodprune
(&mut self, now_ms: u64)
src/models.rs:466
↓ 3 callersMethodprune_rolling_window
(&mut self, now_ms: u64)
src/micro.rs:386
↓ 3 callersMethodpush_checkpoint_from_book
(&mut self, book: &OrderBook, timestamp_ms: u64, update_id: u64)
src/models.rs:401
↓ 3 callersMethodrecord_frame
(&mut self, elapsed: Duration)
src/ui.rs:124
↓ 2 callersMethodappend_cumulative_sample
(&mut self, timestamp_ms: u64)
src/micro.rs:455
↓ 2 callersMethodapply_profile
(&mut self, idx: usize)
src/ui.rs:660
↓ 2 callersMethodapply_time_zoom_at_cursor
( &mut self, scroll_delta: f32, hover_pos: Option<egui::Pos2>, data_rect: egui
src/ui.rs:2808
↓ 2 callersFunctioncan_bridge_snapshot
(update: &WsDepthUpdate, snapshot_id: u64)
src/main.rs:293
↓ 2 callersMethodenable_heatmap_auto_center
(&mut self)
src/ui.rs:1588
↓ 2 callersMethodflush_open_burst
(&mut self, tick_size: f64)
src/micro.rs:258
↓ 2 callersFunctionheatmap_color
Map heatmap intensity (0..1) to a color, tinted by bid/ask side
src/ui.rs:3434
↓ 2 callersFunctionis_contiguous
(update: &WsDepthUpdate, last_u: u64)
src/main.rs:297
↓ 2 callersMethodmaterialize_columns
Reconstruct depth columns for the heatmap by replaying deltas over checkpoints. Returns a Vec of DepthSlice, one per output column, evenly spaced betw
src/models.rs:504
↓ 2 callersFunctionmigrate_v1_store
(store: LegacyLayoutStore)
src/workspace.rs:443
↓ 2 callersFunctionnormalize_layout_profile_name
(input: &str)
src/workspace.rs:346
↓ 2 callersMethodrecompute_picker_list
(&mut self)
src/ui.rs:541
↓ 2 callersMethodreconnect
(&mut self)
src/ui.rs:490
↓ 2 callersMethodreset
(&mut self)
src/micro.rs:72
↓ 2 callersMethodroll_window_if_ready
(&mut self, now: Instant)
src/ui.rs:145
↓ 2 callersFunctionsanitize_layout_store
(mut store: LayoutStoreV2)
src/workspace.rs:378
↓ 2 callersFunctionsanitize_qty
(value: f64)
src/micro.rs:539
↓ 2 callersMethodsave_active_profile
(&mut self)
src/ui.rs:651
↓ 2 callersMethodselect_symbol_for_reconnect
(&mut self, symbol: &str)
src/ui.rs:617
↓ 2 callersFunctionspawn_ws_task
Spawns the background tokio runtime that handles WebSocket streaming.
src/main.rs:48
↓ 2 callersFunctionsum_walked_qty
( levels: &BTreeMap<OrderedFloat<f64>, f64>, lower_idx: i64, upper_idx: i64, tick_size: f64, )
src/micro.rs:562
↓ 2 callersFunctiontree_from_legacy_prefs
(prefs: &LegacyLayoutPrefs)
src/workspace.rs:425
↓ 2 callersMethodtrim_window
(&mut self, now_ms: u64, window_ms: u64)
src/micro.rs:61
↓ 2 callersFunctionvalidate_layout_profile_name
( input: &str, profiles: &[LayoutProfileV2], skip_idx: Option<usize>, )
src/workspace.rs:354
↓ 1 callersMethodadd_trade
(&mut self, trade: Trade)
src/models.rs:722
↓ 1 callersMethodapply_price_zoom_at_cursor
( &mut self, scroll_delta: f32, hover_pos: Option<egui::Pos2>, rect: egui::Rec
src/ui.rs:2779
↓ 1 callersMethodapply_snapshot
(&mut self, snapshot: &RestDepthResponse)
src/models.rs:101
↓ 1 callersMethodapply_update_with_deltas
Apply update and return only real state changes as deltas (no-ops filtered).
src/models.rs:147
↓ 1 callersMethodbase_asset_symbol
(&self)
src/ui.rs:1795
↓ 1 callersFunctionbuild_fill_kill_sample
(burst: &BurstState, tick_size: f64)
src/micro.rs:481
↓ 1 callersMethodbuild_heatmap_image
Build the heatmap ColorImage from depth slices
src/ui.rs:2690
↓ 1 callersMethodcompute_shared_time_domain
( &self, cumulative: &'a [CumulativeSample], events: &'a [FillKillSample], )
src/ui.rs:2160
↓ 1 callersMethodcreate_profile
(&mut self, name: &str)
src/ui.rs:675
↓ 1 callersMethoddelete_profile
(&mut self, idx: usize)
src/ui.rs:691
↓ 1 callersMethoddelete_profile
(&mut self, idx: usize)
src/workspace.rs:315
↓ 1 callersFunctionderive_price_decimals
(tick_size_raw: &str)
src/main.rs:301
↓ 1 callersFunctionfetch_catalog
Fetch full exchange info and filter to USDT perpetual trading symbols.
src/main.rs:76
↓ 1 callersFunctionfetch_initial_ticker_snapshot
Optional startup snapshot so picker rows get data before the first WS tick.
src/main.rs:101
↓ 1 callersMethodflush_fill_kill_if_needed
(&mut self, now_ms: u64, depth_epoch: u64, tick_size: f64)
src/micro.rs:345
↓ 1 callersFunctionformat_volume
(vol: f64)
src/ui.rs:210
↓ 1 callersMethodhover_cell_from_pointer
( &self, pointer: egui::Pos2, state: &StateSnapshot, lookup: HeatmapHoverLooku
src/ui.rs:2298
↓ 1 callersMethodid_str
(self)
src/workspace.rs:41
↓ 1 callersMethodlast_event_timestamp
(&self)
src/models.rs:455
↓ 1 callersFunctionmigrate_legacy_prefs
(prefs: LegacyLayoutPrefs)
src/workspace.rs:462
↓ 1 callersMethodpane_visible
(&self, pane: PaneKind)
src/ui.rs:623
↓ 1 callersFunctionparse_tick_size_and_decimals
(tick_size_raw: &str)
src/main.rs:310
↓ 1 callersMethodprune_to_max_levels
Prune each side of the book to at most `max_levels` closest to the best bid/ask. Uses `BTreeMap::split_off` which is O(log N).
src/models.rs:210
↓ 1 callersMethodprune_window
(&mut self, now_ms: u64, window_ms: u64)
src/micro.rs:292
↓ 1 callersMethodpush_sample
(&mut self, sample: FillKillSample)
src/micro.rs:285
↓ 1 callersMethodrecord_heatmap_rebuild
(&mut self, elapsed: Duration)
src/ui.rs:132
↓ 1 callersMethodrename_profile
(&mut self, idx: usize, name: &str)
src/ui.rs:685
next →1–100 of 232, ranked by callers