Developers
Search…
Developers
Introduction
QTokens
Transfer
Total Supply
Underlying Balance
Exchange Rate
Get Cash
Total Borrow
Borrow Balance
Borrow Rate
Supply Rate
Total Reserve
Reserve Factor
Key Events
Qore
Market List
Enter Markets
Exit Markets
Get Markets In
Supply
Redeem with QToken
Redeem with Underlying
Borrow
Repay Borrow
Repay Borrow Behalf
Liquidate Borrow
Get Account Liquidity
Market Information
Close Factor
Liquidation Incentive
Qubit Distribution Speeds
Pending Qubit (or Accrued Qubit)
Claim Qubit
Key Events
Qubit Locker
qScore
Total qScore
Deposit
Locked Balance
Locked Period
Extend Lock Period
Unlocked Balance
Withdraw
Powered By
GitBook
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.
Qore
1
function
marketListOf
(
address account
)
external view
returns
(
address
[]
memory
);
Copied!
account: The account whose list of entered markets shall be queried.
RETURN: The address of each market which is currently entered into.
Solidity
1
Qore qore
=
Qore
(
<
qoreAddress
>
);
2
address
[]
memory markets
=
qore
.
marketListOf
(
<
accountAddress
>
);
Copied!
Ethers.js
1
const
qore
=
await
ethers
.
getContractAt
(
<
qoreABI
>
,
<
qoreAddress
>
);
2
const
markets
=
await
qore
.
marketListOf
(
<
accountAddress
>
);
Copied!
Qore - Previous
Exit Markets
Next - Qore
Supply
Last modified
8mo ago
Copy link
Contents
Qore
Solidity
Ethers.js