Returns
currentrequiredsufficient
Use when
- validating a trade before
openTrade() - validating a top-up before
updateCollateral()
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Check whether the connected trader has enough USDC allowance for a required amount.
const allowance = await client.checkUsdcAllowance('100');
currentrequiredsufficientopenTrade()updateCollateral()interface Response {
current: bigint;
required: bigint;
sufficient: boolean;
}