WalletLendNamespace
Wallet Lend NamespaceMethods
| Function | Description |
|---|---|
| openPosition() | Open a lending position |
| getPosition() | Get position information for this wallet |
| closePosition() | Close a lending position (withdraw from market) |
openPosition()
Open a lending position
| Parameter | Type | Description |
|---|---|---|
params | LendOpenPositionParams | Lending position parameters |
params.marketId | Market identifier to open position in | |
params.amount | number | Amount to lend |
getPosition()
Get position information for this wallet
| Parameter | Type | Description |
|---|---|---|
params | GetPositionParams | Position query parameters |
params.marketId | LendMarketId | Market identifier (required) |
params.asset | Asset | Asset filter (not yet supported) |
closePosition()
Close a lending position (withdraw from market)
| Parameter | Type | Description |
|---|---|---|
params | ClosePositionParams | Position closing parameters |
params.marketId | LendMarketId | Market identifier to close position in |
params.amount | number | Amount to withdraw |