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 13
Next »
Inputs (Array of PriceDateEntry)
Name | Type | Description | Mandatory | Default value | Available from version |
---|
PriceDateEntries[] | PriceDateEntry[] | Array of PriceDateEntries | Yes |
|
|
ClearAllPreviousData | bool | Clears all data previous to the first date in the range in PriceDateEntries. | No | false | 2.23 |
ClearPreviousDataByRange | bool | Clears all data between the first and the last date in the range | No | false | 2.23 |
UpdateCurrentPriceFromLastPrice | bool | Update the price on the instrument from the last date in the range in PriceDateEntries | No | false | 2.23 |
ClearAllsubsequentData | bool | Clears all data after the last date in the range in PriceDateEntries. | No | false | 2.23 |
PriceDateEntry
Name | Type | Description | Mandatory |
---|
AssetId | Guid | This is the unique id of the asset that should be updated | Yes |
Price | double | The new price of the asset | Yes |
PriceDate | DateTime | The date that the new price will be in use | Yes |
Outputs
Name | Type | Description |
---|
Message | string | A message indicating if something went wrong during the call or not |
Code examples
//Use SetHistoricPrices to add quote history to an instrument
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.SetHistoricPrices(new BFSServiceReference.SetHistoricPricesRequest()
{
Credentials = credentials,
identify = bfsidentifier, //Identifier is a unique token for your instance of BFS
PriceDateEntries = new PriceDateEntry[]
{
new PriceDateEntry()
{
AssetId = new Guid("7f1478ff-62a8-42a5-bff5-8487f72d7861"),
Price = 100,
PriceDate = DateTime.UtcNow,
},
new PriceDateEntry()
{
AssetId = new Guid("7f1478ff-62a8-42a5-bff5-8487f72d7861"),
Price = 100,
PriceDate = DateTime.UtcNow.AddDays(-1),
},
new PriceDateEntry()
{
AssetId = new Guid("7f1478ff-62a8-42a5-bff5-8487f72d7861"),
Price = 100,
PriceDate = DateTime.UtcNow.AddDays(-2),
}
}
});
Console.WriteLine(response.Message);
Blog stream
Create a blog post to share news and announcements with your team and company.