Returns a paginated response of all available accounts. Allows filtering on the listed attributes as well as those on include-able associations by prefixing the association name (e.g. accounts_account_number).
curl -X GET\
-H "Accept: application/vnd.m76.v2+json"\
"https://api.m76.co/accounts?include=&filter[account_identifier]=&filter[account_management_type]=&filter[account_number]=&filter[account_status]=&filter[account_type]=&filter[custodian]=&filter[display_name]=&filter[firm_id]=&filter[latest_balance_date]=&filter[latest_balance_date_max]=&filter[latest_balance_date_min]=&filter[total_market_value]=&filter[total_market_value_max]=&filter[total_market_value_min]=&filter[unmatched]="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccountApi;
import java.io.File;
import java.util.*;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String accept = accept_example; // String |
String authorization = authorization_example; // String |
String include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
String filter[accountIdentifier] = filter[accountIdentifier]_example; // String |
String filter[accountManagementType] = filter[accountManagementType]_example; // String |
String filter[accountNumber] = filter[accountNumber]_example; // String |
String filter[accountStatus] = filter[accountStatus]_example; // String |
String filter[accountType] = filter[accountType]_example; // String |
String filter[custodian] = filter[custodian]_example; // String |
String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
String filter[firmId] = filter[firmId]_example; // String |
String filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String |
String filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String |
String filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String |
BigDecimal filter[totalMarketValue] = 1.2; // BigDecimal |
BigDecimal filter[totalMarketValueMax] = 1.2; // BigDecimal |
BigDecimal filter[totalMarketValueMin] = 1.2; // BigDecimal |
Boolean filter[unmatched] = true; // Boolean |
try {
Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#getAccounts");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccountApi;
public class AccountApiExample {
public static void main(String[] args) {
AccountApi apiInstance = new AccountApi();
String accept = accept_example; // String |
String authorization = authorization_example; // String |
String include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
String filter[accountIdentifier] = filter[accountIdentifier]_example; // String |
String filter[accountManagementType] = filter[accountManagementType]_example; // String |
String filter[accountNumber] = filter[accountNumber]_example; // String |
String filter[accountStatus] = filter[accountStatus]_example; // String |
String filter[accountType] = filter[accountType]_example; // String |
String filter[custodian] = filter[custodian]_example; // String |
String filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
String filter[firmId] = filter[firmId]_example; // String |
String filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String |
String filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String |
String filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String |
BigDecimal filter[totalMarketValue] = 1.2; // BigDecimal |
BigDecimal filter[totalMarketValueMax] = 1.2; // BigDecimal |
BigDecimal filter[totalMarketValueMin] = 1.2; // BigDecimal |
Boolean filter[unmatched] = true; // Boolean |
try {
Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccountApi#getAccounts");
e.printStackTrace();
}
}
}
String *accept = accept_example; //
String *authorization = authorization_example; //
String *include = include_example; // Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional)
String *filter[accountIdentifier] = filter[accountIdentifier]_example; // (optional)
String *filter[accountManagementType] = filter[accountManagementType]_example; // (optional)
String *filter[accountNumber] = filter[accountNumber]_example; // (optional)
String *filter[accountStatus] = filter[accountStatus]_example; // (optional)
String *filter[accountType] = filter[accountType]_example; // (optional)
String *filter[custodian] = filter[custodian]_example; // (optional)
String *filter[displayName] = filter[displayName]_example; // Search by name/identifier. (optional)
String *filter[firmId] = filter[firmId]_example; // (optional)
String *filter[latestBalanceDate] = filter[latestBalanceDate]_example; // (optional)
String *filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // (optional)
String *filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // (optional)
BigDecimal *filter[totalMarketValue] = 1.2; // (optional)
BigDecimal *filter[totalMarketValueMax] = 1.2; // (optional)
BigDecimal *filter[totalMarketValueMin] = 1.2; // (optional)
Boolean *filter[unmatched] = true; // (optional)
AccountApi *apiInstance = [[AccountApi alloc] init];
[apiInstance getAccountsWith:accept
authorization:authorization
include:include
filter[accountIdentifier]:filter[accountIdentifier]
filter[accountManagementType]:filter[accountManagementType]
filter[accountNumber]:filter[accountNumber]
filter[accountStatus]:filter[accountStatus]
filter[accountType]:filter[accountType]
filter[custodian]:filter[custodian]
filter[displayName]:filter[displayName]
filter[firmId]:filter[firmId]
filter[latestBalanceDate]:filter[latestBalanceDate]
filter[latestBalanceDateMax]:filter[latestBalanceDateMax]
filter[latestBalanceDateMin]:filter[latestBalanceDateMin]
filter[totalMarketValue]:filter[totalMarketValue]
filter[totalMarketValueMax]:filter[totalMarketValueMax]
filter[totalMarketValueMin]:filter[totalMarketValueMin]
filter[unmatched]:filter[unmatched]
completionHandler: ^(Accounts output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var M76Api = require('m76_api');
var api = new M76Api.AccountApi()
var accept = accept_example; // {{String}}
var authorization = authorization_example; // {{String}}
var opts = {
'include': include_example, // {{String}} Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
'filter[accountIdentifier]': filter[accountIdentifier]_example, // {{String}}
'filter[accountManagementType]': filter[accountManagementType]_example, // {{String}}
'filter[accountNumber]': filter[accountNumber]_example, // {{String}}
'filter[accountStatus]': filter[accountStatus]_example, // {{String}}
'filter[accountType]': filter[accountType]_example, // {{String}}
'filter[custodian]': filter[custodian]_example, // {{String}}
'filter[displayName]': filter[displayName]_example, // {{String}} Search by name/identifier.
'filter[firmId]': filter[firmId]_example, // {{String}}
'filter[latestBalanceDate]': filter[latestBalanceDate]_example, // {{String}}
'filter[latestBalanceDateMax]': filter[latestBalanceDateMax]_example, // {{String}}
'filter[latestBalanceDateMin]': filter[latestBalanceDateMin]_example, // {{String}}
'filter[totalMarketValue]': 1.2, // {{BigDecimal}}
'filter[totalMarketValueMax]': 1.2, // {{BigDecimal}}
'filter[totalMarketValueMin]': 1.2, // {{BigDecimal}}
'filter[unmatched]': true // {{Boolean}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAccounts(accept, authorization, opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAccountsExample
{
public void main()
{
var apiInstance = new AccountApi();
var accept = accept_example; // String |
var authorization = authorization_example; // String |
var include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional)
var filter[accountIdentifier] = filter[accountIdentifier]_example; // String | (optional)
var filter[accountManagementType] = filter[accountManagementType]_example; // String | (optional)
var filter[accountNumber] = filter[accountNumber]_example; // String | (optional)
var filter[accountStatus] = filter[accountStatus]_example; // String | (optional)
var filter[accountType] = filter[accountType]_example; // String | (optional)
var filter[custodian] = filter[custodian]_example; // String | (optional)
var filter[displayName] = filter[displayName]_example; // String | Search by name/identifier. (optional)
var filter[firmId] = filter[firmId]_example; // String | (optional)
var filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String | (optional)
var filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String | (optional)
var filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String | (optional)
var filter[totalMarketValue] = 1.2; // BigDecimal | (optional)
var filter[totalMarketValueMax] = 1.2; // BigDecimal | (optional)
var filter[totalMarketValueMin] = 1.2; // BigDecimal | (optional)
var filter[unmatched] = true; // Boolean | (optional)
try
{
Accounts result = apiInstance.getAccounts(accept, authorization, include, filter[accountIdentifier], filter[accountManagementType], filter[accountNumber], filter[accountStatus], filter[accountType], filter[custodian], filter[displayName], filter[firmId], filter[latestBalanceDate], filter[latestBalanceDateMax], filter[latestBalanceDateMin], filter[totalMarketValue], filter[totalMarketValueMax], filter[totalMarketValueMin], filter[unmatched]);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccountApi.getAccounts: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccountApi();
$accept = accept_example; // String |
$authorization = authorization_example; // String |
$include = include_example; // String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
$filter[accountIdentifier] = filter[accountIdentifier]_example; // String |
$filter[accountManagementType] = filter[accountManagementType]_example; // String |
$filter[accountNumber] = filter[accountNumber]_example; // String |
$filter[accountStatus] = filter[accountStatus]_example; // String |
$filter[accountType] = filter[accountType]_example; // String |
$filter[custodian] = filter[custodian]_example; // String |
$filter[displayName] = filter[displayName]_example; // String | Search by name/identifier.
$filter[firmId] = filter[firmId]_example; // String |
$filter[latestBalanceDate] = filter[latestBalanceDate]_example; // String |
$filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; // String |
$filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; // String |
$filter[totalMarketValue] = 1.2; // BigDecimal |
$filter[totalMarketValueMax] = 1.2; // BigDecimal |
$filter[totalMarketValueMin] = 1.2; // BigDecimal |
$filter[unmatched] = true; // Boolean |
try {
$result = $api_instance->getAccounts($accept, $authorization, $include, $filter[accountIdentifier], $filter[accountManagementType], $filter[accountNumber], $filter[accountStatus], $filter[accountType], $filter[custodian], $filter[displayName], $filter[firmId], $filter[latestBalanceDate], $filter[latestBalanceDateMax], $filter[latestBalanceDateMin], $filter[totalMarketValue], $filter[totalMarketValueMax], $filter[totalMarketValueMin], $filter[unmatched]);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccountApi->getAccounts: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
my $api_instance = WWW::SwaggerClient::AccountApi->new();
my $accept = accept_example; # String |
my $authorization = authorization_example; # String |
my $include = include_example; # String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail.
my $filter[accountIdentifier] = filter[accountIdentifier]_example; # String |
my $filter[accountManagementType] = filter[accountManagementType]_example; # String |
my $filter[accountNumber] = filter[accountNumber]_example; # String |
my $filter[accountStatus] = filter[accountStatus]_example; # String |
my $filter[accountType] = filter[accountType]_example; # String |
my $filter[custodian] = filter[custodian]_example; # String |
my $filter[displayName] = filter[displayName]_example; # String | Search by name/identifier.
my $filter[firmId] = filter[firmId]_example; # String |
my $filter[latestBalanceDate] = filter[latestBalanceDate]_example; # String |
my $filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example; # String |
my $filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example; # String |
my $filter[totalMarketValue] = 1.2; # BigDecimal |
my $filter[totalMarketValueMax] = 1.2; # BigDecimal |
my $filter[totalMarketValueMin] = 1.2; # BigDecimal |
my $filter[unmatched] = true; # Boolean |
eval {
my $result = $api_instance->getAccounts(accept => $accept, authorization => $authorization, include => $include, filter[accountIdentifier] => $filter[accountIdentifier], filter[accountManagementType] => $filter[accountManagementType], filter[accountNumber] => $filter[accountNumber], filter[accountStatus] => $filter[accountStatus], filter[accountType] => $filter[accountType], filter[custodian] => $filter[custodian], filter[displayName] => $filter[displayName], filter[firmId] => $filter[firmId], filter[latestBalanceDate] => $filter[latestBalanceDate], filter[latestBalanceDateMax] => $filter[latestBalanceDateMax], filter[latestBalanceDateMin] => $filter[latestBalanceDateMin], filter[totalMarketValue] => $filter[totalMarketValue], filter[totalMarketValueMax] => $filter[totalMarketValueMax], filter[totalMarketValueMin] => $filter[totalMarketValueMin], filter[unmatched] => $filter[unmatched]);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccountApi->getAccounts: $@\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.AccountApi()
accept = accept_example # String |
authorization = authorization_example # String |
include = include_example # String | Include associations in requests. Allows comma-separated list of: contacts, groups, performance_history, positions, rep_codes, transactions, latest_performance_history, performance_detail. (optional)
filter[accountIdentifier] = filter[accountIdentifier]_example # String | (optional)
filter[accountManagementType] = filter[accountManagementType]_example # String | (optional)
filter[accountNumber] = filter[accountNumber]_example # String | (optional)
filter[accountStatus] = filter[accountStatus]_example # String | (optional)
filter[accountType] = filter[accountType]_example # String | (optional)
filter[custodian] = filter[custodian]_example # String | (optional)
filter[displayName] = filter[displayName]_example # String | Search by name/identifier. (optional)
filter[firmId] = filter[firmId]_example # String | (optional)
filter[latestBalanceDate] = filter[latestBalanceDate]_example # String | (optional)
filter[latestBalanceDateMax] = filter[latestBalanceDateMax]_example # String | (optional)
filter[latestBalanceDateMin] = filter[latestBalanceDateMin]_example # String | (optional)
filter[totalMarketValue] = 1.2 # BigDecimal | (optional)
filter[totalMarketValueMax] = 1.2 # BigDecimal | (optional)
filter[totalMarketValueMin] = 1.2 # BigDecimal | (optional)
filter[unmatched] = true # Boolean | (optional)
try:
api_response = api_instance.get_accounts(accept, authorization, include=include, filter[accountIdentifier]=filter[accountIdentifier], filter[accountManagementType]=filter[accountManagementType], filter[accountNumber]=filter[accountNumber], filter[accountStatus]=filter[accountStatus], filter[accountType]=filter[accountType], filter[custodian]=filter[custodian], filter[displayName]=filter[displayName], filter[firmId]=filter[firmId], filter[latestBalanceDate]=filter[latestBalanceDate], filter[latestBalanceDateMax]=filter[latestBalanceDateMax], filter[latestBalanceDateMin]=filter[latestBalanceDateMin], filter[totalMarketValue]=filter[totalMarketValue], filter[totalMarketValueMax]=filter[totalMarketValueMax], filter[totalMarketValueMin]=filter[totalMarketValueMin], filter[unmatched]=filter[unmatched])
pprint(api_response)
except ApiException as e:
print("Exception when calling AccountApi->getAccounts: %s\n" % e)