Skip to content

jhoonbey/payday-trade

Repository files navigation

#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

Create customer

http://localhost:8181/api/customer/customers

	"name":"Jeyhun",
	"surname":"Rahimov",
	"email":"jhoonbey2@gmail.com",
	"password":"123456",
	"passwordAgain":"123456",
	"username":"jeyhunr"
}



Create Account

http://localhost:8181/api/account/accounts

{
	"customerId":1
}

Account numbers are generated randomly (find generateNumericString in source)


Deposit amount to balance

http://localhost:8181/api/account/accounts/07645095387998727321/deposit

{
	"amount": 50000
}

Get account cash balance

http://localhost:8181/api/account/accounts/07645095387998727321/cash-balance

Response:

{
    "data": {
        "balance": 2000.00
    }
}



Create Order

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


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages