Get Stocks

Get available stocks for the user across all games. This endpoint retrieves stock counts from Redis Sorted Sets using the pattern: `stock:${ownerId}:${game}:${groupId}` Each sorted set contains stock IDs that can be atomically checked out. The response provides counts of available stocks by game and amount. For accounts (like shell accounts), a separate structure is used.

GET
/stock
/stock

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Query Parameters

gamestring

Game type to get stocks for

Value in: "FREE_FIRE" | "FREE_FIRE_SHELL" | "FREE_FIRE_SG" | "FREE_FIRE_ID"
curl -X GET "https://api.t4b.top/stock?game=FREE_FIRE" \
  -H "Authorization: Bearer <token>"

Ok

{
  "data": {
    "schema": {
      "stocks": {
        "property1": {
          "property1": 0,
          "property2": 0
        },
        "property2": {
          "property1": 0,
          "property2": 0
        }
      },
      "stockAccounts": {
        "property1": {
          "currentUsesAccount": {
            "property1": 0,
            "property2": 0
          }
        },
        "property2": {
          "currentUsesAccount": {
            "property1": 0,
            "property2": 0
          }
        }
      }
    }
  },
  "statusCode": 200
}