Skip to main content
PUT
/
v1
/
config
/
{category}
/
user-settings
Java (SDK)
package hello.world;

import java.lang.Exception;
import java.util.Map;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.errors.*;
import org.openapis.openapi.models.operations.UpdateUserSettingResponse;

public class Application {

    public static void main(String[] args) throws BadRequestException, UnauthorizedException, InternalServerError, Exception {

        AriesJava sdk = AriesJava.builder()
                .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
            .build();

        UpdateUserSettingResponse res = sdk.userSettings().update()
                .category("trading")
                .body(Map.ofEntries(
                    Map.entry("theme", "light"),
                    Map.entry("auto_trading", false),
                    Map.entry("max_position_size", 15000L)))
                .call();

        if (res.object().isPresent()) {
            // handle response
        }
    }
}
{
  "message": "User settings updated successfully"
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

category
string
required

Category of the setting (e.g., 'display', 'trading', 'notifications')

Body

application/json

User settings data to update as key-value pairs

The body is of type object.

Response

User settings updated successfully

message
string