Comment on page
Get Markets In
Get the list of markets an account is currently entered into. In order to supply collateral or borrow in a market, it must be entered first. Entered markets count towards account liquidity calculations.
function marketListOf(address account) external view returns (address[] memory);
- account: The account whose list of entered markets shall be queried.
- RETURN: The address of each market which is currently entered into.
Qore qore = Qore(<qoreAddress>);
address[] memory markets = qore.marketListOf(<accountAddress>);
const qore = await ethers.getContractAt(<qoreABI>, <qoreAddress>);
const markets = await qore.marketListOf(<accountAddress>);
Last modified 2yr ago