@cfxmarkets/libofn

Standard interface for interacting with OFN

Usage no npm install needed!

<script type="module">
  import cfxmarketsLibofn from 'https://cdn.skypack.dev/@cfxmarkets/libofn';
</script>

README

libofn

This is a library which provides

  1. An interface for interacting with the OpenFinance Network smart contracts
  2. An interface for interacting with exchanges that implement the OpenFinance Exchange API standard
  3. A mock exchange that can be used to test exchange front-end components

OpenFinance Network smart contract interface

Exchange interface

Mock exchange

The mock exchange is available as the MockExchange class in "libofn/Mock/Exchange". An instance is constructed with no parameters and starts generating data immediately. To stop the data generator, use the stop method.