Create empty database and describe configuration in this file. Flyway will apply migrations to your database after starting the program.
- Create security
POST /securities
{
"secid": "AEDRUB_TOD",
"regnumber": "",
"name": "AED/RUB_TOD - AED/РУБ", // nullable
"emitentTitle": ""
}
-
Get security by id
GET /securities/{id}
-
Get all securities
GET /securities
-
Update security
PUT /securities/{id}
{
// new body
"secid": "AEDRUB_TOD",
"regnumber": "",
"name": "AED/RUB_TOD - AED/РУБ", // nullable
"emitentTitle": ""
}
-
Delete security by id
DELETE /securities/{id}
-
Upload security xml file
POST /securities/upload-xml
Filename should match formatsecurities_*.xml
See example
- Add history
POST /history
{
"secid": "AEDRUB_TOD",
"tradedate": "2022-03-02",
"numtrades": 224,
"open": 3421.15, // nullable
"close": 2900.8 // nullable
}
-
Get hisotry by secid
GET /history/{secid}
-
Get hisotry by date
GET /history/date/{date}
-
Update hisotry
PUT /history
{
"secid": "AEDRUB_TOD",
"tradedate": "2022-03-05",
"numtrades": 224,
"open": 3421.15, // nullable
"close": 2900.8 // nullable
}
-
Delete hisotry by secid
DELETE /history/{secid}
-
Upload history xml file
POST /history/upload-xml
Filename should match formathistory_*.xml
See example
-
Get info by secid
GET /info/{secid}
-
Get all info
GET /info