- This is the backend for Internal APP of Dollar Bill
- Dollar Bill is a dashboard for individual investors, track assets, watch the market and trading
- It uses Firebase for storing the users and news
- It is written in typescript, uses node and a simple express server implementation
- It works as an API service and cover the following services for the app 👇
- CRUD for vaults (your exchange wallet)
- Watch the markets (API prices) and save favourites
- Trading box, open and close orders in your preferred exchange
- Clone this repo:
git clone https://github.dev/RolandoDrRobot/CoraToken-BackEnd - Go to
my-appandnpm install - Run
npm run dev - Right now only works on localhost, still planning the meaning of this project
- When you start the server, It will be availble on port 443, so, the APIs links will be preceeded by
localhost:443
-
VAULTS
-
createVault: endpoint
/createVaultpass as arguments(vaultsDB, name, api, apiSecret, exchange, owner) -
removeVault: endpoint
/removeVaultpass as arguments(vaultsDB, api) -
getVaults: endpoint
/getVaultspass as arguments(vaultsDB, account) -
EXCHANGE
-
fetchPrices user: endpoint
/fetchPricesthis is a get call -
openOrder: endpoint
/openOrderpass as arguments(vaultsDB, transactionsDB, symbol, type, side, amount, price, account, exchange) -
closeOrder: endpoint
/closeOrdernot working yet -
fetchOrders: endpoint
/fetchOrderspass as arguments(vaultsDB, account, exchange) -
cancelOrder: endpoint
/cancelOrderpass as arguments(vaultsDB, account, exchange, orderID, ticker) -
FAVOURITES
-
add favourites: endpoint
/favpass as arguments(favsDB, account, ticker) -
remove favourites: endpoint
/removeFavpass as arguments(favsDB, account, ticker) -
get favourites: endpoint
/getFavspass as arguments(favsDB, account)