@@ -102,34 +102,32 @@ ask_sizes
102102 - [ Aborts:] ( #@Aborts:_22 )
103103- [ Function ` discard_price_crossing_levels ` ] ( #0x7_bulk_order_book_types_discard_price_crossing_levels )
104104- [ Function ` new_bulk_order_match ` ] ( #0x7_bulk_order_book_types_new_bulk_order_match )
105- - [ Arguments:] ( #@Arguments:_23 )
106- - [ Returns:] ( #@Returns:_24 )
107105- [ Function ` get_total_remaining_size ` ] ( #0x7_bulk_order_book_types_get_total_remaining_size )
108106- [ Function ` get_unique_priority_idx ` ] ( #0x7_bulk_order_book_types_get_unique_priority_idx )
107+ - [ Arguments:] ( #@Arguments:_23 )
108+ - [ Returns:] ( #@Returns:_24 )
109+ - [ Function ` get_order_id ` ] ( #0x7_bulk_order_book_types_get_order_id )
109110 - [ Arguments:] ( #@Arguments:_25 )
110111 - [ Returns:] ( #@Returns:_26 )
111- - [ Function ` get_order_id ` ] ( #0x7_bulk_order_book_types_get_order_id )
112+ - [ Function ` get_account ` ] ( #0x7_bulk_order_book_types_get_account )
112113 - [ Arguments:] ( #@Arguments:_27 )
113114 - [ Returns:] ( #@Returns:_28 )
114- - [ Function ` get_account ` ] ( #0x7_bulk_order_book_types_get_account )
115+ - [ Function ` get_active_price ` ] ( #0x7_bulk_order_book_types_get_active_price )
115116 - [ Arguments:] ( #@Arguments:_29 )
116117 - [ Returns:] ( #@Returns:_30 )
117- - [ Function ` get_active_price ` ] ( #0x7_bulk_order_book_types_get_active_price )
118- - [ Arguments:] ( #@Arguments:_31 )
119- - [ Returns:] ( #@Returns:_32 )
120118- [ Function ` get_all_prices ` ] ( #0x7_bulk_order_book_types_get_all_prices )
121119- [ Function ` get_all_sizes ` ] ( #0x7_bulk_order_book_types_get_all_sizes )
122120- [ Function ` get_active_size ` ] ( #0x7_bulk_order_book_types_get_active_size )
123- - [ Arguments:] ( #@Arguments:_33 )
124- - [ Returns:] ( #@Returns:_34 )
121+ - [ Arguments:] ( #@Arguments:_31 )
122+ - [ Returns:] ( #@Returns:_32 )
125123- [ Function ` reinsert_order ` ] ( #0x7_bulk_order_book_types_reinsert_order )
126- - [ Arguments:] ( #@Arguments:_35 )
124+ - [ Arguments:] ( #@Arguments:_33 )
127125- [ Function ` match_order_and_get_next ` ] ( #0x7_bulk_order_book_types_match_order_and_get_next )
128- - [ Arguments:] ( #@Arguments:_36 )
129- - [ Returns:] ( #@Returns:_37 )
130- - [ Aborts:] ( #@Aborts:_38 )
126+ - [ Arguments:] ( #@Arguments:_34 )
127+ - [ Returns:] ( #@Returns:_35 )
128+ - [ Aborts:] ( #@Aborts:_36 )
131129- [ Function ` set_empty ` ] ( #0x7_bulk_order_book_types_set_empty )
132- - [ Arguments:] ( #@Arguments:_39 )
130+ - [ Arguments:] ( #@Arguments:_37 )
133131- [ Function ` destroy_bulk_order ` ] ( #0x7_bulk_order_book_types_destroy_bulk_order )
134132
135133
@@ -872,26 +870,10 @@ Validates a bulk order request for correctness.
872870
873871## Function ` new_bulk_order_match `
874872
875- Creates a new single bulk order match result.
876-
877-
878- <a id =" @Arguments:_23 " ></a >
879-
880- ### Arguments:
881-
882- - <code >order</code >: Reference to the bulk order being matched
883- - <code >is_bid</code >: True if matching against bid side, false for ask side
884- - <code >matched_size</code >: Size that was matched in this operation
885-
886873
887- <a id =" @Returns:_24 " ></a >
888-
889- ### Returns:
890-
891- A <code >SingleBulkOrderMatch</code > containing the match details.
892874
893-
894- <pre >< code >< b >public</b >(<b >friend</b >) <b >fun</b > <a href =" bulk_order_book_types.md#0x7_bulk_order_book_types_new_bulk_order_match " >new_bulk_order_match</a >< ; M: <b >copy</b >, drop, store> ; (order: &<b >mut</b > <a href =" bulk_order_book_types.md#0x7_bulk_order_book_types_BulkOrder " >bulk_order_book_types::BulkOrder</a >< ; M> ; , is_bid: bool, matched_size: u64): <a href =" order_book_types.md#0x7_order_book_types_OrderMatch " >order_book_types::OrderMatch</a >< ; M> ;
875+ < pre >< code >#[lint::skip(#[needless_mutable_reference])]
876+ <b >public</b >(<b >friend</b >) <b >fun</b > <a href =" bulk_order_book_types.md#0x7_bulk_order_book_types_new_bulk_order_match " >new_bulk_order_match</a >< ; M: <b >copy</b >, drop, store> ; (order: &<b >mut</b > <a href =" bulk_order_book_types.md#0x7_bulk_order_book_types_BulkOrder " >bulk_order_book_types::BulkOrder</a >< ; M> ; , is_bid: bool, matched_size: u64): <a href =" order_book_types.md#0x7_order_book_types_OrderMatch " >order_book_types::OrderMatch</a >< ; M> ;
895877</code ></pre >
896878
897879
@@ -971,14 +953,14 @@ A <code>SingleBulkOrderMatch</code> containing the match details.
971953Gets the unique priority index of a bulk order.
972954
973955
974- <a id =" @Arguments:_25 " ></a >
956+ <a id =" @Arguments:_23 " ></a >
975957
976958### Arguments:
977959
978960- <code >self</code >: Reference to the bulk order
979961
980962
981- <a id =" @Returns:_26 " ></a >
963+ <a id =" @Returns:_24 " ></a >
982964
983965### Returns:
984966
@@ -1012,14 +994,14 @@ The unique priority index for time-based ordering.
1012994Gets the order ID of a bulk order.
1013995
1014996
1015- <a id =" @Arguments:_27 " ></a >
997+ <a id =" @Arguments:_25 " ></a >
1016998
1017999### Arguments:
10181000
10191001- <code >self</code >: Reference to the bulk order
10201002
10211003
1022- <a id =" @Returns:_28 " ></a >
1004+ <a id =" @Returns:_26 " ></a >
10231005
10241006### Returns:
10251007
@@ -1053,14 +1035,14 @@ The unique order identifier.
10531035Gets the account of a bulk order.
10541036
10551037
1056- <a id =" @Arguments:_29 " ></a >
1038+ <a id =" @Arguments:_27 " ></a >
10571039
10581040### Arguments:
10591041
10601042- <code >self</code >: Reference to the bulk order
10611043
10621044
1063- <a id =" @Returns:_30 " ></a >
1045+ <a id =" @Returns:_28 " ></a >
10641046
10651047### Returns:
10661048
@@ -1094,15 +1076,15 @@ The account that placed the order.
10941076Gets the active price for a specific side of a bulk order.
10951077
10961078
1097- <a id =" @Arguments:_31 " ></a >
1079+ <a id =" @Arguments:_29 " ></a >
10981080
10991081### Arguments:
11001082
11011083- <code >self</code >: Reference to the bulk order
11021084- <code >is_bid</code >: True to get bid price, false for ask price
11031085
11041086
1105- <a id =" @Returns:_32 " ></a >
1087+ <a id =" @Returns:_30 " ></a >
11061088
11071089### Returns:
11081090
@@ -1204,15 +1186,15 @@ An option containing the active price if available, none otherwise.
12041186Gets the active size for a specific side of a bulk order.
12051187
12061188
1207- <a id =" @Arguments:_33 " ></a >
1189+ <a id =" @Arguments:_31 " ></a >
12081190
12091191### Arguments:
12101192
12111193- <code >self</code >: Reference to the bulk order
12121194- <code >is_bid</code >: True to get bid size, false for ask size
12131195
12141196
1215- <a id =" @Returns:_34 " ></a >
1197+ <a id =" @Returns:_32 " ></a >
12161198
12171199### Returns:
12181200
@@ -1262,7 +1244,7 @@ of the bulk order. If the price already exists at the first level, it increases
12621244the size; otherwise, it inserts the new price level at the front.
12631245
12641246
1265- <a id =" @Arguments:_35 " ></a >
1247+ <a id =" @Arguments:_33 " ></a >
12661248
12671249### Arguments:
12681250
@@ -1315,7 +1297,7 @@ This function reduces the size at the first price level by the matched size.
13151297If the first level becomes empty, it is removed and the next level becomes active.
13161298
13171299
1318- <a id =" @Arguments:_36 " ></a >
1300+ <a id =" @Arguments:_34 " ></a >
13191301
13201302### Arguments:
13211303
@@ -1324,14 +1306,14 @@ If the first level becomes empty, it is removed and the next level becomes activ
13241306- <code >matched_size</code >: Size that was matched in this operation
13251307
13261308
1327- <a id =" @Returns:_37 " ></a >
1309+ <a id =" @Returns:_35 " ></a >
13281310
13291311### Returns:
13301312
13311313A tuple containing the next active price and size as options.
13321314
13331315
1334- <a id =" @Aborts:_38 " ></a >
1316+ <a id =" @Aborts:_36 " ></a >
13351317
13361318### Aborts:
13371319
@@ -1383,7 +1365,7 @@ A tuple containing the next active price and size as options.
13831365Sets the bulk order to empty state by clearing all sizes.
13841366
13851367
1386- <a id =" @Arguments:_39 " ></a >
1368+ <a id =" @Arguments:_37 " ></a >
13871369
13881370### Arguments:
13891371
0 commit comments