All URIs are relative to https://www.lusid.com/api
Method | HTTP request | Description |
---|---|---|
createSequence | POST /api/sequences/{scope} | [EARLY ACCESS] CreateSequence: Create a new sequence |
getSequence | GET /api/sequences/{scope}/{code} | [EARLY ACCESS] GetSequence: Get a specified sequence |
listSequences | GET /api/sequences | [EARLY ACCESS] ListSequences: List Sequences |
next | GET /api/sequences/{scope}/{code}/next | [EARLY ACCESS] Next: Get next values from sequence |
SequenceDefinition createSequence(scope, createSequenceRequest)
[EARLY ACCESS] CreateSequence: Create a new sequence
Create a new sequence
import com.finbourne.lusid.model.*;
import com.finbourne.lusid.api.SequencesApi;
import com.finbourne.lusid.extensions.ApiConfigurationException;
import com.finbourne.lusid.extensions.ApiFactoryBuilder;
import com.finbourne.lusid.extensions.auth.FinbourneTokenException;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
public class SequencesApiExample {
public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException, ApiConfigurationException, FinbourneTokenException {
String fileName = "secrets.json";
try(PrintWriter writer = new PrintWriter(fileName, "UTF-8")) {
writer.write("{" +
"\"api\": {" +
" \"tokenUrl\": \"<your-token-url>\"," +
" \"lusidUrl\": \"https://<your-domain>.lusid.com/api\"," +
" \"username\": \"<your-username>\"," +
" \"password\": \"<your-password>\"," +
" \"clientId\": \"<your-client-id>\"," +
" \"clientSecret\": \"<your-client-secret>\"" +
" }" +
"}");
}
// uncomment the below to use configuration overrides
// ConfigurationOptions opts = new ConfigurationOptions();
// opts.setTotalTimeoutMs(2000);
// uncomment the below to use an api factory with overrides
// ApiFactory apiFactory = ApiFactoryBuilder.build(fileName, opts);
// SequencesApi apiInstance = apiFactory.build(SequencesApi.class);
SequencesApi apiInstance = ApiFactoryBuilder.build(fileName).build(SequencesApi.class);
String scope = "scope_example"; // String | Scope of the sequence.
CreateSequenceRequest createSequenceRequest = new CreateSequenceRequest(); // CreateSequenceRequest | Request to create sequence
try {
// uncomment the below to set overrides at the request level
// SequenceDefinition result = apiInstance.createSequence(scope, createSequenceRequest).execute(opts);
SequenceDefinition result = apiInstance.createSequence(scope, createSequenceRequest).execute();
System.out.println(result.toJson());
} catch (ApiException e) {
System.err.println("Exception when calling SequencesApi#createSequence");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scope | String | Scope of the sequence. | |
createSequenceRequest | CreateSequenceRequest | Request to create sequence |
- Content-Type: application/json-patch+json, application/json, text/json, application/*+json
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
201 | The newly created Sequence | - |
400 | The details of the input related failure | - |
0 | Error response | - |
Back to top • Back to API list • Back to Model list • Back to README
SequenceDefinition getSequence(scope, code)
[EARLY ACCESS] GetSequence: Get a specified sequence
Return the details of a specified sequence
import com.finbourne.lusid.model.*;
import com.finbourne.lusid.api.SequencesApi;
import com.finbourne.lusid.extensions.ApiConfigurationException;
import com.finbourne.lusid.extensions.ApiFactoryBuilder;
import com.finbourne.lusid.extensions.auth.FinbourneTokenException;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
public class SequencesApiExample {
public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException, ApiConfigurationException, FinbourneTokenException {
String fileName = "secrets.json";
try(PrintWriter writer = new PrintWriter(fileName, "UTF-8")) {
writer.write("{" +
"\"api\": {" +
" \"tokenUrl\": \"<your-token-url>\"," +
" \"lusidUrl\": \"https://<your-domain>.lusid.com/api\"," +
" \"username\": \"<your-username>\"," +
" \"password\": \"<your-password>\"," +
" \"clientId\": \"<your-client-id>\"," +
" \"clientSecret\": \"<your-client-secret>\"" +
" }" +
"}");
}
// uncomment the below to use configuration overrides
// ConfigurationOptions opts = new ConfigurationOptions();
// opts.setTotalTimeoutMs(2000);
// uncomment the below to use an api factory with overrides
// ApiFactory apiFactory = ApiFactoryBuilder.build(fileName, opts);
// SequencesApi apiInstance = apiFactory.build(SequencesApi.class);
SequencesApi apiInstance = ApiFactoryBuilder.build(fileName).build(SequencesApi.class);
String scope = "scope_example"; // String | Scope of the sequence.
String code = "code_example"; // String | Code of the sequence. This together with stated scope uniquely identifies the sequence.
try {
// uncomment the below to set overrides at the request level
// SequenceDefinition result = apiInstance.getSequence(scope, code).execute(opts);
SequenceDefinition result = apiInstance.getSequence(scope, code).execute();
System.out.println(result.toJson());
} catch (ApiException e) {
System.err.println("Exception when calling SequencesApi#getSequence");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scope | String | Scope of the sequence. | |
code | String | Code of the sequence. This together with stated scope uniquely identifies the sequence. |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | The requested sequence | - |
400 | The details of the input related failure | - |
0 | Error response | - |
Back to top • Back to API list • Back to Model list • Back to README
PagedResourceListOfSequenceDefinition listSequences(page, limit, filter)
[EARLY ACCESS] ListSequences: List Sequences
List sequences which satisfies filtering criteria.
import com.finbourne.lusid.model.*;
import com.finbourne.lusid.api.SequencesApi;
import com.finbourne.lusid.extensions.ApiConfigurationException;
import com.finbourne.lusid.extensions.ApiFactoryBuilder;
import com.finbourne.lusid.extensions.auth.FinbourneTokenException;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
public class SequencesApiExample {
public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException, ApiConfigurationException, FinbourneTokenException {
String fileName = "secrets.json";
try(PrintWriter writer = new PrintWriter(fileName, "UTF-8")) {
writer.write("{" +
"\"api\": {" +
" \"tokenUrl\": \"<your-token-url>\"," +
" \"lusidUrl\": \"https://<your-domain>.lusid.com/api\"," +
" \"username\": \"<your-username>\"," +
" \"password\": \"<your-password>\"," +
" \"clientId\": \"<your-client-id>\"," +
" \"clientSecret\": \"<your-client-secret>\"" +
" }" +
"}");
}
// uncomment the below to use configuration overrides
// ConfigurationOptions opts = new ConfigurationOptions();
// opts.setTotalTimeoutMs(2000);
// uncomment the below to use an api factory with overrides
// ApiFactory apiFactory = ApiFactoryBuilder.build(fileName, opts);
// SequencesApi apiInstance = apiFactory.build(SequencesApi.class);
SequencesApi apiInstance = ApiFactoryBuilder.build(fileName).build(SequencesApi.class);
String page = "page_example"; // String | The pagination token to use to continue listing sequences from a previous call to list sequences. This value is returned from the previous call.
Integer limit = 56; // Integer | When paginating, limit the number of returned results to this many. Defaults to 500 if not specified.
String filter = "filter_example"; // String | Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid.
try {
// uncomment the below to set overrides at the request level
// PagedResourceListOfSequenceDefinition result = apiInstance.listSequences(page, limit, filter).execute(opts);
PagedResourceListOfSequenceDefinition result = apiInstance.listSequences(page, limit, filter).execute();
System.out.println(result.toJson());
} catch (ApiException e) {
System.err.println("Exception when calling SequencesApi#listSequences");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
page | String | The pagination token to use to continue listing sequences from a previous call to list sequences. This value is returned from the previous call. | [optional] |
limit | Integer | When paginating, limit the number of returned results to this many. Defaults to 500 if not specified. | [optional] |
filter | String | Expression to filter the result set. Read more about filtering results from LUSID here https://support.lusid.com/filtering-results-from-lusid. | [optional] |
PagedResourceListOfSequenceDefinition
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | The sequences matching filtering criteria | - |
400 | The details of the input related failure | - |
0 | Error response | - |
Back to top • Back to API list • Back to Model list • Back to README
NextValueInSequenceResponse next(scope, code, batch)
[EARLY ACCESS] Next: Get next values from sequence
Get the next set of values from a specified sequence
import com.finbourne.lusid.model.*;
import com.finbourne.lusid.api.SequencesApi;
import com.finbourne.lusid.extensions.ApiConfigurationException;
import com.finbourne.lusid.extensions.ApiFactoryBuilder;
import com.finbourne.lusid.extensions.auth.FinbourneTokenException;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
public class SequencesApiExample {
public static void main(String[] args) throws FileNotFoundException, UnsupportedEncodingException, ApiConfigurationException, FinbourneTokenException {
String fileName = "secrets.json";
try(PrintWriter writer = new PrintWriter(fileName, "UTF-8")) {
writer.write("{" +
"\"api\": {" +
" \"tokenUrl\": \"<your-token-url>\"," +
" \"lusidUrl\": \"https://<your-domain>.lusid.com/api\"," +
" \"username\": \"<your-username>\"," +
" \"password\": \"<your-password>\"," +
" \"clientId\": \"<your-client-id>\"," +
" \"clientSecret\": \"<your-client-secret>\"" +
" }" +
"}");
}
// uncomment the below to use configuration overrides
// ConfigurationOptions opts = new ConfigurationOptions();
// opts.setTotalTimeoutMs(2000);
// uncomment the below to use an api factory with overrides
// ApiFactory apiFactory = ApiFactoryBuilder.build(fileName, opts);
// SequencesApi apiInstance = apiFactory.build(SequencesApi.class);
SequencesApi apiInstance = ApiFactoryBuilder.build(fileName).build(SequencesApi.class);
String scope = "scope_example"; // String | Scope of the sequence.
String code = "code_example"; // String | Code of the sequence. This together with stated scope uniquely identifies the sequence.
Integer batch = 56; // Integer | Number of sequences items to return for the specified sequence. Default to 1 if not specified.
try {
// uncomment the below to set overrides at the request level
// NextValueInSequenceResponse result = apiInstance.next(scope, code, batch).execute(opts);
NextValueInSequenceResponse result = apiInstance.next(scope, code, batch).execute();
System.out.println(result.toJson());
} catch (ApiException e) {
System.err.println("Exception when calling SequencesApi#next");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
scope | String | Scope of the sequence. | |
code | String | Code of the sequence. This together with stated scope uniquely identifies the sequence. | |
batch | Integer | Number of sequences items to return for the specified sequence. Default to 1 if not specified. | [optional] |
- Content-Type: Not defined
- Accept: text/plain, application/json, text/json
Status code | Description | Response headers |
---|---|---|
200 | The response containing next available values in specified sequence. | - |
400 | The details of the input related failure | - |
0 | Error response | - |
Back to top • Back to API list • Back to Model list • Back to README