Inputs (Array[]) inherits from EntityBase
Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
Account | Guid | Id of account where the order should be created | True | 2.10 |
CashCurrencyCode | string | ISO 4217 code (SEK, EUR) | True | 2.10 |
Instrument | Guid | Id of instrument for the order | True | 2.10 |
LimitPrice | decimal | Limitprice for the order, must be > 0 if used | 2.10 | |
LastPaymentDate | DateTime | Last date for payment | 2.10 | |
ExecutionInterfaceSettingKey | string | Key for ExecutionInterfaceSetting (ex Manual, Internal) | True | 2.10 |
IsUnitOrder | bool | Defines if order is UnitOrder. Defaults to false if not set. | 2.10 | |
ReserveAssets | bool | If assets should be reserved. Defaults to true if not set | 2.10 | |
CashAmount | decimal | Cash amount of order | 2.10 | |
InstrumentAmount | decimal | Instrument amount of order | 2.10 | |
CommissionAmount | decimal | Commission amount of order | 2.10 | |
OverrideCommissionAmount | bool | If default Commission amount should be overridden | 2.10 | |
CustomFields | CustomField[] | CustomFields is an array of CustomField objects. Each CustomField consists of two strings, FieldName and Value. There are no datatypes associated with these properties, they are just a way for api-users to add custimized data to the object. | 2.10 | |
TransferReceiver | Guid | TransferReceiver of order | ||
ExternalReference | string | ExternalReference of order | ||
IsDVP | bool | Propterty to set if order is DVP | ||
ExpectedTradeDate | DateTime | Expected Trade date for order | 2.13 | |
ExpectedSettlementDate | DateTime | Expected Settlement date for order | 2.13 |
Outputs
Name | Type | Description | Available from version |
---|---|---|---|
Entities | Array | All subscription orders in the request is returned along with each subscription orders BrickId, and array of Errors per subscription order |
Code examples
Code Block | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
public static void UpdateSubscriptionOrders() { var binding = new BasicHttpBinding(); binding.MaxReceivedMessageSize = Int32.MaxValue; var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx")); var req = new bfsapi.UpdateSubscriptionOrderRequest() { Credentials = new bfsapi.Credentials { UserName = "apiuser", Password = "apiuser" }, identify = "asdfasdfasdf" }; req.Entities = new bfsapi.UpdateSubscriptionOrder[] { new bfsapi.UpdateSubscriptionOrder { BrickId = new Guid("00b2b17c-50f0-4ae9-8a91-e1a99e7b8c36"), CashAmount = 123M, ExecutionInterfaceSettingKey = "Internal" }, }; req.Fields=new UpdateSubscriptionOrderFields { CashAmount = true, LimitPrice = true, ExecutionInterfaceSettingKey=true }; var res = target.UpdateSubscriptionOrders(req); } |
...