GetFundBatchOrders
FundBatchOrders is a legacy property that is used for batch orders with regards to the Execution Interface called MFEX. If a TradeOrder is created with Execution Interface set to MFEX and the TradeOrders are batched together for sending one order to MFEX a FundBatchOrder will be created. This method is available as of version 2.32.
GetFundBatchOrders only display a single TradeDate and SettlementDate. If you wish to see specific dates for both the cash and instrument leg of the transaction you can select underlying TradeOrders to view InstrumentTradeDate, CashTradeDate, InstrumentSettlementDate, and CashSettlementDate separately.
Filter inputs
Name | Type | Description | Mandatory | Available from version |
---|---|---|---|---|
BrickIds | Guid[] | Filter by array of BrickIds. BrickId is the internal id of an order | Â | Â |
States | String[] | Filter orders by states. To find a list with states use the back office GUI and navigate to System Data→Workflows and find the Key with the name FundBatchOrder |  |  |
Instruments | Guid[] | Filter by array of InstrumentIds. | Â | Â |
ExternalReferences | String[] | Filter by ExternalReferences | Â | Â |
OrderNos | String[] | Filter by order numbers | Â | Â |
ExecutionInterface | Guid[] | Filter by the BfsId of Execution Interface | Â | Â |
ExecutionInterfaceKey | String | Filter by Execution Interface key | Â | Â |
CreatedDateFrom | DateTime | When used, both from date and to date should be provided in the request | Â | Â |
CreatedDateTo | DateTime | Â | Â | |
IsPrePayed | Bool | This value is true if the order is of the type called pre-payed, meaning that cash for settlement is transferred before execution is done | Â | Â |
IsUnitOrder | Bool | This value is true if the order was placed in number of fund units as opposed to a cash value | Â | Â |
PaymentConfirmationDateFrom | DateTime | Filters the orders based on which date the confirmation of payment was recorded. When used, both from date and to date should be provided in the request. | Â | 2.32 |
PaymentConfirmationDateTo | DateTime | Â | 2.32 |
Response rows (Array) inherits from EntityBase
Name | Type | Description | Available from version |
---|---|---|---|
BrickId | Guid | The BrickId of the order | Â |
CashAmount | Decimal | The amount in cash | Â |
InstrumentAmount | Decimal | The amount in units | Â |
TradeOrderDirectionKey | String | "Buy" or "Sell" | Â |
Instrument | Guid | The associated instrument | Â |
Cash | Guid | The associated Cash | Â |
Price | Double | The price of the order | Â |
State | String | The current state of the order | Â |
IsUnitOrder | Bool | True if the order is traded in units | Â |
OrderNo | String | The order number of the order | Â |
CashTradeDate | DateTime | The date the cash leg of the order was executed | Depreciated in 2.41 |
InstrumentTradeDate | DateTime | The date the instrument leg of the order was executed | Depreciated in 2.41 |
CashSettlementDate | DateTime | The date the cash leg of the order was settled | Depreciated in 2.41 |
InstrumentSettlementDate | DateTime | The date the instrument leg of the order was settled | Depreciated in 2.41 |
SentDate | DateTime | The date the order was sent to an order route | Â |
ExternalReference | String | External reference on the order | Â |
ExecutionInterfaceKey | String | The key name of the associated execution interface | Â |
ExecutionInterface | Guid | The BrickId of the execution interface | Â |
CreatedDate | DateTime | The timestamp of when the order was created | Â |
IsPrePayed | Bool | True if the order follows the pre pay order process | Â |
PaymentConfirmationDate | DateTime | If the order has received a payment confirmation this field will display the date for the confirmation | Â |
TradeDate | DateTime | The date when the instrument was traded | 2.41 |
SettlementDate | DateTime | The date when cash was settled | 2.41 |
Code examples
C# - GetExternalFundBatchOrders
 //Use the GetFundBatchOrders method
var client = new BFSServiceReference.bfsapiSoapClient();
var credentials = new BFSServiceReference.Credentials()
{
UserName = bfsusername, //Username of administrative user in your instance of BFS
Password = bfspassword, //Password of the administrative user in your instance of BFS
};
var accounttypes = client.GetFundBatchOrders(new BFSServiceReference.GetFundBatchOrdersRequest()
{
Credentials = credentials,
identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
Args = new GetFundBatchOrdersArgs()
{
BrickIds = new Guid[]
{
new Guid("928f5a5a-5abf-45e7-977c-b716f73b7618"),
}
},
Fields = new BFSServiceReference.GetFundBatchOrderFields()
{
BrickId = true,
CashAmount = true,
InstrumentAmount = true,
TradeOrderDirectionKey = true,
Instrument = true,
Cash = true,
Price = true,
State = true,
IsUnitOrder = true,
OrderNo = true,
ExternalReference = true,
CreatedDate = true,
ExecutionInterfaceKey = true,
ExecutionInterface = true,
IsPrePayed = true,
SentDate = true,
SettledAmount = true,
PaymentConfirmationDate = true,
TradeDate = true,
SettlementDate = true
},
});
foreach (var c in accounttypes.Result)
{
Console.WriteLine(c.BrickId + ","
+ c.CashAmount
+ ","
+ c.InstrumentAmount
+ ","
+ c.TradeOrderDirectionKey
+ ","
+ c.Instrument
+ ","
+ c.Cash
+ ","
+ c.Price
+ ","
+ c.State
+ ","
+ c.IsUnitOrder
+ ","
+ c.OrderNo
+ ","
+ c.TradeDate
+ ","
+ c.SettlementDate
+ ","
+ c.ExternalReference
+ ","
+ c.CreatedDate
+ ","
+ c.ExecutionInterfaceKey
+ ","
+ c.ExecutionInterface
+ ","
+ c.IsPrePayed
+ ","
+ c.SentDate
+ ","
+ c.SettledAmount
+ ","
+ c.PaymentConfirmationDate
);
}
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