# FinancialData return varying values for a specific day?

Posted 2 years ago
3814 Views
|
5 Replies
|
5 Total Likes
|

A simple query returns varying values. I assume Mathematica is pulling data from multiple data vendors and cycles through them, perhaps randomly.

Example:

### 1st Call:

FinancialData["bond", "Close", {{2015, 12, 31}, {2015, 12, 31}}]


{{{2015, 12, 31}, 102.52}}

### 8th Call:

FinancialData["bond", "Close", {{2015, 12, 31}, {2015, 12, 31}}]


{{{2015, 12, 31}, 102.703}}

### 10th Call:

FinancialData["bond", "Close", {{2015, 12, 31}, {2015, 12, 31}}]


{{{2015, 12, 31}, 102.52}}

If this is indeed how FinancialData works, one will never be able to achieve a repeatable result. Without repeatable results, this function is nearly useless for any sort of serious work.

Can anyone confirm that this is indeed what is going on here?

5 Replies
Sort By:
Posted 2 years ago
 I can't confirm that WRI is using multiple data sources (it would be very odd if they were), but I can confirm the behavior that you are seeing.... Counts@Table[FinancialData["bond", "Close", {{2015, 12, 31}, {2015, 12, 31}}], {100}] <|{{{2015, 12, 31}, 102.703}} -> 27, {{{2015, 12, 31}, 102.52}} -> 73|>Strange...
Posted 2 years ago
 Thanks David!
Posted 2 years ago
 "Close" for historical values is adjusted close and for "BOND" (PIMCO Total Return Active ETF) dates before {2016, 11, 1} are seeming to vacillate between two values from the source. This can be avoided by using "RawClose" for dates in that range. FinancialData["bond", "RawClose", {{2015, 12, 31}}] {{2015, 12, 31}, 104.22}