-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement exchange operators and trading rule tracking
- Add exchange operator implementation - Introduce nonce creator - Add trading rules tracker - Update order and operator models - Enhance simulation engine and dashboard - Update corresponding test cases
- Loading branch information
1 parent
aa0c39a
commit fda6b5c
Showing
15 changed files
with
915 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
import os | ||
import platform | ||
from decimal import Decimal | ||
from hashlib import md5 | ||
|
||
s_decimal_0 = Decimal("0") | ||
s_decimal_max = Decimal("1e20") | ||
s_decimal_min = Decimal("1e-20") | ||
s_decimal_inf = Decimal("inf") | ||
s_decimal_NaN = Decimal("NaN") | ||
|
||
|
||
def get_instance_id() -> str: | ||
return md5( | ||
f"{platform.uname()}_pid:{os.getpid()}_ppid:{os.getppid()}".encode() | ||
).hexdigest() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.