Skip to content

Get config

GetConfig

Description: Returns the current server common configuration together with several runtime ports from the main server config.

Access Control

SESSION_ADMIN, SESSION_DEALER, SESSION_SYSTEM, SESSION_MANAGER

Request Parameters

No parameters required.

Response Parameters

Name Type Description
server_build string Server build version
typeofdemo int Demo mode type
timeofdemo int Demo duration
timezone int Timezone value
antiflood int Anti-flood mode
floodcontrol int Flood-control value
daylightcorrection int Daylight-correction flag
feeder_timeout int Feeder timeout
rollovers_mode int Rollover mode
path_database string Database path
path_history string History path
name string Server name
owner string Server owner
brand string Default brand
account_url string Account URL
keepticks int Keep-ticks flag/value
monthly_state_mode int Monthly statement mode
statement_mode int Statement mode
statement_weekend int Weekend statement flag
license_status int License status
license_expire int License expiration timestamp
license_init int License init timestamp
license string License string
time_backup string Backup schedule
http_port int Internal HTTP port
tcp_port int Internal TCP port
fix_enable int FIX enabled flag
fix_port int FIX port
ws_port int WebSocket port

Response Example

{
  "server_build": "v2.0.0",
  "typeofdemo": 1,
  "timeofdemo": 2592000,
  "timezone": 3,
  "antiflood": 1,
  "floodcontrol": 100,
  "daylightcorrection": 1,
  "feeder_timeout": 60,
  "rollovers_mode": 2,
  "path_database": "/var/app/db",
  "path_history": "/var/app/history",
  "name": "MyTradingServer",
  "owner": "Broker Inc.",
  "brand": "TradeX",
  "account_url": "https://client.tradex.com",
  "keepticks": 1000,
  "monthly_state_mode": 1,
  "statement_mode": 0,
  "statement_weekend": 1,
  "license_status": 1,
  "license_expire": 1704067200,
  "license_init": 1698883200,
  "license": "TRX-123456-7890",
  "time_backup": "* * * * *",
  "http_port": 8080,
  "tcp_port": 9080,
  "fix_enable": 1,
  "fix_port": 9880,
  "ws_port": 8090
}