![]() code: the asset_code on the stellar network.This will not spider any of the accounts and will not modify your original file.Ĭreate a new file called markets.csv detailing all your accounts using the following columns (no header line): This process will allow you to run the downloader script for all your market making accounts in a single command and the output files will include the portfolio balances in XLM and USD using a reference price provided by you in the input file. You can clone the repo by running the following command:.Note: This script will not include any fees paid by the account, and as such, balances for XLM may be slightly off. Note: This script will not include any path_payments made by the account at this point in time, although you can easily update the script to include this. See the How to Run (Advanced) section for more details. It prefixes headers with - so it can be removed using grep in the bash script. ![]() column headers to stdout in CSV format.trades and payments to stdout in CSV format. ![]() In this manner, you will always have the latest balance for all assets on each row in CSV format. ![]() From that point on, it always prints the cumulative balance of that asset in a new column on the right. It uses the /payments endpoint to fill in data that is unavailable from the /effects endpoint such as the initial funder of an account or the counterparty of a payment.Įverytime it encounters a new trustline, it adds it to the list of headers and prints out the headers to stdout. ![]() It uses the /effects endpoint to get all payments and trades, ordering them by the paging_token in ascending order. Stellar Downloader uses Node and the Stellar Javascript SDK to pull payments and effects from Horizon. Download trades and payment data from the Stellar blockchain network as a CSV file for accounting purposes. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |