Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Crypto-toolbox/HFT-Orderbook
/ functions
Functions
125 in github.com/Crypto-toolbox/HFT-Orderbook
⨍
Functions
125
◇
Types & classes
16
↓ 65 callers
Function
createDummyLimit
* Return a Limit struct pointer */
src/testCases.c:16
↓ 20 callers
Function
addNewLimit
src/limits.c:23
↓ 16 callers
Function
CuStringAppend
src/CuTest.c:63
↓ 13 callers
Function
createDummyTree
* Convenience function to ease setup of tests. */
src/testCases.c:27
↓ 12 callers
Method
process
Processes the given order. If the order's size is 0, it is removed from the book. If its size isn't zero and it exists within the bo
lob.py:154
↓ 11 callers
Function
getBalanceFactor
src/utils.c:193
↓ 10 callers
Function
initOrder
src/utils.c:15
↓ 10 callers
Function
limitIsRoot
src/utils.c:85
↓ 10 callers
Function
pushOrder
src/orders.c:11
↓ 8 callers
Function
getHeight
src/utils.c:155
↓ 7 callers
Function
createRoot
src/limits.c:12
↓ 6 callers
Function
CuStringAppendFormat
src/CuTest.c:86
↓ 6 callers
Function
hasGrandpa
src/utils.c:98
↓ 6 callers
Function
limitExists
src/utils.c:55
↓ 5 callers
Function
getMinimumLimit
src/utils.c:122
↓ 4 callers
Function
CuFail_Line
src/CuTest.c:160
↓ 4 callers
Function
getGrandpa
src/utils.c:111
↓ 4 callers
Function
getMaximumLimit
src/utils.c:142
↓ 4 callers
Function
popOrder
src/orders.c:39
↓ 4 callers
Function
replaceLimitInParent
src/limits.c:70
↓ 3 callers
Method
_replace_node_in_parent
Replaces Node in parent on a delete() call. :param new_value: LimitLevel() instance :return:
lob.py:382
↓ 3 callers
Method
append
Append an order. :param order: Order() instance :return:
lob.py:668
↓ 3 callers
Method
balance_grandpa
Checks if our grandparent needs rebalancing. :return:
lob.py:422
↓ 3 callers
Function
initLimit
src/utils.c:29
↓ 3 callers
Function
pushToQueue
src/datastructs.c:7
↓ 3 callers
Function
removeLimit
src/limits.c:95
↓ 3 callers
Function
removeOrder
src/orders.c:68
↓ 3 callers
Function
rotateLeftLeft
src/bst.c:44
↓ 3 callers
Function
rotateRightRight
src/bst.c:92
↓ 2 callers
Function
CuFailInternal
src/CuTest.c:148
↓ 2 callers
Function
CuStringInit
src/CuTest.c:32
↓ 2 callers
Function
CuStringResize
src/CuTest.c:57
↓ 2 callers
Function
CuSuiteNew
src/CuTest.c:245
↓ 2 callers
Method
__repr__
(self)
lob.py:714
↓ 2 callers
Method
__str__
(self)
lob.py:711
↓ 2 callers
Method
_ll_case
Rotate Nodes for LL Case. Reference: https://en.wikipedia.org/wiki/File:Tree_Rebalancing.gif :return:
lob.py:473
↓ 2 callers
Method
_rr_case
Rotate Nodes for RR Case. Reference: https://en.wikipedia.org/wiki/File:Tree_Rebalancing.gif :return:
lob.py:490
↓ 2 callers
Method
check_levels_format
(self, levels)
orderbook_tests.py:102
↓ 2 callers
Method
insert
Iterative AVL Insert method to insert a new Node. Inserts a new node and calls the grand-parent's balance() method - but only if it i
lob.py:560
↓ 2 callers
Method
levels
Returns the price levels as a dict {'bids': [bid1, ...], 'asks': [ask1, ...]} :param depth: Desired number of levels on each side to
lob.py:262
↓ 2 callers
Method
load_book
(self, lob)
orderbook_tests.py:90
↓ 2 callers
Method
remove
Deletes this limit level. :return:
lob.py:396
↓ 2 callers
Function
rotateLeftRight
src/bst.c:66
↓ 2 callers
Function
rotateRightLeft
src/bst.c:114
↓ 1 callers
Function
CuStrAlloc
src/CuTest.c:14
↓ 1 callers
Function
CuStrCopy
src/CuTest.c:20
↓ 1 callers
Function
CuStringInsert
src/CuTest.c:96
↓ 1 callers
Function
CuStringNew
src/CuTest.c:40
↓ 1 callers
Function
CuSuiteAdd
src/CuTest.c:266
↓ 1 callers
Function
CuSuiteAddSuite
src/CuTest.c:273
↓ 1 callers
Function
CuSuiteDetails
src/CuTest.c:305
↓ 1 callers
Function
CuSuiteInit
src/CuTest.c:238
↓ 1 callers
Function
CuSuiteRun
src/CuTest.c:283
↓ 1 callers
Function
CuSuiteSummary
src/CuTest.c:294
↓ 1 callers
Function
CuTestDelete
src/CuTest.c:129
↓ 1 callers
Function
CuTestInit
src/CuTest.c:112
↓ 1 callers
Function
CuTestRun
src/CuTest.c:136
↓ 1 callers
Function
HFTLobGetSuite
src/testCases.c:898
↓ 1 callers
Function
RunAllTests
src/testCases.c:930
↓ 1 callers
Method
_lr_case
Rotate Nodes for LR Case. Reference: https://en.wikipedia.org/wiki/File:Tree_Rebalancing.gif :return:
lob.py:507
↓ 1 callers
Method
_rl_case
Rotate Nodes for RL case. Reference: https://en.wikipedia.org/wiki/File:Tree_Rebalancing.gif :return:
lob.py:520
↓ 1 callers
Method
add
Adds a new LimitLevel to the book and appends the given order to it. :param order: Order() Instance :return:
lob.py:234
↓ 1 callers
Method
append
Wrapper function to make appending to Order List simpler. :param order: Order() Instance :return:
lob.py:374
↓ 1 callers
Method
balance
Call the rotation method relevant to this Node's balance factor. This call works itself up the tree recursively. :return:
lob.py:442
↓ 1 callers
Function
initQueue
src/utils.c:48
↓ 1 callers
Function
popFromQueue
src/datastructs.c:21
↓ 1 callers
Method
pop_from_list
Pops this item from the DoublyLinkedList it belongs to. :return: Order() instance values as tuple
lob.py:688
↓ 1 callers
Method
remove
Removes an order from the book. If the Limit Level is then empty, it is also removed from the book's relevant tree. If the r
lob.py:186
↓ 1 callers
Method
update
Updates an existing order in the book. It also updates the order's related LimitLevel's size, accordingly. :param order: :re
lob.py:174
Function
CuAssertDblEquals_LineMsg
src/CuTest.c:214
Function
CuAssertIntEquals_LineMsg
src/CuTest.c:205
Function
CuAssertPtrEquals_LineMsg
src/CuTest.c:224
Function
CuAssertStrEquals_LineMsg
src/CuTest.c:180
Function
CuAssert_Line
src/CuTest.c:174
Function
CuStringAppendChar
src/CuTest.c:78
Function
CuStringDelete
src/CuTest.c:50
Function
CuSuiteDelete
src/CuTest.c:252
Function
CuTestNew
src/CuTest.c:122
Function
TestAddNewLimit
src/testCases.c:381
Function
TestBalanceBranch
src/testCases.c:888
Function
TestCreateDummyTree
src/testCases.c:43
Function
TestCreateRoot
src/testCases.c:368
Function
TestGetBalanceFactor
src/testCases.c:623
Function
TestGetGrandpa
src/testCases.c:517
Function
TestGetHeight
src/testCases.c:595
Function
TestGetMaximumLimit
src/testCases.c:543
Function
TestGetMinimumLimit
src/testCases.c:569
Function
TestHasGrandpa
src/testCases.c:491
Function
TestLimitExists
src/testCases.c:432
Function
TestLimitIsRoot
src/testCases.c:466
Function
TestOrderPopping
src/testCases.c:193
Function
TestOrderPushing
src/testCases.c:74
Function
TestRemoveLimit
src/testCases.c:686
Function
TestRemoveOrder
src/testCases.c:296
Function
TestReplaceLimitInParent
src/testCases.c:669
Function
TestRotateLL
src/testCases.c:740
Function
TestRotateLR
src/testCases.c:778
Function
TestRotateRL
src/testCases.c:850
Function
TestRotateRR
src/testCases.c:816
Method
__init__
(self)
lob.py:138
next →
1–100 of 125, ranked by callers