Trading

This section give's control about the trading status in the system.
The trading can be disabled or enabled by any admin,in case he is using the correct trading password.
Admin logged in - can enable/disable trading status any time (using correct trading password).
User logged in - dont have access to trading status managment.

get-trading-status

Return the current status of the trading (open or close)

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Responses
200

Success

401

Unauthorized

403

Forbidden

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

start-trading

Enable the trading in the system,must be provided with the password

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

password
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

post/trading/start
Request samples
application/json
{
  • "password": "SomePassword078$#@"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}

stop-trading

Disable the trading in the system,must be provided with the password

SecurityAuthorization
Request
header Parameters
Authorization
required
string

auth header for JWT

Example: <JWT token>
username
required
string

auth header for username

Example: <username>
Request Body schema: application/json
required

raw(json)

password
string
Responses
200

Success

401

Unauthorized

403

Forbidden

422

Unprocessable Content

post/trading/stop
Request samples
application/json
{
  • "password": "SomePassword078$#@"
}
Response samples
application/json
{
  • "api_message": "<string>",
  • "api_data": {
    }
}