Exchange - project-sapphire/prism GitHub Wiki
An exchange provides one PUB
and one REP
socket. These are bound on static addresses.
PUB
Periodically publishes the latest exchange data with the following frames:
- currency code
- module id
- array
- currency code
- rate
REP
Handles queries with the frames:
- operation
- currency code
- ...
Queries
-
history
Returns history for a currency.
Fields:
- array
- array
- currency code
- rate
- array
- array