Skip to content

Commit

Permalink
Updates for v2.0.448
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Feb 1, 2024
1 parent b22b536 commit 6d3d0e4
Show file tree
Hide file tree
Showing 17 changed files with 3,300 additions and 25 deletions.
1,336 changes: 1,321 additions & 15 deletions sdk/api/openapi.yaml

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions sdk/docs/BlockAndOrder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@


# BlockAndOrder


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**block** | [**Block**](Block.md) | | |
|**order** | [**Order**](Order.md) | | |



13 changes: 13 additions & 0 deletions sdk/docs/BlockAndOrderCreateRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# BlockAndOrderCreateRequest


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**requests** | [**List<BlockAndOrderRequest>**](BlockAndOrderRequest.md) | A collection of BlockAndOrderRequest. | |



30 changes: 30 additions & 0 deletions sdk/docs/BlockAndOrderRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@


# BlockAndOrderRequest


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**blockId** | [**ResourceId**](ResourceId.md) | | |
|**orderId** | [**ResourceId**](ResourceId.md) | | |
|**orderProperties** | [**Map<String, PerpetualProperty>**](PerpetualProperty.md) | Client-defined properties associated with this order. | [optional] |
|**blockProperties** | [**Map<String, PerpetualProperty>**](PerpetualProperty.md) | Client-defined properties associated with this block. | [optional] |
|**instrumentIdentifiers** | **Map<String, String>** | The instrument ordered. | |
|**quantity** | **java.math.BigDecimal** | The quantity of given instrument ordered. | |
|**side** | **String** | The client's representation of the order's side (buy, sell, short, etc) | |
|**orderBookId** | [**ResourceId**](ResourceId.md) | | [optional] |
|**portfolioId** | [**ResourceId**](ResourceId.md) | | [optional] |
|**state** | **String** | The order's state (examples: New, PartiallyFilled, ...) | [optional] |
|**type** | **String** | The order's type (examples: Limit, Market, ...) | [optional] |
|**timeInForce** | **String** | The order's time in force (examples: Day, GoodTilCancel, ...) | [optional] |
|**date** | **OffsetDateTime** | The date on which the order was made | [optional] |
|**price** | [**CurrencyAndAmount**](CurrencyAndAmount.md) | | [optional] |
|**limitPrice** | [**CurrencyAndAmount**](CurrencyAndAmount.md) | | [optional] |
|**stopPrice** | [**CurrencyAndAmount**](CurrencyAndAmount.md) | | [optional] |
|**orderInstruction** | [**ResourceId**](ResourceId.md) | | [optional] |
|**_package** | [**ResourceId**](ResourceId.md) | | [optional] |



