Skip to main content

Interface: TwapData

Parameters for a TWAP order, made a little more user-friendly for SDK users.

See

TwapStruct for the native struct.

Hierarchy

Properties

appData

Readonly appData: string

Meta-data associated with the order. Normally would be the keccak256 hash of the document generated in http://github.com/cowprotocol/app-data

This hash should have been uploaded to the API https://api.cow.fi/docs/#/default/put_api_v1_app_data__app_data_hash_ and potentially to other data availability protocols like IPFS.

Inherited from

TwapDataBase.appData

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:63


buyAmount

Readonly buyAmount: BigNumber

minimum amount of buyToken that must be bought across the entire TWAP

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:115


buyToken

Readonly buyToken: string

which token to buy

Inherited from

TwapDataBase.buyToken

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:50


durationOfPart

Optional Readonly durationOfPart: DurationOfPart

whether the TWAP is valid for the entire interval or not

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:135


numberOfParts

Readonly numberOfParts: BigNumber

number of parts

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:125


receiver

Readonly receiver: string

who to send the tokens to

Inherited from

TwapDataBase.receiver

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:55


sellAmount

Readonly sellAmount: BigNumber

total amount of sellToken to sell across the entire TWAP

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:110


sellToken

Readonly sellToken: string

which token to sell

Inherited from

TwapDataBase.sellToken

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:45


startTime

Optional Readonly startTime: StartTime

start time of the TWAP

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:120


timeBetweenParts

Readonly timeBetweenParts: BigNumber

duration of the TWAP interval

Defined in

external/cow-sdk/src/composable/orderTypes/Twap.ts:130