Get betting accounts

GET /bookieaccount/

Operation ID: get_bookie_account_list

Retrieve the user's bookie account list with session and bot status information.

Parameters

No parameters required.

Response

Success Response (200)

Returns an array of BookieAccountList objects:

[
  {
    "id": 123,
    "bookie": "TAB",
    "display_name": "TAB Main Account",
    "balance": 1250.50,
    "bonus_balance": 25.00,
    "update_time": "2024-01-24T20:30:00+11:00",
    "bot_ip": "192.168.1.100",
    "bot_id": "BOT001",
    "bot_running": true,
    "running_sessions": 2
  },
  {
    "id": 124,
    "bookie": "WishBet",
    "display_name": "WishBet Secondary",
    "balance": 750.25,
    "bonus_balance": 0.00,
    "update_time": "2024-01-24T19:45:00+11:00",
    "bot_ip": "192.168.1.101",
    "bot_id": "BOT002",
    "bot_running": false,
    "running_sessions": 0
  },
  {
    "id": 125,
    "bookie": "Sportsbet",
    "display_name": "Sportsbet Premium",
    "balance": 2100.75,
    "bonus_balance": 50.00,
    "update_time": "2024-01-24T20:15:00+11:00",
    "bot_ip": "192.168.1.102",
    "bot_id": "BOT003",
    "bot_running": true,
    "running_sessions": 1
  }
]

Response Fields

Field
Type
Description

id

integer

Unique identifier for the bookie account

bookie

string

Name of the bookmaker

display_name

string

User-friendly name for the account

balance

number

Current account balance

bonus_balance

number

Current bonus balance available

update_time

datetime

Last time account information was updated

bot_ip

string

IP address of the bot managing this account

bot_id

string

Identifier of the bot managing this account

bot_running

boolean

Whether the bot is currently running

running_sessions

integer

Number of active sessions for this account

Usage

curl -X GET "https://betmatic.app/api/bookieaccount/" \
  -H "Authorization: Token your_token"

Error Responses

  • 401 Invalid credentials - Authentication token is invalid or missing

  • 500 Internal server error - Server encountered an error processing the request

Potential Use Cases

  1. Account Monitoring: Monitor all bookie accounts and their current status

  2. Balance Tracking: Track balances across all connected bookmaker accounts

  3. Bot Management: Monitor which bots are running and managing accounts

  4. Session Monitoring: Track active betting sessions across accounts

  5. System Health: Check the health and status of automated betting infrastructure

  6. Load Balancing: Distribute betting load based on running sessions

  7. Troubleshooting: Identify accounts with bot or session issues

  8. Performance Optimization: Optimize bot allocation and session management

Authentication

This endpoint requires authentication. Include your token in the Authorization header:

Authorization: Token your_token_here

Notes

  • This endpoint provides operational status information not available in the basic bookie account list

  • Bot and session information is crucial for managing automated betting operations

  • Balance information is updated periodically and may not reflect real-time values

  • Use this endpoint to monitor the health of your automated betting infrastructure

Last updated