generate_lending_reserve_for_binance#

API documentation for tradingstrategy.binance.utils.generate_lending_reserve_for_binance Python function.

generate_lending_reserve_for_binance(asset_symbol, address, reserve_id, asset_decimals=18)[source]#

Generate a lending reserve for Binance data.

Binance data is not on-chain, so we need to generate the identifiers for the trading pairs.

Parameters:
  • asset_symbol (str) – E.g. ETH

  • address (HexAddress) – address of the reserve

  • reserve_id (int) – id of the reserve

Returns:

LendingReserve

Return type:

LendingReserve