Skip to main content
POST
/
quantlib
/
economics
/
games
/
create
Create Normal-Form Game
curl --request POST \
  --url https://finceptbackend.share.zrok.io/quantlib/economics/games/create \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "payoff_matrix_1": [
    [
      3,
      0
    ],
    [
      5,
      1
    ]
  ],
  "payoff_matrix_2": [
    [
      3,
      5
    ],
    [
      0,
      1
    ]
  ]
}
'
{
  "success": true,
  "data": {
    "n_strategies_p1": 2,
    "n_strategies_p2": 2,
    "pure_nash_equilibria": [
      [
        1,
        1
      ]
    ]
  }
}

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
payoff_matrix_1
number[][]
required

Payoff matrix for Player 1 (rows = Player 1 strategies, columns = Player 2 strategies)

Example:
[[3, 0], [5, 1]]
payoff_matrix_2
number[][]
required

Payoff matrix for Player 2 (rows = Player 1 strategies, columns = Player 2 strategies)

Example:
[[3, 5], [0, 1]]

Response

Successful Response

success
boolean
Example:

true

data
object