-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from shuhuiluo/feature/price_tick_conversions
Extend price and tick conversion utilities
- Loading branch information
Showing
7 changed files
with
429 additions
and
55 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
//! Extensions to the core library. | ||
|
||
mod ephemeral_tick_data_provider; | ||
mod price_tick_conversions; | ||
|
||
pub use ephemeral_tick_data_provider::EphemeralTickDataProvider; | ||
pub use price_tick_conversions::*; | ||
|
||
use crate::prelude::*; | ||
use alloy_primitives::U256; | ||
use bigdecimal::BigDecimal; | ||
|
||
pub fn u256_to_big_decimal(x: U256) -> BigDecimal { | ||
BigDecimal::from(u256_to_big_int(x)) | ||
} |
Oops, something went wrong.