Skip to main content

Interface: SwapParameters

Trade type, assets, amounts, and optional parameters.

Hierarchy

Properties

amount

amount: string

Inherited from

TradeParameters.amount

Defined in

external/cow-sdk/src/trading/types.ts:59


appCode

appCode: string

Inherited from

TraderParameters.appCode

Defined in

external/cow-sdk/src/trading/types.ts:79


buyToken

buyToken: string

Inherited from

TradeParameters.buyToken

Defined in

external/cow-sdk/src/trading/types.ts:57


buyTokenDecimals

buyTokenDecimals: number

Inherited from

TradeParameters.buyTokenDecimals

Defined in

external/cow-sdk/src/trading/types.ts:58


chainId

chainId: SupportedChainId

Inherited from

TraderParameters.chainId

Defined in

external/cow-sdk/src/trading/types.ts:78


env

Optional env: CowEnv

Inherited from

TradeParameters.env

Defined in

external/cow-sdk/src/trading/types.ts:66


kind

kind: OrderKind

Inherited from

TradeParameters.kind

Defined in

external/cow-sdk/src/trading/types.ts:54


partiallyFillable

Optional partiallyFillable: boolean

Inherited from

TradeParameters.partiallyFillable

Defined in

external/cow-sdk/src/trading/types.ts:67


partnerFee

Optional partnerFee: PartnerFee

Inherited from

TradeParameters.partnerFee

Defined in

external/cow-sdk/src/trading/types.ts:71


receiver

Optional receiver: null | string

Inherited from

TradeParameters.receiver

Defined in

external/cow-sdk/src/trading/types.ts:69


sellToken

sellToken: string

Inherited from

TradeParameters.sellToken

Defined in

external/cow-sdk/src/trading/types.ts:55


sellTokenDecimals

sellTokenDecimals: number

Inherited from

TradeParameters.sellTokenDecimals

Defined in

external/cow-sdk/src/trading/types.ts:56


signer

signer: string | Signer | ExternalProvider

Inherited from

TraderParameters.signer

Defined in

external/cow-sdk/src/trading/types.ts:80


slippageBps

Optional slippageBps: number

Inherited from

TradeParameters.slippageBps

Defined in

external/cow-sdk/src/trading/types.ts:68


validFor

Optional validFor: number

Inherited from

TradeParameters.validFor

Defined in

external/cow-sdk/src/trading/types.ts:70