A microservice designed for managing various trade-related functionalities such as documents metadata, investor types, issuers, documents types, and transaction types. This service also integrates a database utility package for common database utilities and logging configurations. It leverages databases such as MySQL Server and ensures configurations are set correctly via .env file.
- To use the dbutil_common utilities, ensure you use
git submodule update --init --recursive
to get dbutil files (\n common.py)
- Python 3.x
- MySQL Server (Version 8.0 recommended)
- Logging configuration setup (via logger_config.py)
- Initial
- Added /lookup_app_rules/{app_id}
- Added /look_app_rule_by_id/{app_id,rule_id}
- Added "/update_app_rule/" - Use PASS or FAIL for Status
- Pending fix from SP to return override in look_app_rule_by_id *
- Added requirements.txt
- Synced with db v1.0.30
- Synced with db v1.0.39
- Added
/create_trade_doc_meta
- Added
/update_trade_doc_meta
- Added
/delete_trade_doc_meta
- Added
/list_trade_docs_meta
- Added
/create_investor_type
- Added
/update_investor_type
- Added
/delete_investor_type
- Added
/list_investor_type
- Added
/list_issuers_list
- Added
/list_document_type_name/{type_name}
- Added
/list_document_type_id/{type_id}
- Fixed db_trade/handle_sp_call for empty list message
- Fixed return message, handler error /update_app_rule
- Synced with db v1.0.40
- Added
/list_all_transaction_types
return all transaction types - Added
/list_all_trades
return trade records - Synced with db v1.0.42
- Integration of dbutil_package submodule; utilization of common database utilities and logging configurations.
- Update dbutil to v0.0.5: Enhanced
DatabaseHandler
with environment variable management for database configuration.
- Synced with db v1.0.47
- Added
/app_doc_uploads/{app_id}
for retrieving application document uploads by ID. - Added
/lookup_client/{app_id}
for looking up client information by ID. - Added
/lookup_forms/
for looking up forms. - Added
/lookup_response/{app_id}
for looking up responses by ID. - Added
/lookup_sponsor/{app_id}
for looking up sponsor information by ID. - Added
/lookup_rep_join/{app_id}
for looking up representative join information by ID.
- Sync with dbutil v0.0.6.
- Refactored the
TradesDataRetriever
. Removed unnecessary comments and irrelevant codes. - Updated parameters passing method for
trades_handle_sp_call
- Used OpenAPI v3.0.0 schema
- Sync with db 1.0.66
Ensure your .env
file is properly configured with DATABASE_URL
, DATABASE_PASSWORD
and other necessary settings for
your MySQL database connection.
DATABASE_URL=mysql://<username>@<host>:<port>/<database_name>
DATABASE_PASSWORD=<database_password>