Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Filter inputs

Name
Type
Description
MandatoryAvailable from version
BrickIdsGuid[]

Filter by array of BrickIds. BrickId is the internal id of a trade order.



StatesString[]Filter by array of states. A subscription order has the following states:
  • Created
  • Done
  • Cancelled


OrderNosString[]Filter by array of OrderNos

Response rows (Array)

Name
Type
Description
Available from version
BrickIdGuid

The BrickId of the trade order


CreatedDateDateTimeThe date when the subscription order was created
LimitPriceDecimalThe limit price of the subscription order
OverrideCommissionAmountBoolTrue if the default commission amount should be overriden
CommissionAmountDecimalIf the OverrideCommissionAmount is true this value must be provided
CashAmountDecimalThe amount in cash
InstrumentAmountDecimalThe amount in units
OrderNoStringThe order number of the trade order
OrderTypeKeyStringThe type of the order
InstrumentIdGuidThe associated Instrument brickid
CashIdGuidThe associated Cash brickid
AccountIdGuidThe associated AccountID brickid
IsUnitOrderBoolTrue if the order is traded in units
ExecutionInterfaceIdGuidThe BrickId of the execution interface
StateString

The current state of the subscription order. A subscription order has the following states:

  • Created
  • Done
  • Cancelled

LastPaymentDateDateTimeThe last payment date for the subscription
LegalEntityIdGuidThe associated LegalEntity brickid
IsDVPBoolIf the settlement process is DVP or not
TransferReceiverIdGuidThe associated TransferReceiver brickid
DisplayPercentagePriceBool

If price is in persentage of MinimumLotSize




XML request example
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <GetSubscriptionOrders xmlns="http://tempuri.org/">
      <req>
        <Credentials>
          <UserName>yourusername</UserName>
          <Password>yourpassword</Password>
        </Credentials>
        <identify>youridentifier</identify>
        <Args>
          <OrderNos>
            <string>2508</string>
          </OrderNos>
        </Args>
        <Fields>
          <BrickId>true</BrickId>
          <CreatedDate>true</CreatedDate>
          <LimitPrice>true</LimitPrice>
          <OverrideCommissionAmount>true</OverrideCommissionAmount>
          <CommissionAmount>true</CommissionAmount>
          <CashAmount>true</CashAmount>
          <InstrumentAmount>true</InstrumentAmount>
          <OrderNo>true</OrderNo>
          <OrderTypeKey>true</OrderTypeKey>
          <InstrumentId>true</InstrumentId>
          <CashId>true</CashId>
          <AccountId>true</AccountId>
          <IsUnitOrder>true</IsUnitOrder>
          <ExecutionInterfaceId>true</ExecutionInterfaceId>
          <State>true</State>
          <LastPaymentDate>true</LastPaymentDate>
          <LegalEntityId>true</LegalEntityId>
          <IsDVP>true</IsDVP>
          <TransferReceiverId>true</TransferReceiverId>
        </Fields>
      </req>
    </GetSubscriptionOrders>
  </s:Body>
</s:Envelope>

Code examples


Get subscription order by order no
 var client = new bfsapiSoapClient();

var request = new GetSubscriptionOrderRequest
{
	identify = bfsidentifier,
	Credentials = new Credentials
	{
		UserName = bfsudername,
		Password = bfspassword,
	},
	Args = new GetSubscriptionOrderArgs
	{
		OrderNos = new[] {"1234"}
	},
	Fields = new GetSubscriptionOrderFields
	{
		AccountId = true,
		ExecutionInterfaceId = true,
		BrickId = true,
		CashAmount = true,
		CashId = true,
		CommissionAmount = true,
		InstrumentAmount = true,
		InstrumentId = true,
		IsUnitOrder = true,
		LastPaymentDate = true,
		LimitPrice = true,
		OrderNo = true,
		OrderTypeKey = true,
		OverrideCommissionAmount = true,
		State = true,
		CreatedDate = true,
		LegalEntityId = true,
		IsDVP = true,
		TransferReceiverId = true
	}
};

var response = client.GetSubscriptionOrders(request);



  • No labels