Trading

This API allows enabling or disabling trading, checking its status, and updating the trading password.

Enable Trading

Enables trading in the system using a password.

Request
Request Body schema: application/json
required
password
string
Responses
200

Trading successfully enabled

post/trading/start
Request samples
application/json
{
  • "password": "Password"
}
Response samples
application/json
{
  • "api_message": "string",
  • "api_data": {
    }
}

Disable Trading

Disables trading in the system using a password.

Request
Request Body schema: application/json
required
password
string
Responses
200

Trading successfully disabled

post/trading/stop
Request samples
application/json
{
  • "password": "Password"
}
Response samples
application/json
{
  • "api_message": "string",
  • "api_data": {
    }
}

Check Trading Status

Returns the current trading status in the system.

Responses
200

Trading status retrieved successfully

get/trading/check
Response samples
application/json
{
  • "api_message": "string",
  • "api_data": {
    }
}

Update Trading Password

Updates the trading password used to enable or disable trading.

Request
Request Body schema: application/json
required
old_password
string
new_password
string
Responses
200

Password updated successfully

put/trading/password
Request samples
application/json
{
  • "old_password": "Oldpassword",
  • "new_password": "Newpassword"
}
Response samples
application/json
{
  • "api_message": "string",
  • "api_data": {
    }
}