71 changes: 71 additions & 0 deletions sdk/docs/OrderManagementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All URIs are relative to *https://www.lusid.com/api*
| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**bookTransactions**](OrderManagementApi.md#bookTransactions) | **POST** /api/ordermanagement/booktransactions | [EXPERIMENTAL] BookTransactions: Books transactions using specific allocations as a source. |
| [**createOrders**](OrderManagementApi.md#createOrders) | **POST** /api/ordermanagement/createorders | [EARLY ACCESS] CreateOrders: Create Block and Order pairs |
| [**placeBlocks**](OrderManagementApi.md#placeBlocks) | **POST** /api/ordermanagement/placeblocks | [EARLY ACCESS] PlaceBlocks: Places blocks for a given list of placement requests. |
| [**runAllocationService**](OrderManagementApi.md#runAllocationService) | **POST** /api/ordermanagement/allocate | [EXPERIMENTAL] RunAllocationService: Runs the Allocation Service |

Expand Down Expand Up @@ -82,6 +83,76 @@ public class Example {
| **400** | The details of the input related failure | - |
| **0** | Error response | - |

<a id="createOrders"></a>
# **createOrders**
> ResourceListOfBlockAndOrder createOrders(blockAndOrderCreateRequest).execute();
[EARLY ACCESS] CreateOrders: Create Block and Order pairs

Create new block and order pairs.

### Example
```java
// Import classes:
import com.finbourne.lusid.ApiClient;
import com.finbourne.lusid.ApiException;
import com.finbourne.lusid.Configuration;
import com.finbourne.lusid.auth.*;
import com.finbourne.lusid.models.*;
import com.finbourne.lusid.api.OrderManagementApi;

public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://www.lusid.com/api");

// Configure OAuth2 access token for authorization: oauth2
OAuth oauth2 = (OAuth) defaultClient.getAuthentication("oauth2");
oauth2.setAccessToken("YOUR ACCESS TOKEN");

OrderManagementApi apiInstance = new OrderManagementApi(defaultClient);
BlockAndOrderCreateRequest blockAndOrderCreateRequest = new BlockAndOrderCreateRequest(); // BlockAndOrderCreateRequest | The collection of block and order requests.
try {
ResourceListOfBlockAndOrder result = apiInstance.createOrders(blockAndOrderCreateRequest)
.execute();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling OrderManagementApi#createOrders");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
```

### Parameters

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **blockAndOrderCreateRequest** | [**BlockAndOrderCreateRequest**](BlockAndOrderCreateRequest.md)| The collection of block and order requests. | |

### Return type

[**ResourceListOfBlockAndOrder**](ResourceListOfBlockAndOrder.md)

### Authorization

[oauth2](../README.md#oauth2)

### HTTP request headers

- **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json
- **Accept**: text/plain, application/json, text/json

### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **201** | A collection of block and order pairs. | - |
| **400** | The details of the input related failure | - |
| **0** | Error response | - |

<a id="placeBlocks"></a>
# **placeBlocks**
> ResourceListOfPlacement placeBlocks().placeBlocksRequest(placeBlocksRequest).execute();
Expand Down
3 changes: 2 additions & 1 deletion sdk/docs/PostingModuleRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ A Posting rule
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**ruleId** | **String** | The identifier for the Posting Rule. | |
|**account** | **String** | The account to post the Activity credit or debit to. | |
|**account** | **String** | The general ledger account to post the Activity credit or debit to. | [optional] |
|**ruleFilter** | **String** | The filter syntax for the Posting Rule. See https://support.lusid.com/knowledgebase/article/KA-02140 for more information on filter syntax. | |
|**generalLedgerAccountCode** | **String** | The general ledger account to post the Activity credit or debit to. | [optional] |



17 changes: 17 additions & 0 deletions sdk/docs/ResourceListOfBlockAndOrder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


# ResourceListOfBlockAndOrder


## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**values** | [**List&lt;BlockAndOrder&gt;**](BlockAndOrder.md) | | |
|**href** | **URI** | | [optional] |
|**links** | [**List&lt;Link&gt;**](Link.md) | | [optional] |
|**nextPage** | **String** | | [optional] |
|**previousPage** | **String** | | [optional] |



2 changes: 1 addition & 1 deletion sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>lusid-sdk</artifactId>
<packaging>jar</packaging>
<name>lusid-sdk</name>
<version>2.0.447</version>
<version>2.0.448</version>
<url>https://github.com/finbourne/lusid-sdk-java</url>
<description>lusid</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/finbourne/lusid/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2.0.447/java");
setUserAgent("OpenAPI-Generator/2.0.448/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/main/java/com/finbourne/lusid/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "2.0.447";
public static final String VERSION = "2.0.448";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
4 changes: 4 additions & 0 deletions sdk/src/main/java/com/finbourne/lusid/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,9 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BatchUpsertPortfolioTransactionsResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BatchUpsertPropertyDefinitionPropertiesResponse.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Block.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BlockAndOrder.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BlockAndOrderCreateRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BlockAndOrderRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BlockRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.BlockSetRequest.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.Bond.CustomTypeAdapterFactory());
Expand Down Expand Up @@ -2254,6 +2257,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfAggregationQuery.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfAllocation.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfBlock.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfBlockAndOrder.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfCalendarDate.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfChange.CustomTypeAdapterFactory());
gsonBuilder.registerTypeAdapterFactory(new com.finbourne.lusid.model.ResourceListOfChangeHistory.CustomTypeAdapterFactory());
Expand Down
Loading

0 comments on commit 6d3d0e4

Please sign in to comment.