96 stable releases

1.7.24 Dec 24, 2023
1.7.23 Nov 27, 2023
1.7.21 Oct 29, 2023
1.7.18 May 6, 2023
0.9.0 Jul 27, 2021

#90 in Magic Beans

Download history 39/week @ 2023-10-17 102/week @ 2023-10-24 185/week @ 2023-10-31 175/week @ 2023-11-07 21/week @ 2023-11-14 206/week @ 2023-11-21 339/week @ 2023-11-28 22/week @ 2023-12-05 126/week @ 2023-12-12 90/week @ 2023-12-19 264/week @ 2023-12-26 24/week @ 2024-01-02 27/week @ 2024-01-09 26/week @ 2024-01-16 104/week @ 2024-01-23 440/week @ 2024-01-30

602 downloads per month
Used in 5 crates (2 directly)

Apache-2.0

135KB
3.5K SLoC

crypto-contract-value

The value of an unit of contract diffs in different exchanges, and even in the same exchange it differs in different markets.

For example:

  • Each Binance perpetual BTCUSDT contract is valued at 100 USD, and each alt coin contract is valued at 10 USD.
  • Each OKX BTC-USDT-SWAP contract is valued at 0.01 BTC.
  • Each OKX BTC-USD-SWAP contract is valued at 100 USD.
  • The contract value of spot markets is always 1.

Given quantity, the number of traded coins/contracts, we can multiply it by contract_value to get the total traded coins/USDs.

Dependencies

~4–17MB
~252K SLoC