This project has been developed by Arthur VEROT & Pierre CARETTE. During our training at Ironhack, we had to realize an API. We chose to build an API to run a paper trading app. On this app you can trade over 100 cryptos and 12 000 stocks. To achieve that, we used the Binance and IEX API.
NodeJS | ExpressJS | MongoDB | Mongoose
On our app, just like a classic paper trading app, you can buy 📈 stocks/cryptos and sell 📉 them.
-
User (OneToMany relationship with Transaction & Holding)
- password
- role (either 'user' or 'admin')
- method.calculateHoldingsValue()
-
Holding (ManyToMany relationship with Asset)
- userId
- assetId
- amount
- valueInDollars
- method.calculateHoldingValue()
-
Transaction (ManyToMany relationship with Asset)
- userId
- assetId
- transactionType
- amount
- valueAtGivenTime
- transactionPrice
-
Asset
- name
- symbol
- image
- method.calculateAssetValue()
Here is our API link (https://api-trading-simulator.herokuapp.com). You can find more information about how to use it in the postman documentation below.
To use our API, you can refer to our postman documentation 📜. https://documenter.getpostman.com/view/21225395/UzBjrnaW