generate_lending_reserve#
API documentation for tradeexecutor.testing.synthetic_lending_data.generate_lending_reserve Python function.
- generate_lending_reserve(token, chain_id=ChainId.ethereum, internal_id=136)[source]#
Generate a random lending reserve.
- Parameters:
token (AssetIdentifier) – Underlying asset of the reserve
chain_id (ChainId) – Chain ID to of the reserve
internal_id – Internal ID of the reserve
- Returns:
Lending reserve id
- Return type:
LendingReserve