A PWA for a trading bot running on CryptoMarket.
# install dependencies
yarn install
# serve with hot reload at localhost:8080
yarn run serve
# build for production with minification
yarn run buildThe API must run on SSL (port 443) and allow CORS.
An Authorization header with the token is sent with every request
POST /auth
Obtain the JWT
- Payload
{ "username": [string], "password": [string] } - Response: The authentication token
GET /<market>/buy
Get the buyer trading on market
<market>
- Response
{ "amount": [string], "fiat": [string] "price": [string] }
PUT /<market>/buy
Update the buyer trading on market
<market>
- Payload
{ "amount": [string], "fiat": [string] }
GET /<market_code>/sell
Get the seller trading on market
<market>
- Response:
{ "amount": [string], "price": [string], "spread": [string] }
PUT /<market_code>/sell
Update the seller trading on market
<market>
- Payload
{ "amount": [string], "spread": [string] }
POST /cryptomkt/orders/create
Open an order
- Proxy to
api.cryptomkt.com/v2/orders/create
POST /cryptomkt/orders/cancel
Cancel an order
- Proxy to
api.cryptomkt.com/v2/orders/cancel
GET /cryptomkt/orders/active
Get the active orders
- Proxy to
api.cryptomkt.com/v2/orders/active
GET /cryptomkt/orders/executed
Get the executed orders
- Proxy to
api.cryptomkt.com/v2/orders/executed
GET /cryptomkt/balance
Get your CryptoMarket balance
- Proxy to
api.cryptomkt.com/v2/balance
POST /fcm-tokens
Add FCM token
- Payload
{ "token": "the_fcm_token" } - Response: 201 Created
DELETE /fcm-tokens/<token>
Remove FCM token
- Response: 204 No Content




