GET
/
getUserData
Get User Data (Profile/Referral)
curl --request GET \
  --url http://localhost:2400/getUserData \
  --header 'Authorization: Bearer <token>'
{
  "_id": "mongoUserId...",
  "userID": "user-123",
  "username": "GannTrader",
  "tier": "Pro",
  "Level": 5,
  "refID": "ABC123XYZ",
  "Xp": {
    "total": 1550,
    "daily": 50,
    "weekly": 300,
    "monthly": 1200
  },
  "usersReferred": 10,
  "xpRemainingForNextLevel": 50,
  "tradeStreakCount": 3,
  "xpMultiplier": 1.2,
  "Ranked": true,
  "viewedMessage": false,
  "lastVisited": "2023-03-20T10:00:00.000Z",
  "tradingSettings": {
    "ethereum": {
      "slippage": 1.5,
      "gasPreset": "medium",
      "maxGasPrice": 100,
      "mevProtection": true,
      "autoBuy": false,
      "autoSell": false
    },
    "solana": {
      "slippage": 1,
      "priorityFee": 100000
    },
    "base": {
      "slippage": 1.5,
      "gasPreset": "medium",
      "maxGasPrice": 100,
      "mevProtection": true,
      "autoBuy": false,
      "autoSell": false
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

type
enum<string>

Determines the type of data returned. If 'ref', returns referral data. Otherwise, returns profile data.

Available options:
ref,
profile

Response

200
application/json

Successful retrieval of user data (Profile or Referral).

The response is of type object.