CreateSubscriptionOrders

Inputs (Array[] SubscriptionOrder) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
AccountGuid Id of account where the order should be created True 2.10
CashCurrencyCodestring ISO 4217 code (SEK, EUR) True 2.10
InstrumentGuid Id of instrument for the order True 2.10
OrderNostringNot used as an input. The created order will receive an order number that is returned in the output.

 LimitPricedecimalLimitprice for the order, must be > 0 if used
 2.10
 LastPaymentDateDateTimeLast date for payment 
 2.10
ExecutionInterfaceSettingKeystringKey for ExecutionInterfaceSetting (ex Manual, Internal)True2.10 Not mandatory after release January 2023
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, must be greater then 0 if IsUnitOrder=false
2.10
InstrumentAmountdecimalInstrument amount of order, must be greater then 0 if IsUnitOrder=true
2.10
CommissionAmountdecimalCommission amount of order
Obsolete from 2.21.1
OverrideCommissionAmountboolIf default Commission amount should be set on trade order, default set to false.
Obsolete from 2.21.1
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 (External Account)

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
OrderFeeCategoriesCreateOrderFeeCategory[]

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
ExternalAccountDataExternalAccountDataData object for SubscriptionOrders that will be financed by Autogiro deposits
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# - Create Subscription Orders in a BFS instance
 public static void CreateSubscriptionOrders()
        {
            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.CreateSubscriptionOrderRequest()
            {

                Credentials = new bfsapi.Credentials
                {
                    UserName = "apiuser",
                    Password = "apiuser"
                },
                identify = "adfadfasdf"
            };
            
            req.Entities = new bfsapi.SubscriptionOrder[]
            {
                new bfsapi.SubscriptionOrder
                {
                    Account = new Guid("feb20b2e-e6df-4add-abd9-e9281f792600"),
                    CashCurrencyCode = "SEK",
                    Instrument = new Guid("b87ebb9d-47f9-41cd-aa43-8401a548fba8"),
                    CashAmount = 100M,
                    ExecutionInterfaceSettingKey = "Manual",
                    IsUnitOrder = false,
                    LastPaymentDate = new DateTime(2016,4,10,0,0,0,DateTimeKind.Utc),
                    ReserveAssets = true


                },
            };

            var res = target.CreateSubscriptionOrders(req);


        }


Blog stream

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

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