Order Data Model

Order represents an intent to Sell or Buy NFT.

Here is Order data model used by Rarible API. You can check data model in API Reference

FieldTypeDescription
idstringidentifier of the Order, format is ${blockchain}:${orderId}
platformenum"RARIBLE" "OPEN_SEA" "X2Y2". See full list of values in API Reference
statusenum"ACTIVE" "FILLED" "HISTORICAL" "INACTIVE" "CANCELLED"
startedAtstring
(date-time)
Date and time when order became active (it can't be executed before this time)
endedAtstring
(date-time)
Date and time when order will become cancelled (it can't be executed after this time)
createdAtstring
(date-time)
Date and time when order was created
lastUpdatedAtstring
(date-time)
Date and time when order was last updated
makerstring
(Address)
Wallet which created the order
takerstring
(Address)
Wallet which can take the order (for private orders)
makeobject (Asset)Asset which has maker of this order
takeobject (Asset)Asset which owner of this order wants to get from the taker
dataobject
(different types for different platforms)
Extended data needed for order execution (it's different for each platform. You can get more information in API Reference)

* Fields marked with bold are required

Asset data model

FieldTypeDescription
typeobject (AssetType)Type of the asset
valuestring (BigDecimal)Amount of the asset

* Fields marked with bold are required

Asset type data model

See full specification in API reference

FieldTypeDescription
@typeenumFLOW_NFT, FLOW_FT, ERC721, ERC20 etc
set of fields differ
example for ERC20
contractstring (Address)Address of ERC-20 contract

* Fields marked with bold are required