Skip to main content

Game Status

Fetch your active positions for a game along with projected winnings based on the current price at the time of the request. Also returns any streaks you are on track to win.

Endpoint

GET https://api.metafide.io/v1/surge/games/status

Query Parameters

ParameterTypeRequiredDescription
assetstringYesThe asset the game is running on (e.g. BTC_USDT)
tokenstringYesThe currency used for the position (e.g. USDC)
networkstringYesThe network the position was placed on (e.g. mainnet, testnet)
intervalnumberYesThe game duration in seconds (e.g. 60, 3600, 86400)

Headers

HeaderValue
Accept*/*
x-api-keyYour Metafide API key

Example Request

// Node 18+ has native fetch — no import needed

const url = 'https://api.metafide.io/v1/surge/games/status?asset=BTC_USDT&token=USDC&network=testnet&interval=86400';

const options = {
method: 'GET',
headers: {
'Accept': '*/*',
'x-api-key': 'metafide_11111111111111111111111111111',
},
};

try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}

Response

{
"positions": [
{
"gid": "489808",
"c": "USDC",
"a": "BTC_USDT",
"id": 1,
"f": "5",
"sp": "66169",
"cm": false,
"cmt": null,
"w": 4.587819563491935,
"r": -8.243608730161291,
"pw": "0x79a0f3D2c6765cff1b36F6A942c5D8241c3BB8a9",
"win": null,
"t": "1771495586504",
"tx": null,
"txid": "95c7bbf3-94c7-4141-8401-719b634a7552",
"p": null,
"created_at": "2026-02-19T10:06:26.505Z",
"st": "success",
"it": 86400,
"n": "testnet",
"username": "John Doe",
"avatar": {
"imageUrl": "/avatars/default.svg",
"backgroundColor": "#4285f4"
}
}
],
"streaks": []
}

Response Fields

Root

FieldTypeDescription
positionsarrayList of active positions placed in the current game
streaksarrayList of streaks you are on track to win based on current projected results

positions[]

FieldTypeDescription
gidstringUnique identifier of the game the position belongs to
cstringCurrency used for the position (e.g. USDC)
astringAsset the position was placed on (e.g. BTC_USDT)
idnumberUser ID of the position owner (shared across all positions by the same user)
fstringThe stake amount placed
spstringThe predicted price submitted by the user
cmbooleanWhether the position has been claimed
cmtstring | nullClaim transaction hash, null if not yet claimed
wnumberProjected winnings if the game ended at the time of this request
rnumberProjected return percentage if the game ended at the time of this request
pwstringThe wallet address of the position owner
winnumber | nullFinal winnings, null if the game is still ongoing
tstringUnix timestamp in milliseconds of when the position was placed
txstring | nullTransaction hash of the position, null if not yet confirmed
txidstringInternal unique identifier for the transaction
pany | nullAdditional position metadata, null if not applicable
created_atstringISO 8601 timestamp of when the position was created
ststringStatus of the position (e.g. success)
itnumberGame interval in seconds
nstringNetwork the position was placed on (e.g. testnet, mainnet)
usernamestringDisplay name of the position owner

positions[].avatar

FieldTypeDescription
imageUrlstringURL of the user's avatar image
backgroundColorstringHex color code of the avatar background