Skip to main content

Type Alias: RequestTradeDTO

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / RequestTradeDTO

Type Alias: RequestTradeDTO

RequestTradeDTO = V2PoolWriteBase & { buy0Qty?: never; buy1Qty?: never; sell0Qty: string; sell1Qty?: never; } | { buy0Qty?: never; buy1Qty?: never; sell0Qty?: never; sell1Qty: string; } | { buy0Qty: string; buy1Qty?: never; sell0Qty?: never; sell1Qty?: never; } | { buy0Qty?: never; buy1Qty: string; sell0Qty?: never; sell1Qty?: never; } & object

Defined in: packages/gswap-sdk/dist/index.d.ts:2643

A v2 RequestTrade with exactly one selected trade-side quantity.

Type Declaration​

amountInMaximum?​

optional amountInMaximum?: string

amountOutMinimum?​

optional amountOutMinimum?: string

priceLimit?​

optional priceLimit?: string