Skip to content

aggregate multiple exchange balances and display in ASCII table

Notifications You must be signed in to change notification settings

elauria/balances

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Balances

Show aggregated balances from multiple crypto exchanges with an ASCII table.

Setup

npm i

Add your read-only exchange keys to an .env file using this format:

EXCHANGENAME_API_KEY=
EXCHANGENAME_SECRET=

Add a list of exchanges with ID (as per ccxt) to env.js file:

module.exports = {
	exchanges: [
		{
			id: 'ftx',
			params: {
				headers: { "FTX-SUBACCOUNT": "my-subaccount" },
			}
		},
		{
			id: 'binance',
		}
	]
}

Run

node balances --help

Troubleshooting

Couldn't find Coingecko data for XYZ

The script was unable to find coin XYZ in CoinGecko's API, due to a missmatch between the symbol that your exchange is using and the symbol that Coingecko is using (symbols in Coingecko are not unique and may vary greatly).

Find the correct 'id' in Coingecko and add it to pairs.json:

{
	...
	XYZ: <coingecko id>
}

Enjoy!

About

aggregate multiple exchange balances and display in ASCII table

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published