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:84
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:92
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:32
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:24
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:23
ethflowData
• Optional
ethflowData: EthflowData
Inherited from
Order.ethflowData
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:76
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:47
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:51
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:37
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:42
executedSurplusFee
• Optional
executedSurplusFee: null
| 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:95
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:72
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:101
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:63
invalidated
• invalidated: boolean
Has this order been invalidated?
Inherited from
Order.invalidated
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:55
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:75
kind
• kind: OrderKind
see OrderParameters::kind
Inherited from
Order.kind
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:50
onchainOrderData
• Optional
onchainOrderData: OnchainOrderData
There is some data only available for orders that are placed on-chain. This data can be found in this object.
Inherited from
Order.onchainOrderData
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:91
onchainUser
• Optional
onchainUser: string
This represents the actual trader of an on-chain order.
ethflow orders
In this case, the owner
would be the EthFlow
contract and not the actual trader.
Inherited from
Order.onchainUser
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:85
owner
• owner: string
Inherited from
Order.owner
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:25
partiallyFillable
• partiallyFillable: boolean
see OrderParameters::partiallyFillable
Inherited from
Order.partiallyFillable
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:54
quoteId
• Optional
quoteId: null
| number
Orders can optionally include a quote ID. This way the order can be linked to a quote and enable providing more metadata when analysing order slippage.
Inherited from
Order.quoteId
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:78
receiver
• Optional
receiver: null
| string
see OrderParameters::receiver
Inherited from
Order.receiver
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:30
sellAmount
• sellAmount: string
see OrderParameters::sellAmount
Inherited from
Order.sellAmount
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:34
sellToken
• sellToken: string
see OrderParameters::sellToken
Inherited from
Order.sellToken
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:22
sellTokenBalance
• Optional
sellTokenBalance: SellTokenSource
see OrderParameters::sellTokenBalance
Inherited from
Order.sellTokenBalance
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:58
signature
• signature: string
Inherited from
Order.signature
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:64
signingScheme
• signingScheme: SigningScheme
Inherited from
Order.signingScheme
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:63
status
• status: OrderStatus
Order status.
Inherited from
Order.status
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:59
totalFee
• totalFee: string
Defined in
external/cow-sdk/src/order-book/types.ts:7
uid
• uid: string
Inherited from
Order.uid
Defined in
external/cow-sdk/src/order-book/generated/models/OrderMetaData.ts:26
validTo
• validTo: number
see OrderParameters::validTo
Inherited from
Order.validTo
Defined in
external/cow-sdk/src/order-book/generated/models/OrderCreation.ts:42