Skip to main content
This page describes the taker endpoints of the Options API on Ethereum. All paths are relative to https://api.bebop.xyz/options/ethereum/v1.

List instruments

GET /instruments. The instruments that Bebop lists. By default, the list has the active instruments of the current Greek Factory that expire more than 30 seconds from now. The list is sorted by expiration.
string
One option token address. Returns that instrument also if it is inactive, expired, or from a retired Greek Factory. An unknown address returns an empty list. Bebop rejects instrument together with underlying, quote, option_type, expiration_from, expiration_to, or cursor.
string
Underlying token address.
string
Quote token address.
string
call or put.
integer
Earliest expiration, inclusive.
integer
Latest expiration, inclusive.
boolean
default:"false"
Also include the instruments that expired or that expire in 30 seconds or less.
boolean
default:"false"
Also include the instruments of a retired Greek Factory. See Contracts.
integer
default:"50"
Page size, 1 to 200.
string
The nextCursor of the previous page. Send the same filters on each page.
object[]
required
string | null
required
Cursor for the next page, or null on the last page.

Get indicative prices

GET /assets/{underlying}/summary. Indicative prices for the instruments of one underlying, grouped by expiration. Use it to compare strikes and expirations before you request a quote. The prices are not executable. Only GET /quote gives a firm premium. Each instrument has pricing and statistics. Either one can be null when its data is not fresh. An instrument with null pricing stays in the list.
string
required
ETH (WETH), cbBTC, or the underlying token address. The value is not case-sensitive. An unknown value returns 404 NotFound.
string
required
Asset symbol: ETH for WETH, or cbBTC.
string
required
Underlying token address.
string
required
Quote token address (USDC).
integer
required
5.
boolean
required
Always true.
integer | null
required
Identifier of the price set. It changes when the prices change.
integer | null
required
Time of the market data that the prices use.
integer | null
required
Time when Bebop calculated the prices.
integer | null
required
Time when Bebop published the prices.
number | null
required
Underlying spot price in USD.
string
required
Current UTC date, YYYY-MM-DD. The today statistics are for this date.
integer | null
required
Time of the statistics.
integer | null
required
Last block in the statistics.
integer | null
required
Last block of the trade data in the statistics.
object[]
required
One item for each expiration.

Get the pricing status

GET /status. Tells you whether indicative prices are available on this chain. It does not affect quotes: GET /quote works when the status is unavailable.
string
required
available when Bebop has fresh indicative prices. unavailable when it has none. Then pricing is null for all instruments in Get indicative prices.

Request an open quote

GET /quote. A firm sell-to-open quote. Bebop sends the request to every eligible maker and returns the highest valid premium.
string
required
Option token address.
string
required
OT amount in raw units. See Amounts and Limits.
string
required
Wallet that sends the transaction and locks the collateral. The signed order is bound to this wallet.
boolean
default:"false"
When true, Bebop also checks the wallet balance, allowance, and permission, and returns the result in issues.
Bebop rejects an open when the wallet holds OT of the instrument (ExistingOptionBalance).
string
required
Request ID. Give it to Bebop support with a question about the request.
string
required
Quote ID.
string
required
ID of the position that the trade opens or adds to. All opens of one wallet on one instrument share one position ID. The format is pos-<chainId>-<wallet>-<instrument>, with lowercase addresses.
integer
required
1.
string
required
Option token address.
string
required
sell for an open. buy for a close.
string
required
OT amount, raw units.
string
required
Premium in raw quote token units. On an open, the amount that the wallet receives, after fee. On a close, the amount that the wallet pays, including fee.
string
required
Bebop fee in raw quote token units. premium already has the fee applied: deducted on an open, added on a close. The fee does not include gas.
integer
required
Time after which the transaction fails. At most 60 seconds after the request, and at least 30 seconds before the instrument expiration.
string[] | null
required
null when validate is false. Otherwise, a list of wallet problems, empty when the wallet is ready. The values are in Quote issues.
object
required
The settlement transaction. Send it from taker_address without changes.
number | null
required
Implied volatility of the winning quote, as a decimal (0.55 is 55%). Not a settlement term.
number | null
required
Delta of the winning quote, from -1 to 1. Not a settlement term.
number | null
required
Underlying spot price in USD that the maker used. Not a settlement term.
object | null
required
Display values for a sell-to-open, per underlying unit. null on a close quote, and when no values are available. Not a settlement term.
The example has placeholder IDs and calldata. It is not executable.

