Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chessbr/rust-exchange
/ functions
Functions
20 in github.com/chessbr/rust-exchange
⨍
Functions
20
◇
Types & classes
7
↓ 16 callers
Method
add_order
(&mut self, order_type: super::OrderType, quantity: u64, price: f32)
matching-engine/src/engine/engine_impl.rs:121
Method
enqueue_order
(order_book: &mut Vec<Order>, order: &Order, results: &mut Vec<OrderResult>)
matching-engine/src/engine/engine_impl.rs:63
Method
find_order_place
Find the index where the given `order` should be placed inside the given `order_book` according to the priorities
matching-engine/src/engine/engine_impl.rs:36
Method
get_asset
(&self)
matching-engine/src/engine/engine_impl.rs:22
Method
get_buy_order_book
(&self)
matching-engine/src/engine/engine_impl.rs:26
Method
get_sell_order_book
(&self)
matching-engine/src/engine/engine_impl.rs:30
Function
main
()
matching-engine/build.rs:1
Function
main
()
matching-engine/src/server.rs:61
Function
main
()
matching-engine/src/cli.rs:7
Method
match_order
(booked_order: &Order, received_order: &Order)
matching-engine/src/engine/engine_impl.rs:80
Method
new
(order_type: super::OrderType, quantity: u64, price: f32, instant: Instant)
matching-engine/src/engine/order.rs:11
Method
new
(result_type: OrderResultType, order_type: OrderType, quantity: u64, price: f32)
matching-engine/src/engine/order_result.rs:20
Method
new
(asset: String)
matching-engine/src/engine/engine_impl.rs:14
Method
new
(executed_order: Option<Order>, remaining_order: Option<Order>)
matching-engine/src/engine/order_match_result.rs:10
Method
send_order
( &self, request: Request<OrderRequest>, )
matching-engine/src/server.rs:22
Function
test_cheapest_price
Test that items with are sorted by price
matching-engine/src/engine/tests.rs:25
Function
test_first_comes_first
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:64
Function
test_not_executed
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:110
Function
test_partial_execution
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:94
Function
test_simple_order
()
matching-engine/src/engine/tests.rs:2