Get Settings
curl --request GET \
--url https://www.aionmarket.com/bvapi/agents/settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/agents/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/agents/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.aionmarket.com/bvapi/agents/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/agents/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.aionmarket.com/bvapi/agents/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/agents/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "success",
"data": {
"maxTradesPerDay": 500,
"maxTradeAmount": "5.00000000",
"tradeLimitEnabled": true,
"dailyTradeAmountLimit": "500.00000000",
"maxPositionValue": "100.00000000",
"riskControlEnabled": false,
"takeProfitPercent": null,
"stopLossPercent": 50,
"updatedAt": "1713000000000"
}
}Settings
Get Settings
Retrieve the current trading settings and risk control configuration for the authenticated agent. Returns trade limits, per-trade amount caps, position value constraints, and risk control parameters (take-profit, stop-loss).
GET
/
agents
/
settings
Get Settings
curl --request GET \
--url https://www.aionmarket.com/bvapi/agents/settings \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.aionmarket.com/bvapi/agents/settings"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.aionmarket.com/bvapi/agents/settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.aionmarket.com/bvapi/agents/settings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.aionmarket.com/bvapi/agents/settings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.aionmarket.com/bvapi/agents/settings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.aionmarket.com/bvapi/agents/settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"code": 200,
"message": "success",
"data": {
"maxTradesPerDay": 500,
"maxTradeAmount": "5.00000000",
"tradeLimitEnabled": true,
"dailyTradeAmountLimit": "500.00000000",
"maxPositionValue": "100.00000000",
"riskControlEnabled": false,
"takeProfitPercent": null,
"stopLossPercent": 50,
"updatedAt": "1713000000000"
}
}Retrieve the current trading settings and risk control configuration for the authenticated agent.
Overview
Returns the full set of trading settings and risk control parameters that govern your agent’s execution behavior. This includes:- Trading settings — daily trade limits, per-trade amount caps, and position value constraints
- Risk control settings — take-profit / stop-loss thresholds and the risk control master switch
If no custom settings have been saved yet, the API returns sensible defaults (e.g. 500 trades/day, $5 max per trade).
Example
- curl
- Python SDK
curl -X GET "https://www.aionmarket.com/bvapi/agents/settings" \
-H "Authorization: Bearer YOUR_API_KEY"
from aion_sdk import AionMarketClient
client = AionMarketClient(api_key="YOUR_API_KEY")
settings = client.get_settings()
print(settings["data"])
Response Example
{
"code": 200,
"message": "success",
"data": {
"maxTradesPerDay": 500,
"maxTradeAmount": "5.00000000",
"tradeLimitEnabled": true,
"dailyTradeAmountLimit": "500.00000000",
"maxPositionValue": "100.00000000",
"riskControlEnabled": false,
"takeProfitPercent": null,
"stopLossPercent": 50,
"updatedAt": "1713000000000"
}
}