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 41 Next »

Inputs (Array of SuperTransactions) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable as of version
BusinessTransactionsBusinessTransaction[]See table below

InsurancePolicyGuidThe Guid of the insurance policy for the super transaction
2.02
InsuranceClaimGuidThe Guid of the insurance claim for the super transaction
2.02
BatchGuidThe Guid of the batch for the super transaction
2.09
BusinessEventIdGuidThe Guid of the business event that the super transaction should be connected to. By associating a super transaction to a business event it is possible to include them in various GUI views, for example for corporate actions or other events.
2.27

Inputs (Array of BusinessTransactions) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable as of version
BrickIdGuidNot used.

AccountGuidThe Guid of the account where the transaction should be created. Empty guid is not allowedTrue
BusinessTransactionTypestringEmpty string is not allowedTrue
TransactionReferencestringTransaction reference (This will show on the customer front in the section called "Comment")

Asset1GuidThe GUID of the asset/financial instrument of the first leg of the transaction

Asset2GuidThe GUID of the asset/financial instrument of the second leg of the transaction

AmountAsset1decimalThe amount of the first leg of the transaction. (Number of decimals allowed is controlled by the number of decimals defined on the Cash object, although minimum 2 and maximum 6 decimals as from version 2.14)

AmountAsset2decimalThe amount of the second leg of the transaction

CustodyAccountAsset1Guid

The internal id of the custody account of the first leg of the transaction

Obsolete as of version 2.02. Transactions for custody accounts should be created as separate business transactions as of version 2.02.



CustodyAccountAsset2Guid

The internal id of the custody account of the second leg of the transaction

Obsolete as of version 2.02. Transactions for custody accounts should be created as separate business transactions as of version 2.02.



TradeDateDateTimeTrade date

SettlementDateDateTimeSettlement date

ValueDateDateTimeValue date

PricedoublePrice. Below zero is not allowed

AcquisitionValuedoubleAcquisition value

AcquisitionValueAccountCurrencydoubleThe acquisition value expressed in the account currency.

SettlementTypestring

Settlementtype, could be "Internal" or "External". "Internal" is default.

Obsolete as of version 2.02. Transactions for custody accounts should be created as separate business transactions as of version 2.02.




Response rows

No entities is returned in the response due to internal limitations in BFS

Code examples


C# - Create Business Transactions
//Create a business event for a deposit with four business transactions using the CreateBusinessTransaction 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 response = client.CreateBusinessTransactions(new BFSServiceReference.CreateBusinessTransactionRequest()
{
    Credentials = credentials,

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

    Entities = new[]
    {
        new SuperTransaction()
        {
            BusinessTransactions = new BusinessTransaction[]
            {
                //Transaction for customer BFS-account
              new BusinessTransaction()
              {
                  Account = new Guid("cbfe4a0d-bf05-4a7e-bdc8-1ee809817bee"),
                  BusinessTransactionType = "Default_Transfer_Trade_Cash",
                  TransactionReference = "Test",
                  Asset1 = new Guid("21b0718c-bce9-4c6b-b1c9-520b65121ff6"),
                  AmountAsset1 = 100M,
                  //Since the transaction type is for only the Trade dimension as suggested by the transaction name 
                  TradeDate = DateTime.Parse("2016-04-18")
              },
              //Transaction for customer BFS-account
              new BusinessTransaction()
              {
                  Account = new Guid("cbfe4a0d-bf05-4a7e-bdc8-1ee809817bee"),
                  BusinessTransactionType = "Default_Transfer_Settle_Cash",
                  TransactionReference = "Test",
                  Asset1 = new Guid("21b0718c-bce9-4c6b-b1c9-520b65121ff6"),
                  AmountAsset1 = 100M,
                  //Since the transaction type is for only the Settle dimension as suggested by the transaction name 
                  SettlementDate = DateTime.Parse("2016-04-18"),
                  ValueDate = DateTime.Parse("2016-04-18")
              },
              //Transaction for house Custody account
              new BusinessTransaction()
              {
                  Account = new Guid("25c7b534-c2b6-47a9-a3df-1dcc88b1f49c"),
                  BusinessTransactionType = "Default_Transfer_Trade_Cash",
                  TransactionReference = "Test",
                  Asset1 = new Guid("21b0718c-bce9-4c6b-b1c9-520b65121ff6"),
                  AmountAsset1 = 100M,
                  //Since the transaction type is for only the Trade dimension as suggested by the transaction name 
                  TradeDate = DateTime.Parse("2016-04-18")
              },
              //Transaction for house Custody account
              new BusinessTransaction()
              {
                  Account = new Guid("25c7b534-c2b6-47a9-a3df-1dcc88b1f49c"),
                  BusinessTransactionType = "Default_Transfer_Settle_Cash",
                  TransactionReference = "Test",
                  Asset1 = new Guid("21b0718c-bce9-4c6b-b1c9-520b65121ff6"),
                  AmountAsset1 = 100M,
                  //Since the transaction type is for only the Settle dimension as suggested by the transaction name 
                  SettlementDate = DateTime.Parse("2016-04-18"),
                  ValueDate = DateTime.Parse("2016-04-18")
              },
            },
        },                    
    }

});

Console.WriteLine(response.Message);

Blog Posts

  • No labels