Apr 18, 2021
• Graham Higgins
• ~ 3 min to read
•
maintenance
How to easily create a new update for the Freiexchange recharted order book
Step 1 - retrieve a fresh copy of the Freiexchange order book
Execute the following:
This will result in the creation of a file called freiexchange-orderbook.json with the contents:
There’ll be more. The contents shown above have been elided for brevity and presentation with ....
Step 2 - process the received JSON data to CSV
Execute the following:
This will result in the creation of a file called freiexchange-orderbook.csv with the contents:
(Again, there’ll be more than the content shown above which has also been elided with ...)
Step 3 - Create a new post
Using the following template:
Copy and paste the contents of freiexchange-orderbook.csv into the data: field, overwriting the "". It should appear as a solid block of text and look like this:
Then, change the YYYY-MM-DD placeholders to the actual date of creation, change <Your name here> to something else and change the BTC price to the USD value at the time of downloading the orderbook (just the integer dollar value, without the decimal/cents).
Save the entry in the _orderbook folder as YYYY-MM-DD-freiexchange-orderbook.md