CreateAllocationProfiles

Inputs (Array of AllocationProfiles) inherits from EntityBase

Name
Type
Description
MandatoryAvailable from version
BrickIdGuidNot used.

KeyStringThe key of the allocation profile, this can be any string and is only used for your referenceTrue
NameString

The name of the allocation profile

True
OwnerGuidThe owner associated with the allocation profileTrue
AllocationItemsAllocationItem[]

Array of AllocationItem



OrderAlgorithmKeystring

How the cash should be distributed into orders in the allocation profile. One of the following:

  • StaticBalance - keeps the original allocation at each rebalance occurance

2.14
ExchangeAlgorithmKeystring

When necessary, how should exchange be handled. One of the following:

  • FromBaseCurrency
  • AllToBaseCurrency
  • HighestToLowest

2.14
StatusKeystring

Who can see the allocation profile. One of the following:

  • Closed
  • Open
  • OpenAdmin
  • OpenPartner

2.14
MinOrderAmountdecimalMinimum order amount
2.14
DecisionMakerWithinFirmGuidDecision Maker Within Firm (for MiFID2/TRS) When applicable.
2.14

Outputs

Name
Type
Description
Available from version
EntitiesArray

All allocation profiles in the request is returned along with each allocation profiles's BrickId and array of Errors per allocation profile


C# - CreateAllocationProfiles
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 AI1 = new AllocationItem() //The only allocation item
{
    Asset = new Guid("138e92a5-f1d6-4473-9ca4-45f511881676"),
    AllocationPercentage = 1M
};
 
var response = client.CreateAllocationProfiles(new BFSServiceReference.CreateAllocationProfileRequest()
{
    Credentials = credentials, 
    identify = bfsidentifier, //Identifier is a unique token for your instance of BFS       
    Entities = new[]
    {
        new AllocationProfile()
        {     
            Key = "Alloc1",
            Name = "My allocation",
            Owner = new Guid("0a39dc30-9e75-4261-920a-1398fb87c952"),
            AllocationItems = new []
            {
                AI1               
            },
	         OrderAlgorithmKey = "StaticBalance",
            ExchangeAlgorithmKey = "FromBaseCurrency",
            StatusKey = "OpenAdmin",
            MinOrderAmount = 300M,
            DecisionMakerWithinFirm = new Guid("90cd38f8-1add-4495-ab81-68124f8a4faf")           
        },
    }
});
 
foreach (var c in response.Entities)
{
    Console.WriteLine(c.BrickId + "," + c.Errors);
}


Blog Posts

Related pages

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