object NodeInterestRates
An interest rates service is an oracle that signs transactions which contain embedded assertions about an interest rate fix (e.g. LIBOR, EURIBOR ...).
The oracle has two functions. It can be queried for a fix for the given day. And it can sign a transaction that includes a fix that it finds acceptable. So to use it you would query the oracle, incorporate its answer into the transaction you are building, and then (after possibly extra steps) hand the final transaction back to the oracle for signing.
Oracle |
class Oracle An implementation of an interest rate fix oracle which is given data in a simple string format. |
Service |
class Service : AcceptsFileUpload The Service that wraps Oracle and handles messages/network interaction/request scrubbing. |
UnknownFix |
class UnknownFix : Exception |
parseFile |
fun parseFile(s: String): Map<FixOf, Fix> Parses lines containing fixes |
parseFixOf |
fun parseFixOf(key: String): FixOf Parses a string of the form "LIBOR 16-March-2016 30" into a FixOf |
parseOneRate |
fun parseOneRate(s: String): <ERROR CLASS><FixOf, Fix> Parses a string of the form "LIBOR 16-March-2016 30 = 0.678" into a FixOf and Fix |