Backend API for WebApp The Tactical Brief
Optionflow ETF data fetch functionalities
Get optionflow-etf data by ETF code, authentication needed and authorized for subscriber and admin (for testing phase)
Key | Value | Description |
---|---|---|
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlYmI2YTczMmExMmJjNDM4ODczOWMyZCIsImlhdCI6MTU4OTM0NjY4NywiZXhwIjoxNTg5MzUwMjg3fQ.3hkpDfuDE9JsJFd8lki7x8970SRqP5GBfe99MegCluc |
Routes for user authentication including register, login, reset password, logout etc.
Add new user to database
- by unique email
- default role ‘user’
- including password encryption
- including send email to confirm registration (disabled for testing phase)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Confirm registration of user
- instructions sent to user by email with registration
- link in email containing confirmation token
Resend email to user with link to verify registration and activate account
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Login user with email and password including a comparison of entered and stored hashed password
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Identify currently logged in user by bearer token sent with headers
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlYmI2YTczMmExMmJjNDM4ODczOWMyZCIsImlhdCI6MTU4OTM0NjY4NywiZXhwIjoxNTg5MzUwMjg3fQ.3hkpDfuDE9JsJFd8lki7x8970SRqP5GBfe99MegCluc |
Logout user and invalidate token
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Authorization | Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVlYmI2YTczMmExMmJjNDM4ODczOWMyZCIsImlhdCI6MTU4OTM0NjY4NywiZXhwIjoxNTg5MzUwMjg3fQ.3hkpDfuDE9JsJFd8lki7x8970SRqP5GBfe99MegCluc |
Generate reset password token and send reset link by email via smtp server
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Reset user password using token sent by email
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update and delete functionalities for users
Delete user by id (private: must be authenticated)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update user information name, email, role by user id
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
Update password of user identified by id (protected: authentication needed)
Key | Value | Description |
---|---|---|
Content-Type | application/json | JSON Type |
GET methods to receive COT data for futures, oscillators and overview
Get COT future data by futureCode (public)
Get COT report data (including oscillator and netto data) by futureCode
(public)
Get COT overview data (public)