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

Inputs (Reservation[]) inherits from EntityBase

NameTypeDescriptionMandatoryAvailable from version
AccountGuidAccount of the reservation true 
AssetGuidAsset of the reservation true 
ReferenceGuid

Reference of the reservation. This property is needed to be set if you for example want to link the reservation to a specific order.

For example: if you create a Subscription order, you take the id from the order and set it to the Reference property. By doing this, the reservation and the subscription order is linked.  



OrderGuidOrderId of the reservation. This property is not - contradictory to it's name - the property you should use to link an order with the reservation.

ReservedAmountTradedecimalAmount for trade dimension 

ReservedAmountSettledecimalAmount for settle dimenstion

Response rows

NameTypeDescriptionAvailable from version
BrickIdGuidThe BrickId (unique id) of the created 

Code examples

C# - Create reservations
 public static void CreateReservation()
        {
            var binding = new BasicHttpBinding();
            binding.MaxReceivedMessageSize = Int32.MaxValue;
            
            var target = new bfsapi.bfsapiSoapClient(binding, new EndpointAddress("http://localhost:20010/bfsapi.asmx"));
            var req = new CreateReservationRequest();
            req.Credentials = new bfsapi.Credentials
            {
                UserName = "username",
                Password = "passworkd"
            };

            req.identify = "identify";

            var orderRef = Guid.NewGuid();
			var accountId= Guid.NewGuid();
			var assetId= Guid.NewGuid();

            
            req.Entities = new[]
            {
                new bfsapi.Reservation()
                {
                    Account = accountId,
                    Asset = assetId,
                    Comment = "Testreservation",
                    Reference = orderRef,
                    Order = orderRef,
                    ReservedAmountTrade = 100M,
                    
                }
            };

            var resp = target.CreateReservations(req);
        }



  • No labels