Skip to main content
POST
/
v1
/
admin
/
create-instruments
Create instruments
curl --request POST \
  --url https://api.joyride.exchange/v1/admin/create-instruments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "asset": "SOL",
  "expiration": 1740816000,
  "spot_price": 180.25
}
'
{
  "asset": "SOL",
  "expiration": 1740816000,
  "created": 10
}

Authorizations

Authorization
string
header
required

Admin token set via the ADMIN_TOKEN environment variable.

Body

application/json
asset
string
required

Underlying asset symbol

Example:

"SOL"

expiration
integer
required

Expiration timestamp (Unix seconds)

Example:

1740816000

spot_price
number
required

Current spot price for strike generation (dollars)

Example:

180.25

Response

Instruments created

asset
string
required
Example:

"SOL"

expiration
integer
required
Example:

1740816000

created
integer
required

Number of instruments created

Example:

10