Optional
configuration: ConfigurationProtected
axiosProtected
baseProtected
configurationProvide a quote estimate for the provided loan close.
Optional
height: numberoptional block height, defaults to current tip
Optional
fromAsset: stringthe asset used to repay the loan
Optional
repayBps: numberthe basis points of the existing position to repay
Optional
toAsset: stringthe collateral asset of the loan
Optional
loanOwner: stringthe owner of the loan collateral
Optional
minOut: stringthe minimum amount of the target asset to accept
Optional
options: AxiosRequestConfig<any>Override http request option.
QuoteApi
Provide a quote estimate for the provided loan open.
Optional
height: numberoptional block height, defaults to current tip
Optional
fromAsset: stringthe collateral asset
Optional
amount: numberthe collateral asset amount in 1e8 decimals
Optional
toAsset: stringthe target asset to receive (loan denominated in TOR regardless)
Optional
destination: stringthe destination address, required to generate memo
Optional
minOut: stringthe minimum amount of the target asset to accept
Optional
affiliateBps: numberthe affiliate fee in basis points
Optional
affiliate: stringthe affiliate (address or thorname)
Optional
options: AxiosRequestConfig<any>Override http request option.
QuoteApi
Provide a quote estimate for the provided saver deposit.
Optional
height: numberoptional block height, defaults to current tip
Optional
asset: stringthe asset to deposit
Optional
amount: numberthe source asset amount in 1e8 decimals
Optional
options: AxiosRequestConfig<any>Override http request option.
QuoteApi
Provide a quote estimate for the provided saver withdraw.
Optional
height: numberoptional block height, defaults to current tip
Optional
asset: stringthe asset to withdraw
Optional
address: stringthe address for the position
Optional
withdrawBps: numberthe basis points of the existing position to withdraw
Optional
options: AxiosRequestConfig<any>Override http request option.
QuoteApi
Provide a quote estimate for the provided swap.
Optional
height: numberoptional block height, defaults to current tip
Optional
fromAsset: stringthe source asset
Optional
toAsset: stringthe target asset
Optional
amount: numberthe source asset amount in 1e8 decimals
Optional
destination: stringthe destination address, required to generate memo
Optional
refundAddress: stringthe refund address, refunds will be sent here if the swap fails
Optional
streamingInterval: numberthe interval in which streaming swaps are swapped
Optional
streamingQuantity: numberthe quantity of swaps within a streaming swap
Optional
toleranceBps: numberthe maximum basis points from the current feeless swap price to set the limit in the generated memo
Optional
affiliateBps: numberthe affiliate fee in basis points
Optional
affiliate: stringthe affiliate (address or thorname)
Optional
options: AxiosRequestConfig<any>Override http request option.
QuoteApi
Generated using TypeDoc
QuoteApi - object-oriented interface
Export
QuoteApi