Skip to content

Update config

UpdateConfig

Description: Updates the editable part of the server common configuration.

Access Control

SESSION_ADMIN

Request Parameters

Name Type Required Description
name string Yes Server name
owner string Yes Owner name
timeofdemo int Yes Demo duration
timezone int Yes Timezone value
antiflood int Yes Anti-flood mode
floodcontrol int Yes Flood-control value
rollovers_mode int Yes Rollover mode
path_database string Yes Database path
path_history string Yes History path
path_log string Yes Log path
account_url string Yes Account URL
port int No Optional common port
timeout int No Optional timeout
typeofdemo int No Demo type
feeder_timeout int No Feeder timeout
daylightcorrection int No Daylight correction
keepticks int No Keep-ticks flag/value
monthly_state_mode int No Monthly statement mode
statement_mode int No Statement mode
statement_weekend int No Weekend statement flag
time_backup string No Backup schedule

Request Example

{
  "name": "TradeServer",
  "owner": "Broker Ltd.",
  "timeofdemo": 604800,
  "timezone": 2,
  "antiflood": 1,
  "floodcontrol": 50,
  "rollovers_mode": 1,
  "path_database": "/opt/server/db",
  "path_history": "/opt/server/history",
  "path_log": "/opt/server/logs",
  "account_url": "https://account.broker.com",
  "time_backup": "03:00"
}

Response Parameters

Name Type Description
data string Returns "OK" on success

Response Example

{
  "data": "OK"
}

Validation Error Example

{
  "error": "INVALID_DATA",
  "message": "path_log is required"
}

Backend Error Example

{
  "error": "CONFIG_UPDATE_ERROR",
  "message": "..."
}