Skip to main content
POST
/
quantlib
/
economics
/
auctions
/
run
Run Auction
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/auctions/run \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "auction_type": "second_price",
  "n_bidders": 3,
  "valuations": [
    100,
    80,
    90
  ]
}
'
{
  "success": true,
  "data": {
    "auction_type": "second_price",
    "winner": 0,
    "price": 90,
    "revenue": 90,
    "bids": [
      100,
      80,
      90
    ]
  }
}

Authorizations

X-API-Key
string
header
required

API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register

Body

application/json
auction_type
enum<string>
required

Type of auction mechanism

Available options:
first_price,
second_price,
all_pay
Example:

"second_price"

n_bidders
integer
required

Number of bidders participating

Required range: x >= 2
Example:

3

valuations
number[]
required

Private valuations for each bidder (must have n_bidders elements)

Required range: x >= 0
Example:
[100, 80, 90]

Response

Successful Response

success
boolean
Example:

true

data
object