#Payday Trade app
The application contains following microservices.
- customer-service,
- account-service,
- order-service,
- stock-service,
- notification-service,
- gateway-service
Request samples to test application:
Gateway url is :
http://localhost:8181/api/customer/customers
"name":"Jeyhun",
"surname":"Rahimov",
"email":"jhoonbey2@gmail.com",
"password":"123456",
"passwordAgain":"123456",
"username":"jeyhunr"
}
http://localhost:8181/api/account/accounts
{
"customerId":1
}
Account numbers are generated randomly (find generateNumericString in source)
http://localhost:8181/api/account/accounts/07645095387998727321/deposit
{
"amount": 50000
}
http://localhost:8181/api/account/accounts/07645095387998727321/cash-balance
Response:
{
"data": {
"balance": 2000.00
}
}
http://localhost:8181/api/order/orders
{
"userId":1,
"stockId":1,
"accountNumber":"07645095387998727321",
"quantity":1,
"targetPrice":3,
"orderType":"BUY"
}
Change "BUY" to "SELL" to sell order