Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel2
outlinefalse
typelist
printablefalse

...

Info

During the implementation of HTTP service, HttpHeaders of each request need to be set as the format below:

Code Block
headers: new HttpHeaders({
    'Content-Type': 'application/json'
}),
responseType: 'arraybuffer' as 'json' 


Retrieve Stock Details

...

POST /smartfin/api/v1/stockmgmt/select

...

JSON Body:

Code Block
{
   "s_date":"2023-01-01",
   "e_date":"2023-12-15",
   "phy_trade_ids":[]":[],
   "stock_lvls": ["EX"], // all the stock lvl in stock details are EX
   "is_ap": false //since stock lvl is EX, this will be false
}

Schema

...

Code Block
s_date, e_date - string

...

Update / Insert Stock Details

...

Update:
POST/smartfin/api/v1/stockmgmt/execution_update

Insert:
POST/smartfin/api/v1/stockmgmt/execution_insert

Insert new or update existing stock details into database

...

Delete Stock Details

...

DELETE/smartfin/api/v1/stockmgmt/delete

...

JSON Body:

Code Block
{
   "del_ids":[1004],
   "phy_products":[],
   "phy_trade_ids":[54794],
   "s_date":"2023-01-01",
   "e_date":"2023-12-15",
   "pair_types":[],
   "stock_lvls": ["EX"], // all the stock lvl in stock details are EX
   "is_ap": false //since stock lvl is EX, this will be false
}
Code Block
del_ids - array[integer]

...