Request a close quote

GET /positions/{positionId}/quote. A firm buy-to-close quote. Only the makers that filled the opens of the position quote the close.
string
required
Position ID.
string
OT amount to close, raw units. Omit it to close the full confirmed remainder.
boolean
default:"false"
When true, Bebop also checks the USDC balance, the USDC allowance, and the permission, and returns the result in issues.
A close quote counts only confirmed opens. Bebop confirms an open about 30 seconds after it is mined. While an open of the position is not confirmed, Bebop returns 409 PositionConfirming for a full close, and for an amount above the confirmed remainder. Bebop returns 404 PositionNotFound for a position that is fully closed. Bebop always checks that the wallet holds at least amount of RT. A partial close amount must be at or above the minimum amount. The remainder must also be at or above the minimum, unless amount is the full RT balance of the wallet. The response has the same fields as Request an open quote, with side buy.

Request a roll quote

GET /positions/{positionId}/roll. A firm quote that closes the full position and opens instrument in one transaction.
string
required
Position ID.
string
required
Option token address of the new instrument. It must have the same underlying, option type, collateral, quote token, and Greek Factory as the position, and it must be a different instrument.
boolean
default:"false"
When true, Bebop also checks the wallet and returns the result in issues.
For a call, the new OT amount is the closed amount. For a put, it is the closed amount times the new strike divided by the old strike, rounded down. The new amount must be at or above the minimum open. While an open of the position is not confirmed, Bebop returns 409 PositionConfirming. Bebop opens instruments only on the current Greek Factory, so a position on a retired Greek Factory cannot roll.
string
required
Request ID.
string
required
Roll ID. The two trades of the roll have this value as rollId in List position transactions.
integer
required
1.
object
required
The close leg.
object
required
The open leg. Same fields as close.
string
required
Open premium received minus close premium paid, raw quote token units. Negative when the wallet pays.
string
required
New collateral locked minus collateral released, raw collateral units. Negative when collateral is released. "0" for a call.
string
required
Bebop fee of the roll, raw quote token units. Only the open leg has a fee.
integer
required
Time after which the transaction fails. At least 30 seconds before the expiration of both instruments.
string[] | null
required
Same as on an open quote.
object
required
The settlement transaction. Same fields as on an open quote.
object | null
required
Display values of the open leg. Same fields as on an open quote.
object
required
The example has placeholder IDs and calldata. It is not executable.

List positions

GET /positions. The positions of your API key, newest first.
integer
default:"50"
Page size, 1 to 200.
string
The nextCursor of the previous page.
object[]
required
object
required
PnL of all positions of the API key, on all pages and in all statuses.
string | null
required
Cursor for the next page, or null on the last page.

Position status

A status is not final. For example, RT that the wallet receives later can change a redeemed position.

Get a position

GET /positions/{positionId}. One position. The response is one object of positions in List positions. A position that does not exist for the API key returns 404 NotFound.
string
required
Position ID.

List position transactions

GET /positions/{positionId}/transactions. The Bebop trades of one position, oldest first. Redemptions and exercises are not included.
string
required
Position ID.
string
required
Position ID.
object[]
required

Amounts

amount and the OT and RT balances are in raw collateral units. OT and RT have the decimals of the collateral. For a put, multiply the underlying amount by strike to get the USDC amount. Round the collateral up. Premiums and fees are in raw USDC units (6 decimals).

Limits

A request over a rate limit gets 429 with Retry-After.

Approvals

The taker wallet needs ERC-20 allowances and a Greek Factory permission for the Bebop settlement contract. The permission is a bit mask. Grant it with addPermissions(settlement, mask) on the Greek Factory of the instrument. addPermissions adds bits to the current mask. setPermissions(operator, mask) replaces the complete mask. To remove all permissions, call setPermissions(settlement, 0). The wallet never approves OT or RT.

Contracts

The factory field of an instrument gives its Greek Factory. Bebop opens and rolls positions only on the current Greek Factory. A position on the retired Greek Factory can be closed and redeemed. Its permissions and allowance are on the retired contract.

Quote issues

The values missing_auto_mint_burn, insufficient_factory_allowance, missing_operator_approval, and insufficient_receipt_balance are reserved. Bebop does not return them on Ethereum.

Errors

An error response has this shape:
A 503 is temporary. Request a new quote. Do not send an old tx again.