checkAccountData
Get trading account
/api/v1/account/{id}
Usage and SDK Samples
curl -X GET\
-H "Accept: */*"\
"http://localhost:8085/api/v1/api/v1/account/{id}"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountControllerApi;
import java.io.File;
import java.util.*;
public class AccountControllerApiExample {
public static void main(String[] args) {
AccountControllerApi apiInstance = new AccountControllerApi();
String xClientId = xClientId_example; // String |
String xClientApiKey = xClientApiKey_example; // String |
UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Account ID
try {
TradingAccountDataResource result = apiInstance.checkAccountData(xClientId, xClientApiKey, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountControllerApi#checkAccountData");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountControllerApi;
public class AccountControllerApiExample {
public static void main(String[] args) {
AccountControllerApi apiInstance = new AccountControllerApi();
String xClientId = xClientId_example; // String |
String xClientApiKey = xClientApiKey_example; // String |
UUID id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Account ID
try {
TradingAccountDataResource result = apiInstance.checkAccountData(xClientId, xClientApiKey, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountControllerApi#checkAccountData");
e.printStackTrace();
}
}
}
String *xClientId = xClientId_example; //
String *xClientApiKey = xClientApiKey_example; //
UUID *id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // Account ID
AccountControllerApi *apiInstance = [[AccountControllerApi alloc] init];
// Get trading account
[apiInstance checkAccountDataWith:xClientId
xClientApiKey:xClientApiKey
id:id
completionHandler: ^(TradingAccountDataResource output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var NobossoRestApiDocumentation = require('nobosso_rest_api_documentation');
var api = new NobossoRestApiDocumentation.AccountControllerApi()
var xClientId = xClientId_example; // {{String}}
var xClientApiKey = xClientApiKey_example; // {{String}}
var id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // {{UUID}} Account ID
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.checkAccountData(xClientId, xClientApiKey, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class checkAccountDataExample
{
public void main()
{
var apiInstance = new AccountControllerApi();
var xClientId = xClientId_example; // String |
var xClientApiKey = xClientApiKey_example; // String |
var id = new UUID(); // UUID | Account ID
try
{
// Get trading account
TradingAccountDataResource result = apiInstance.checkAccountData(xClientId, xClientApiKey, id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountControllerApi.checkAccountData: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccountControllerApi();
$xClientId = xClientId_example; // String |
$xClientApiKey = xClientApiKey_example; // String |
$id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // UUID | Account ID
try {
$result = $api_instance->checkAccountData($xClientId, $xClientApiKey, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountControllerApi->checkAccountData: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountControllerApi;
my $api_instance = WWW::SwaggerClient::AccountControllerApi->new();
my $xClientId = xClientId_example; # String |
my $xClientApiKey = xClientApiKey_example; # String |
my $id = 38400000-8cf0-11bd-b23e-10b96e4ef00d; # UUID | Account ID
eval {
my $result = $api_instance->checkAccountData(xClientId => $xClientId, xClientApiKey => $xClientApiKey, id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountControllerApi->checkAccountData: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AccountControllerApi()
xClientId = xClientId_example # String |
xClientApiKey = xClientApiKey_example # String |
id = 38400000-8cf0-11bd-b23e-10b96e4ef00d # UUID | Account ID
try:
# Get trading account
api_response = api_instance.check_account_data(xClientId, xClientApiKey, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountControllerApi->checkAccountData: %s\n" % e)
Parameters
| Name | Description |
|---|---|
| id* |
UUID
(uuid)
Account ID
Required
|
| Name | Description |
|---|---|
| X-Client-Id* |
String
Required
|
| X-Client-Api-Key* |
String
Required
|