74 stable releases

Uses new Rust 2021

new 1.7.2 Nov 28, 2022
1.6.8 Oct 31, 2022
1.5.1 Jul 8, 2022
1.3.6 Mar 27, 2022
0.9.0 Jul 27, 2021

#2403 in Magic Beans

Download history 256/week @ 2022-08-07 171/week @ 2022-08-14 208/week @ 2022-08-21 76/week @ 2022-08-28 531/week @ 2022-09-04 127/week @ 2022-09-11 32/week @ 2022-09-18 77/week @ 2022-09-25 152/week @ 2022-10-02 90/week @ 2022-10-09 29/week @ 2022-10-16 120/week @ 2022-10-23 504/week @ 2022-10-30 49/week @ 2022-11-06 139/week @ 2022-11-13 111/week @ 2022-11-20

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

Apache-2.0

115KB
3K 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

~3–11MB
~242K SLoC