Skip to main content
POST
Create a new offer

Body

application/json
tokenId
object
required

The token that is being offered to be traded for.

Example:

"0xF01234567890abcdef1234567890ABCDEF123456"

customerId
string
required

The ID of the customer creating the offer.

Example:

"customer_82bd7ffb54c24d2bb76c45f1d759b0ce"

makerWalletAddress
object
required

The address of the wallet creating the offer.

Example:

"0x3eB0e9C2Cd65d4325795AB8FAd3a69b3B2f8583f"

amount
number
required

The quantity of tokens offered.

Example:

10

priceInEuro
number
required

The total price in euros for the offer.

Example:

500

intention
enum<string>
required

The intention behind the offer, either to BUY or SELL.

Available options:
BUY,
SELL
Example:

"SELL"

Response

Offer created successfully.

tokenId
object
required

The token that is being offered to be traded for.

Example:

"0xabc1234567890def1234567890abcdef12345678"

makerWalletAddress
object
required

The wallet address of the customer who made the offer.

Example:

"0x12b5aEDEb98767823Dd473bE7C88A8203FaA7Ee8"

takerWalletAddress
object | null
required

The wallet address of the customer who accepts the offer (if accepted).

Example:

"0xA74269C3DE980723A1D49a017cBbD1839C41D4e7"

amount
number
required

The quantity of tokens involved in the offer.

Example:

5

priceInEuro
number
required

The total price in euros for the offer.

Example:

250.75

status
enum<string>
required

The current status of the offer.

Available options:
OPEN,
CANCELLED,
FILLED
Example:

"OPEN"

intention
enum<string>
required

The intention of the offer maker.

Available options:
BUY,
SELL
Example:

"BUY"

maker
object
required

The customer who made the offer.

taker
object | null
required

The customer who accepted the offer (if accepted).