Skip to content

Validation rounds

GET
/v1/rounds
curl --request GET \
--url https://api.tako.wtf/v1/rounds

Bids, funded loans, Gram lent and what the pool earned, newest first.

before
string
/^\d+$/

Rounds before this election id

limit
integer
>= 1 <= 200

Page size, 1–200, default 50

OK

Media typeapplication/json
Array<object>
object
round
required

Election id, the unix time the round starts

string
decidedAt
required
Any of:

Unix seconds

integer
>= -9007199254740991 <= 9007199254740991
lent
required
Any of:

Amount in nanoGram, as a decimal string

string
/^-?\d+$/
funded
required
Any of:
integer
>= -9007199254740991 <= 9007199254740991
requests
required
integer
>= -9007199254740991 <= 9007199254740991
settled
required
integer
>= -9007199254740991 <= 9007199254740991
poolTake
required

Amount in nanoGram, as a decimal string

string
/^-?\d+$/
payout
required

Amount in nanoGram, as a decimal string

string
/^-?\d+$/

Example generated

[
{
"round": "example",
"decidedAt": 1,
"lent": "example",
"funded": 1,
"requests": 1,
"settled": 1,
"poolTake": "example",
"payout": "example"
}
]

Invalid parameter

Media typeapplication/json
object
error
required
string

Example generated

{
"error": "example"
}