Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MatthewDarnell/redis_orderbook
/ functions
Functions
109 in github.com/MatthewDarnell/redis_orderbook
⨍
Functions
109
◇
Types & classes
10
↓ 23 callers
Function
get_connection
@ip_addr: Pass <None> to use default <redis://127.0.0.1:6379>
redis/src/connection.rs:13
↓ 14 callers
Function
del
(conn: &mut redis::Connection, key: &str)
redis/src/connection.rs:33
↓ 14 callers
Function
get_input_string
()
src/main.rs:24
↓ 8 callers
Function
hget
(conn: &'a mut redis::Connection, key: &'a str, field: &'b str)
redis/src/types/redis_hash.rs:10
↓ 8 callers
Method
serialize
(&self)
order/src/order/store/order_store.rs:26
↓ 6 callers
Function
get_pair_by_id
(conn: &mut Connection, pair_id: Uuid)
order/src/order/store/order_pair_store.rs:43
↓ 6 callers
Function
hset
(conn: &mut redis::Connection, key: &str, field: F, val: V)
redis/src/types/redis_hash.rs:26
↓ 6 callers
Function
increment_user_open_order_balance
(conn: &mut Connection, order: &Order, delta: T)
order/src/order/store/order_store.rs:66
↓ 5 callers
Function
sadd
(conn: &'a mut redis::Connection, key: &'a str, value: &'a str)
redis/src/types/redis_set.rs:6
↓ 5 callers
Function
zadd
(conn: &mut redis::Connection, key: &str, value: T, score: U)
redis/src/types/redis_sorted_set.rs:6
↓ 4 callers
Function
create_order
Add a new order to uuid=>Order hash table and the uuid to the User=>uuid hash table
order/src/order/store/order_store.rs:164
↓ 4 callers
Function
get
(conn: &'a mut redis::Connection, key: &'a str)
redis/src/types/redis_key.rs:6
↓ 4 callers
Function
get_order_by_id
(conn: &mut Connection, uuid: &Uuid)
order/src/order/store/order_store.rs:37
↓ 4 callers
Function
get_pairs
(conn: &mut Connection)
order/src/order/store/order_pair_store.rs:26
↓ 4 callers
Function
llen
(conn: &'a mut redis::Connection, list: &'a str)
redis/src/types/redis_list.rs:7
↓ 4 callers
Function
rpush
(conn: &mut redis::Connection, list: &str, val: T)
redis/src/types/redis_list.rs:19
↓ 4 callers
Function
smembers
(conn: &mut redis::Connection, key: &str)
redis/src/types/redis_set.rs:14
↓ 3 callers
Function
delete_order
Delete an order
order/src/order/store/order_store.rs:188
↓ 3 callers
Function
get_orders_by_price
(conn: &mut Connection, order_type: &OrderType, pair: &Pair, min: T, max: V)
order/src/order/store/order_execution_type_store.rs:86
↓ 3 callers
Function
get_orders_from_uuid_list
(conn: &mut Connection, orders: &Vec<String>)
order/src/order/store/order_execution_type_store.rs:15
↓ 3 callers
Function
hincrby
(conn: &mut redis::Connection, key: &str, field: &str, delta: T)
redis/src/types/redis_hash.rs:22
↓ 3 callers
Function
hmget
(conn: &mut redis::Connection, key: &str, field: T)
redis/src/types/redis_hash.rs:18
↓ 3 callers
Function
init
(ip_addr: &str)
src/lib.rs:16
↓ 3 callers
Function
update_sums
(conn: &mut Connection, order_type: &OrderType, pair_id: &String, price: u128, amount: T)
order/src/order/store/order_store.rs:81
↓ 3 callers
Function
zrange
(conn: &mut redis::Connection, key: T, start: isize, stop: isize)
redis/src/types/redis_sorted_set.rs:10
↓ 2 callers
Function
add_new_pair
(conn: &mut Connection, pair: &Pair)
order/src/order/store/order_pair_store.rs:8
↓ 2 callers
Method
can_execute_order
(&self, order: &Order, existing_order: &Order)
order/src/order/order_executor.rs:17
↓ 2 callers
Function
get_orderbook
(conn: &mut Connection, pair_id: &str, depth: u32)
src/lib.rs:23
↓ 2 callers
Function
get_orders_by_price_index
(conn: &mut Connection, order_type: &OrderType, pair: &Pair, start: isize, end: isize)
order/src/order/store/order_execution_type_store.rs:61
↓ 2 callers
Function
get_range_sorted_set_by_index
(conn: &mut Connection, key: &str, start: isize, end: isize, desc: bool)
order/src/order/store/order_type_store.rs:31
↓ 2 callers
Function
get_range_sorted_set_for_order_type
(conn: &mut Connection, key: &str, min: T, max: V, desc: bool)
order/src/order/store/order_type_store.rs:24
↓ 2 callers
Function
get_sorted_set_for_order_type
(conn: &mut Connection, key: &str, depth: isize, desc: bool)
order/src/order/store/order_type_store.rs:16
↓ 2 callers
Function
get_sum_of_orders_for_price_point
(conn: &mut Connection, order_type: &OrderType, pair: &String, price: u128)
order/src/order/orderbook.rs:23
↓ 2 callers
Function
hdel
(conn: &'a mut redis::Connection, key: &'a str, field: &'b str)
redis/src/types/redis_hash.rs:6
↓ 2 callers
Function
lrange
(conn: &mut redis::Connection, list: &str, start: i32, stop: i32)
redis/src/types/redis_list.rs:11
↓ 2 callers
Function
place_trade
( conn: &mut Connection, publish_completed_trades: bool, user_id: &str, order_type: &str,
src/lib.rs:28
↓ 2 callers
Function
publish
(conn: &'a mut redis::Connection, key: &'a str, field: &'b str)
redis/src/types/redis_pubsub.rs:5
↓ 2 callers
Method
serialize
(&self)
order/src/order.rs:54
↓ 2 callers
Method
serialize
(&self)
trade/src/trade.rs:48
↓ 2 callers
Function
sismember
(conn: &mut redis::Connection, key: U, member: V)
redis/src/types/redis_set.rs:10
↓ 2 callers
Function
zrangebyscore
(conn: &mut redis::Connection, key: T, min: U, max: V)
redis/src/types/redis_sorted_set.rs:22
↓ 2 callers
Function
zrevrange
(conn: &mut redis::Connection, key: T, stop: isize, start: isize)
redis/src/types/redis_sorted_set.rs:18
↓ 2 callers
Function
zrevrangebyscore
(conn: &mut redis::Connection, key: T, max: U, min: V)
redis/src/types/redis_sorted_set.rs:26
↓ 1 callers
Function
create_ask
(conn: &mut Connection, order: &Order, list_entry: &ListEntry)
order/src/order/store/order_store.rs:145
↓ 1 callers
Function
create_bid
(conn: &mut Connection, order: &Order, list_entry: &ListEntry)
order/src/order/store/order_store.rs:128
↓ 1 callers
Function
create_pair
(conn: &mut Connection, price_ticker: &str, ref_ticker: &str)
src/lib.rs:87
↓ 1 callers
Method
execute_order
(&self, new_order: &Order, existing_order: &Order)
order/src/order/order_executor.rs:42
↓ 1 callers
Function
flushall
(conn: &mut redis::Connection)
redis/src/connection.rs:36
↓ 1 callers
Function
get_all_pairs
(conn: &mut Connection)
src/lib.rs:92
↓ 1 callers
Function
get_input
(min: u32, max: u32)
src/main.rs:33
↓ 1 callers
Function
get_matching_limit_orders_for_execution
(conn: &mut Connection, order: &Order)
order/src/order/orderbook.rs:79
↓ 1 callers
Function
get_matching_market_orders_for_execution
(conn: &mut Connection, order: &Order)
order/src/order/orderbook.rs:47
↓ 1 callers
Function
get_orders_by_user_id
(conn: &mut Connection, user_id: &str)
order/src/order/store/order_store.rs:229
↓ 1 callers
Function
get_orders_by_user_id_and_pair_id
(conn: &mut Connection, user_id: &str, pair_id: &str)
order/src/order/store/order_store.rs:254
↓ 1 callers
Function
get_user_open_order_sum
(conn: &mut Connection, user_id: &str)
src/lib.rs:83
↓ 1 callers
Function
init_listening_for_orders
(order_subscription_channel: &'static str, created_order_publishing_channel: &'static str)
src/lib.rs:147
↓ 1 callers
Function
lrem
(conn: &mut redis::Connection, list: &str, start: i32, val: T)
redis/src/types/redis_list.rs:15
↓ 1 callers
Function
print_menu
()
src/main.rs:20
↓ 1 callers
Method
serialize
(&self)
order/src/order/order_pair.rs:21
↓ 1 callers
Function
set
(conn: &mut redis::Connection, key: &str, val: T)
redis/src/types/redis_key.rs:10
↓ 1 callers
Function
srem
(conn: &'a mut redis::Connection, key: &'a str, value: &'a str)
redis/src/types/redis_set.rs:18
↓ 1 callers
Method
total_cost
(&self)
order/src/order.rs:51
↓ 1 callers
Function
update_order_amount
(conn: &mut Connection, order: &mut Order, amount_to_update: i128)
order/src/order/store/order_store.rs:101
↓ 1 callers
Function
zrem
(conn: &mut redis::Connection, key: &str, value: T)
redis/src/types/redis_sorted_set.rs:14
Method
create
(&self, price: u128, amount: u128)
order/src/order/order_executor_result.rs:11
Method
deserialize
(json: &String)
src/lib.rs:137
Method
deserialize
(json: &String)
order/src/order.rs:58
Method
deserialize
(json: &String)
order/src/order/order_pair.rs:25
Method
deserialize
(json: &String)
order/src/order/store/order_store.rs:30
Method
deserialize
(json: &String)
trade/src/trade.rs:52
Function
get_key_by_order_type
(order_type: &OrderType)
order/src/order/store/order_type_store.rs:8
Function
get_message
(conn: &mut redis::PubSub)
redis/src/types/redis_pubsub.rs:15
Function
get_open_orders_for_ticker
(conn: &mut Connection, user_id: &str, ticker: &str)
order/src/order/store/order_store.rs:52
Function
get_orderbook
(conn: &mut Connection, pair_id: String, depth: u32)
order/src/lib.rs:7
Function
get_user_open_order_sum
(conn: &mut Connection, user_id: &str, ticker: &str)
order/src/order/orderbook.rs:9
Function
hgetall
(conn: &'a mut redis::Connection, key: &'a str)
redis/src/types/redis_hash.rs:14
Function
init_pubsub
(conn: &mut connection::Connection)
src/lib.rs:143
Function
is_valid_pair
(conn: &mut Connection, pair: &Pair)
order/src/order/store/order_pair_store.rs:13
Function
it_works
()
redis/src/lib.rs:7
Function
it_works
()
trade/src/lib.rs:6
Function
main
()
dummy.rs:2
Function
main
()
src/main.rs:55
Function
main
()
src/bin/redis_pubsub_listener.rs:5
Function
main
()
src/bin/redis_created_orders_listener.rs:6
Function
main
()
src/bin/http_api.rs:14
Function
main
()
src/bin/redis_trades_completed_listener.rs:6
Method
new
(user_id: &str, order_type: order_type::OrderType, order_execution_type: order_execution_type::OrderExecutionT
order/src/order.rs:28
Method
new
(price_ticker: &str, ref_ticker: &str, uuid: Uuid)
order/src/order/order_pair.rs:14
Method
new
(user_id: &str, uuid: &str)
order/src/order/store/order_store.rs:20
Method
new
(pair_id: String, pair: String, execution_price: String, filled_amount: String, side: String, bid_user_id: Str
trade/src/trade.rs:34
Function
place_trade
(conn: &mut Connection, publish_completed_trades: bool, o: &mut Order)
trade/src/trade.rs:58
Function
subscribe
(conn: &mut redis::PubSub, channel: &str)
redis/src/types/redis_pubsub.rs:8
Function
test_create_retrieve_order
()
order/src/order/store/order_store.rs:289
Function
test_get_order_by_id
()
order/src/order/orderbook.rs:100
Function
test_get_orders_from_uuid_list
()
order/src/order/store/order_execution_type_store.rs:115
Function
test_get_set
()
redis/src/types/redis_key.rs:19
Function
test_hget_hincrby
()
redis/src/types/redis_hash.rs:70
Function
test_hget_hset
()
redis/src/types/redis_hash.rs:35
Function
test_hget_hset_str
()
redis/src/types/redis_hash.rs:86
Function
test_hmget
()
redis/src/types/redis_hash.rs:50
next →
1–100 of 109, ranked by callers