Skip to main content
POST
/
v1
/
attestations
/
soft
Request a Soft Attestation Quote
curl --request POST \
  --url https://api.gm.ondo.finance/v1/attestations/soft \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "chainId": "ethereum-1",
  "symbol": "AAPLon",
  "side": "buy",
  "tokenAmount": "5.000000000000000000",
  "duration": "short"
}
'
{
  "chainId": "1",
  "symbol": "AAPLon",
  "ticker": "AAPL",
  "assetAddress": "0x96F6eF951840721AdBF46Ac996b59E0235CB985C",
  "side": "0",
  "tokenAmount": "5000000000000000000",
  "price": "225273151158540753535"
}

Authorizations

x-api-key
string
header
required

Body

application/json

Request a soft quote to mint or redeem a quantity of assets.

chainId
enum<string>
required

The chain's identifier including the chain name and chain id.

Available options:
ethereum-1,
bsc-56,
5eykt4UsFv8P8NJdTREpY1vzqKqZKvdpKuc147dw2N9d
symbol
string
required

The GM token symbol.

Example:

"AAPLon"

side
enum<string>
required

The direction of the trade.

Available options:
buy,
sell
tokenAmount
string
required

The number of tokens, represented as a string-encoded decimal with up to 18 digits after the decimal point.

Example:

"5.000000000000000000"

duration
enum<string>

Specifies the desired validity period for the attestation. Users can specify a duration of 'short' for a tighter price spread or 'long' for an extended validity period.

Available options:
short,
long

Response

OK

chainId
string
required

The chain's identifier, only including the chain id.

Example:

"1"

symbol
string
required

The GM token symbol.

Example:

"AAPLon"

ticker
string
required

The stock ticker associated with this attestation.

Example:

"AAPL"

assetAddress
string
required

The contract address of the symbol.

Example:

"0x96F6eF951840721AdBF46Ac996b59E0235CB985C"

side
enum<string>
required

The direction of the trade (0 for buy, 1 for sell).

Available options:
0,
1
tokenAmount
string
required

The number of tokens to mint/redeem represented as a string with 18 decimal places.

Example:

"5000000000000000000"

price
string
required

The price per asset in usdon, represented as a string with 18 decimal places.

Example:

"225273151158540753535"