Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagec#
themeRDark
titleC# - Get all account types from a BFS instanceGetFundInstructions
linenumberstrue
collapsetrue
//Use the GetFundInstructions 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 instructions = client.GetFundInstructions(new BFSServiceReference.GetFundInstructionRequest()
{
    Credentials = credentials,

    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS

    Args = new BFSServiceReference.GetFundInstructionArgs()
    {
        BrickIds = new []
        {
			new Guid("ea3f658e-28f7-46b9-a45e-99b0f2e1a1ff"), 
        }
    },
    Fields = new BFSServiceReference.GetFundInstructionFields()
    {
        BrickId = true,        
        ExecutionInterfaceId = true,
        PhysicalDeliveryIndicator = true,
        FundInstructionNo = true,
        StatusKey = true,
        ExternalFundBatchOrder = true,
        Instrument = true,
        InstructionTypeKey = true,
        RequestedNAVCurrency = true,
        RequestedSettlementCurrency = true,
        CashAmount = true
    },
});

foreach (var c in instructions.Result)
{
    Console.WriteLine(c.BrickId + ", " 
        + c.ExecutionInterfaceId + ", "
        + c.PhysicalDeliveryIndicator + ", "
        + c.FundInstructionNo + ", "
        + c.StatusKey + ", "
        + c.ExternalFundBatchOrder + ", "
        + c.Instrument + ", "
        + c.InstructionTypeKey + ", " 
        + c.RequestedNAVCurrency + ", "
        + c.RequestedSettlementCurrency + ", " 
        + c.CashAmount);
}

...

Blog Posts
sortcreation
contenttitles
labelsgetaccounttypesgetfundinstructions