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 5
Next »
Name | Type | Description | Mandatory | Available from version |
---|
Account | Guid | Account of the reservation | true |
|
Asset | Guid | Asset of the reservation | true |
|
Reference | Guid | Reference of the reservation. This property is needed to be set if you 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. |
|
|
Order | Guid | OrderId of the reservation. |
|
|
ReservedAmountTrade | decimal | Amount for trade dimension |
|
|
ReservedAmountSettle | decimal | Amount for settle dimenstion |
|
|
Response rows
Name | Type | Description | Available from version |
---|
BrickId | Guid | The BrickId (unique id) of the created |
|
Code examples
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);
}