curl --request GET \
--url https://www.vibekast.xyz/api/v2/markets/{market}const options = {method: 'GET'};
fetch('https://www.vibekast.xyz/api/v2/markets/{market}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.vibekast.xyz/api/v2/markets/{market}"
response = requests.get(url)
print(response.text){
"address": "<string>",
"index": 0,
"label": "<string>",
"question": "<string>",
"status": "open",
"closeTime": 4503599627370495,
"closeTimeIso": "2023-11-07T05:31:56Z",
"collateral": "<string>",
"grid": {
"n": 0,
"lo": "<string>",
"hi": "<string>",
"width": "<string>"
},
"settlement": {
"value": "<string>",
"range": 0,
"rangeLo": "<string>",
"rangeHi": "<string>"
},
"volume": "<string>",
"trades": 0,
"fees": "<string>",
"chainId": 84532,
"open": true,
"feeBps": 0,
"b": "<string>",
"ranges": [
{
"index": 0,
"lo": "<string>",
"hi": "<string>",
"label": "<string>",
"probability": "<string>"
}
],
"spot": {
"price": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"source": "<string>"
},
"settlementRule": "<string>",
"notes": [
"<string>"
],
"mintTestUsdc": {
"to": "<string>",
"data": "<string>",
"value": "0",
"description": "<string>"
}
}{
"code": "INVALID_JSON",
"message": "<string>"
}{
"code": "INVALID_JSON",
"message": "<string>"
}{
"code": "INVALID_JSON",
"message": "<string>"
}One market with live prices for every range
curl --request GET \
--url https://www.vibekast.xyz/api/v2/markets/{market}const options = {method: 'GET'};
fetch('https://www.vibekast.xyz/api/v2/markets/{market}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://www.vibekast.xyz/api/v2/markets/{market}"
response = requests.get(url)
print(response.text){
"address": "<string>",
"index": 0,
"label": "<string>",
"question": "<string>",
"status": "open",
"closeTime": 4503599627370495,
"closeTimeIso": "2023-11-07T05:31:56Z",
"collateral": "<string>",
"grid": {
"n": 0,
"lo": "<string>",
"hi": "<string>",
"width": "<string>"
},
"settlement": {
"value": "<string>",
"range": 0,
"rangeLo": "<string>",
"rangeHi": "<string>"
},
"volume": "<string>",
"trades": 0,
"fees": "<string>",
"chainId": 84532,
"open": true,
"feeBps": 0,
"b": "<string>",
"ranges": [
{
"index": 0,
"lo": "<string>",
"hi": "<string>",
"label": "<string>",
"probability": "<string>"
}
],
"spot": {
"price": "<string>",
"updatedAt": "2023-11-07T05:31:56Z",
"source": "<string>"
},
"settlementRule": "<string>",
"notes": [
"<string>"
],
"mintTestUsdc": {
"to": "<string>",
"data": "<string>",
"value": "0",
"description": "<string>"
}
}{
"code": "INVALID_JSON",
"message": "<string>"
}{
"code": "INVALID_JSON",
"message": "<string>"
}{
"code": "INVALID_JSON",
"message": "<string>"
}Path Parameters
Market address, or "latest" for the newest market.
^(latest|0x[0-9a-fA-F]{40})$Response
The market.
0x-prefixed 20-byte address.
^0x[0-9a-fA-F]{40}$Position in the market registry, 0 = first market.
-9007199254740991 <= x <= 9007199254740991ISO week label, e.g. "2026-W43".
open: trading. closed: past close, waiting for settlement. settled: resolved on the Chainlink price; winning shares pay 1 tUSDC. voided: could never settle; positions redeem at final market prices.
open, closed, settled, voided Unix time in seconds.
0 <= x <= 9007199254740991ISO 8601 time in UTC.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$The tUSDC token this market trades in. It changes every week.
^0x[0-9a-fA-F]{40}$Show child attributes
Show child attributes
Set once the market has settled.
Show child attributes
Show child attributes
Trading volume in tUSDC, fee excluded, buys and sells.
^-?\d+(\.\d+)?$-9007199254740991 <= x <= 9007199254740991Fees collected in tUSDC.
^-?\d+(\.\d+)?$True while trades are accepted.
Current fee in basis points. Rises from 100 to 300 over the final 6 hours before close.
-9007199254740991 <= x <= 9007199254740991LMSR liquidity parameter. The house's worst-case loss is b * ln(n).
^-?\d+(\.\d+)?$Show child attributes
Show child attributes
Latest Chainlink BTC/USD price. Only set for the newest market.
Show child attributes
Show child attributes
Mints 10,000 tUSDC of this market's collateral to the sender.
Show child attributes
Show child attributes
Was this page helpful?