UpdateSubscriptionOrders

Inputs (Array[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
BrickIdGuidThis is the unique id of the order that should be updatedTrue2.10
AccountGuid Id of account where the order should be created
 2.10
CashCurrencyCodestring ISO 4217 code (SEK, EUR)
 2.10
InstrumentGuid Id of instrument for the order
 2.10
LimitPricedecimalLimitprice for the order, must be > 0 if used
 2.10
LastPaymentDateDateTimeLast date for payment 
 2.10
ExecutionInterfaceSettingKeystringKey for ExecutionInterfaceSetting (ex Manual, Internal)
2.10
IsUnitOrderboolDefines if order is UnitOrder. Defaults to false if not set.
2.10
ReserveAssetsboolIf assets should be reserved. Defaults to true if not set
2.10
CashAmountdecimalCash amount of order
2.10
InstrumentAmountdecimalInstrument amount of order
2.10
CommissionAmountdecimalCommission amount of order
2.10
OverrideCommissionAmountboolIf default Commission amount should be overridden
2.10
CustomFieldsCustomField[]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
TransferReceiverGuidTransferReceiver of order

ExternalReferencestringExternalReference of order

IsDVPboolPropterty to set if order is DVP

ExpectedTradeDateDateTimeExpected Trade date for order
2.13
ExpectedSettlementDateDateTimeExpected Settlement date for order
2.13
CommentstringComment on order
2.14
OrderFeeCategoriesOrderFeeCategory[]

Array of OrderFeeCategories. Each OrderFeeCategory consists of Amount and Key.

OrderFee with the key must be connected to the Instrument. Additional information: OrderFeeCategories


2.21.1
ResellerGuidReseller of the order
2.22
TransferReceiverForCollectingFinancingGuidTransferReceiver from which to collect cash
2.34
AutoGiroPaymentMetodint

Determines the recurrance of the order.

0=One time

1=Month

2=Qurter

3=Half year

4=Year


2.34
BusinessDateDateTimeDate for when the ordertemplate starts
2.34
DecisionMakerWithinFirmGuidRS property. The person within the investment firm who is responsible for the investment decision. Also called Investment decision within firm. Read more in our KB: TRS Manager
2.34

Outputs

NameTypeDescriptionAvailable from version
EntitiesArrayAll subscription orders in the request is returned along with each subscription orders BrickId, and array of Errors per subscription order

Code examples

C# - Update Subscription Orders in a BFS instance
 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);


        }


Blog stream

Create a blog post to share news and announcements with your team and company.

Related pages

Terms of License
Change Policy
© 2009 - 2024 Huddlestock Technologies AB All rights reserved