package hello.world;
import java.lang.Exception;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.errors.ErrorResponse;
import org.openapis.openapi.models.operations.UserSetTradingPasswordRequest;
import org.openapis.openapi.models.operations.UserSetTradingPasswordResponse;
public class Application {
public static void main(String[] args) throws ErrorResponse, Exception {
AriesJava sdk = AriesJava.builder()
.bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
.build();
UserSetTradingPasswordRequest req = UserSetTradingPasswordRequest.builder()
.password("MySecurePassword123!")
.build();
UserSetTradingPasswordResponse res = sdk.userManagement().setTradingPassword()
.request(req)
.call();
// handle response
}
}