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

Inputs (Reservation[]) inherits from EntityBase

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

Reservations can be linked to different type of orders, these are:

SubscriptionOrders - If a subscription order is referenced the reservation will have reserved the inputted asset in relationship to the subscription order and when the subscription order is progressed to create a TradeOrder the reservation will be removed and a new reservation for the same asset and amount will be created for the resulting TradeOrder.

TradeOrders

TransferOrders



OrderGuidThis property should contain the BrickId of the referenced order if information of the order should be reachable in the graphical user interfaces where the reservations are listed. This field will be deprecated in the future and set automatically based on the Reference given.

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