types#

tradingstrategy.types module.

Module description#

Generic units used in data models used in Capitalgram.

Types aliases are used to give human-readable meaning for various arguments and return values. These are also used to hint Pyarrow schemas to make Parquet files more compact.

TODO: Clean up after Explicit Type Aliases have been merged and is widely supported https://www.python.org/dev/peps/pep-0613/

Classes#

BasisPoint

Multiplier as 1/10000 or 0.01%

BlockNumber

EVM block number from 1 to infinity

NonChecksummedAddress

Ethereum address that does not use EIP-55 checksumming.

PrimaryKey

64-bit integer based primary key.

TradingStrategyType

Market class for our internal type definitions.

UNIXTimestamp

Seconds since 1.1.1970 as UTC time as integer.

USDollarAmount

Express USD monetary amount.