Interface: EnrichedOrder
An order with the total fee added.
Hierarchy
-
↳
EnrichedOrder
Properties
appData
• appData: string
This field comes in two forms for backward compatibility. The hash form will eventually stop being accepted.
Inherited from
Order.appData
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:79
appDataHash
• Optional
appDataHash: null
| string
May be set for debugging purposes. If set, this field is compared to what the backend internally calculates as the app data hash based on the contents of appData
. If the hash does not match, an error is returned. If this field is set, then appData
MUST be a string encoding of a JSON object.
Inherited from
Order.appDataHash
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:84
availableBalance
• Optional
availableBalance: null
| string
Unused field that is currently always set to null
and will be removed in the future.
Deprecated
Inherited from
Order.availableBalance
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:31
buyAmount
• buyAmount: string
see OrderParameters::buyAmount
Inherited from
Order.buyAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:38
buyToken
• buyToken: string
see OrderParameters::buyToken
Inherited from
Order.buyToken
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:26
buyTokenBalance
• Optional
buyTokenBalance: BuyTokenDestination
see OrderParameters::buyTokenBalance
Inherited from
Order.buyTokenBalance
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:62
class
• class: OrderClass
Inherited from
Order.class
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:23
creationDate
• creationDate: string
Creation time of the order. Encoded as ISO 8601 UTC.
Inherited from
Order.creationDate
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:22
ethflowData
• Optional
ethflowData: EthflowData
Inherited from
Order.ethflowData
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:75
executedBuyAmount
• executedBuyAmount: string
The total amount of buyToken
that has been executed for this order.
Inherited from
Order.executedBuyAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:46
executedFee
• Optional
executedFee: string
Total fee charged for execution of the order. Contains network fee and protocol fees.
Inherited from
Order.executedFee
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:95
executedFeeAmount
• executedFeeAmount: string
The total amount of fees that have been executed for this order.
Inherited from
Order.executedFeeAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:50
executedFeeToken
• Optional
executedFeeToken: string
Token the executed fee was captured in.
Inherited from
Order.executedFeeToken
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:99
executedSellAmount
• executedSellAmount: string
The total amount of sellToken
that has been executed for this order including fees.
Inherited from
Order.executedSellAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:36
executedSellAmountBeforeFees
• executedSellAmountBeforeFees: string
The total amount of sellToken
that has been executed for this order without fees.
Inherited from
Order.executedSellAmountBeforeFees
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:41
executedSurplusFee
• Optional
executedSurplusFee: string
Surplus fee that the limit order was executed with.
Inherited from
Order.executedSurplusFee
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:91
feeAmount
• feeAmount: string
see OrderParameters::feeAmount
Inherited from
Order.feeAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:46
from
• Optional
from: null
| string
If set, the backend enforces that this address matches what is decoded as the signer of the signature. This helps catch errors with invalid signature encodings as the backend might otherwise silently work with an unexpected address that for example does not have any balance.
Inherited from
Order.from
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:69
fullAppData
• Optional
fullAppData: null
| string
Full appData
, which the contract-level appData
is a hash of. See OrderCreation
for more information.
Inherited from
Order.fullAppData
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:104
fullFeeAmount
• Optional
fullFeeAmount: string
Amount that the signed fee would be without subsidies.
Inherited from
Order.fullFeeAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:62
invalidated
• invalidated: boolean
Has this order been invalidated?
Inherited from
Order.invalidated
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:54
isLiquidityOrder
• Optional
isLiquidityOrder: boolean
Liquidity orders are functionally the same as normal smart contract orders but are not placed with the intent of actively getting traded. Instead they facilitate the trade of normal orders by allowing them to be matched against liquidity orders which uses less gas and can have better prices than external liquidity.
As such liquidity orders will only be used in order to improve settlement of normal orders. They should not be expected to be traded otherwise and should not expect to get surplus.
Inherited from
Order.isLiquidityOrder
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:74
kind
• kind: OrderKind
see OrderParameters::kind