CreateTradeBuyOrdersFromAutogiro

CreateTradeBuyOrdersFromAutogiro

Inputs (Array[] TradeBuyOrderFromAutogiro) inherits from EntityBase

Name

Type

Description

Mandatory

Comment

Available from version

Account

Guid

Id of Account for the order

True

 

 

CashAmount

decimal

Amount in SEK for the order

True

 

 

TransferReceiver

Guid

The TransferReceiver(Admission) for the order

 

 

 

AutoGiroPaymentPeriod

int

Determines the recurrance of the order.

0=One time

1=Month

2=Qurter

3=Half year

4=Year

True

 

 

BusinessDate

DateTime

Date for when the ordertemplate starts

True if 0 is used as AutoGiroPaymentPeriod

 

 

Comment

String

Comment on the order

False

 

 

Instrument

Guid

If specified, an order for the instrument will be created

when the autogiropayment is executed.

False

 

 

Day

int

Day in month the businessdate for the order will be changed to.

True if 1-4 is used as AutoGiroPaymentPeriod

 

 

ExecutionInterfaceKey

Enum

ExecutionInterfaceKey that should be used when TradeOrder is created

 

 

 

LimitPrice

decimal

LimitPrice for UnitOrders

 

 

 

 

Guid[]

DecisionMakers for TradeOrder

 

 

 

DecisionMakerWithinFirm

Guid

DecisionMakerWithinFirm for TradeOrder

 

 

 

Month

int

Month for when the ordertemplate starts

rue if 1-4 is used as AutoGiroPaymentPeriod

 

2.34

Response rows

Name

Type

Description

Available from version

Name

Type

Description

Available from version

Entities

Array

All TradeBuyOrderFromAutogiro in the request is returned along with each TradeBuyOrderFromAutogiro BrickId, and array of Errors per TradeBuyOrderFromAutogiro

 

Code examples

public static void CreateTradeBuyOrdersFromAutogiroR() { 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.CreateTradeBuyOrdersFromAutogiroRequest() { Credentials = new bfsapi.Credentials { UserName = "username", Password = "password" }, identify = "identify", Entities = new TradeBuyOrderFromAutogiro[] { new TradeBuyOrderFromAutogiro { Amount = 1000M, AccountId = new Guid("76367cc6-d6e1-4845-b3a8-c631ef3cc89b"), IsUnitOrder = false, InstrumentId = new Guid("a8066b4e-cddd-49c0-aa73-f5c1f8dedfd3"), ExecutionInterfaceKey = ExecutionInterfaceKey.ExternalFund, LimitPrice = 10M, AutoGiroPaymentPeriod = 0, Comment = "", BusinessDate = DateTime.Today.AddDays(1), TransferReceiver = new Guid("a82306d3-a248-4bee-8d2e-d7562b6e520c"), Day = 22, DecisionMakerWithinFirm = Guid.NewGuid(), DecisionMakers = new []{Guid.NewGuid(), Guid.NewGuid() } }, new TradeBuyOrderFromAutogiro { Amount = 10M, AccountId = new Guid("76367cc6-d6e1-4845-b3a8-c631ef3cc89b"), IsUnitOrder = true, InstrumentId = new Guid("0cad156f-aa72-437a-8f07-c7efe4fd5140"), ExecutionInterfaceKey = ExecutionInterfaceKey.Internal, LimitPrice = 10M, AutoGiroPaymentPeriod = 0, Comment = "", BusinessDate = DateTime.Today.AddDays(1), TransferReceiver = new Guid("a82306d3-a248-4bee-8d2e-d7562b6e520c"), Day = 22, DecisionMakerWithinFirm = Guid.NewGuid(), DecisionMakers = new []{Guid.NewGuid(), Guid.NewGuid() } }, new TradeBuyOrderFromAutogiro { Amount = 10M, AccountId = new Guid("76367cc6-d6e1-4845-b3a8-c631ef3cc89b"), IsUnitOrder = true, InstrumentId = new Guid("35915153-e04a-4192-920c-983692983077"), ExecutionInterfaceKey = ExecutionInterfaceKey.Manual, LimitPrice = 10M, AutoGiroPaymentPeriod = 0, Comment = "", BusinessDate = DateTime.Today.AddDays(1), TransferReceiver = new Guid("a82306d3-a248-4bee-8d2e-d7562b6e520c"), Day = 22, DecisionMakerWithinFirm = Guid.NewGuid(), DecisionMakers = new []{Guid.NewGuid(), Guid.NewGuid() } }, } }; var resp = target.CreateTradeBuyOrdersFromAutogiro(req); }