##Project Requirement
- Visual Studio 2019 (.net core 3.1)
##Ones project dependency is installed, follow following step to run the program
-
run the project this will run in (https://localhost:44361) portal
-
in first "https://localhost:44361/api/FivepaisaAPI/LoginRequestMobileNewbyEmail" will run as it is set as start URL
-
then all API can be run by there Route Name eg.(NetPositionNetWise, Holding, OrderStatus, TradeInformation, TradeBook, OrderBook, Margin, MarketFeed, OrderRequest, SMOOrderRequest, ModifySMOOrder, WebsocketAPi)
-
In APICredentials.json files will get the user credentials eg. (Key, RequestCode, head, LoginRequestMobileNewbyEmail ...)
##location of main files
- Controllers/FivepaisaAPIController.cs -> All API Request
- APICredentials.json -> API Json model
- ApiRequest.cs -> API call method
- appsettings.json -> URLs
- CommonMethod.cs -> Encryption method
- CookiesFile.xml -> after login Cookies will be saved
- Request.cs -> Request model
- Response.cs -> Response model
- WebsocketServer.cs -> Websocket method
##Websocket
websocket response wll be found in the output window of the visual studio