crypto-contract-value

Crates.iocrypto-contract-value
lib.rscrypto-contract-value
version1.7.25
sourcesrc
created_at2021-05-26 22:54:04.415692
updated_at2024-03-31 01:49:32.804973
descriptionGet contract value.
homepage
repositoryhttps://github.com/crypto-crawler/crypto-msg-parser/tree/main/crypto-contract-value
max_upload_size
id402422
size87,987
Frank Dai (soulmachine)

documentation

README

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.

Commit count: 0

cargo fmt