MCPcopy Create free account

hub / github.com/chessbr/rust-exchange / functions

Functions20 in github.com/chessbr/rust-exchange

↓ 16 callersMethodadd_order
(&mut self, order_type: super::OrderType, quantity: u64, price: f32)
matching-engine/src/engine/engine_impl.rs:121
Methodenqueue_order
(order_book: &mut Vec<Order>, order: &Order, results: &mut Vec<OrderResult>)
matching-engine/src/engine/engine_impl.rs:63
Methodfind_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
Methodget_asset
(&self)
matching-engine/src/engine/engine_impl.rs:22
Methodget_buy_order_book
(&self)
matching-engine/src/engine/engine_impl.rs:26
Methodget_sell_order_book
(&self)
matching-engine/src/engine/engine_impl.rs:30
Functionmain
()
matching-engine/build.rs:1
Functionmain
()
matching-engine/src/server.rs:61
Functionmain
()
matching-engine/src/cli.rs:7
Methodmatch_order
(booked_order: &Order, received_order: &Order)
matching-engine/src/engine/engine_impl.rs:80
Methodnew
(order_type: super::OrderType, quantity: u64, price: f32, instant: Instant)
matching-engine/src/engine/order.rs:11
Methodnew
(result_type: OrderResultType, order_type: OrderType, quantity: u64, price: f32)
matching-engine/src/engine/order_result.rs:20
Methodnew
(asset: String)
matching-engine/src/engine/engine_impl.rs:14
Methodnew
(executed_order: Option<Order>, remaining_order: Option<Order>)
matching-engine/src/engine/order_match_result.rs:10
Methodsend_order
( &self, request: Request<OrderRequest>, )
matching-engine/src/server.rs:22
Functiontest_cheapest_price
Test that items with are sorted by price
matching-engine/src/engine/tests.rs:25
Functiontest_first_comes_first
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:64
Functiontest_not_executed
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:110
Functiontest_partial_execution
Test that items with same price are ordered according to its received time
matching-engine/src/engine/tests.rs:94
Functiontest_simple_order
()
matching-engine/src/engine/tests.rs:2