Algogene MCP Server - A Python package for MCP server functionality
Project description
ALGOGENE MCP Server
Introduction
The algogene_mcp_server provides a Python-based interface for accessing the ALGOGENE API, enabling users to conduct strategy backtest, real-time data analytics, and manage trading activities.
Installation
- Set Up Your Environment:
Ensure you have Python 3.11 or later installed.
- Install Dependencies:
pip install requests mcp-server
- Install Package:
pip install algogene-mcp-server
- Update Configuration:
Modify the configuration file located at
/config/__init__.py.
BASE_URL = "https://algogene.com/rest"
ALGOGENE_USER = "YOUR_ALGOGENE_USER_ID"
ALGOGENE_API_KEY = "YOUR_ALGOGENE_API_KEY"
Running the Server
- Start the Server:
python main.py
You can customize options using command-line arguments:
python main.py --transport streamable-http --port 8080 --host 0.0.0.0
- Connect and Execute Commands:
- The server runs in STDIO mode by default. You can connect to it via your MCP client and run commands based on available tools.
Tools Overview
- Contract Specification:
- get_instruments: Get all available instruments available on ALGOGENE
- get_instrument_meta: Get contract specification of a financial instrument
- search_instrument: Search related financial instruments based on matched keywords of symbol or description
- list_econs_series: List out all available economic time series
- search_econs_series: Search related economic time series based on matched keywords of titles, geo and freq
- get_econs_series_meta: Get meta data or specification of an economic time series
- Real-time Data:
- get_realtime_prices: Get current price for trading symbol(s)
- get_realtime_price_24hrchange: Get the recent 24 hours market price change
- get_realtime_exchange_rate: Get current exchange rate between 2 currencies
- get_realtime_news: Get latest news for a specified language/source/categroy
- get_realtime_weather: Get latest weather info for a specified region
- get_realtime_econs_calendar: Get the upcoming economic calendar info such as holiday, statistics release, president speech, etc
- get_realtime_econs_stat: Get the most recent released economic statistics
- Historical Data:
- get_history_price: Get historical market price
- get_history_news: Get historical news
- get_history_weather: Get historical weather
- get_history_corp_announcement: Get company's corporate announcement history
- get_history_econs_calendar: Get economic calendar history, such as holiday, statistics release, president speech, etc
- get_history_econs_stat: Get historical released economic statistics
- strategy_market_perf: Get performance statistics for a market index
- Trading Account Current Status:
- get_session: Get session token that will be used to access account and order related resources
- list_accounts: List out all your trading accounts with latest balance on ALGOGENE.
- get_positions: Get outstanding positions of a trading account
- get_balance: Get current balance of a trading account
- get_opened_trades: Get opened trades of a trading account
- get_pending_trades: Get pending trades (or limit orders) of a trading account
- set_account_config: Trading connection setup with your personal broker/exchange account on ALGOGENE.
- Trading Account History:
- strategy_trade: Get transaction history of a trading account
- strategy_bal: Get daily history of account balance of a trading account
- strategy_pos: Get daily history of position of a trading account
- strategy_pl: Get daily history of cumulative profit/loss of a trading account
- strategy_cashflow: Get history of cash flow (eg. deposit, withdrawal, dividend payment, etc) of a trading account
- strategy_stats: Get performance statistics history and trading setting of a trading account
- Order Placecment and Management:
- open_order: Place an order on a trading account
- query_order: Query an order's details of a trading account
- update_pending_order: Update trading parameters of a pending order
- update_opened_order: Update trading parameters of an outstanding/opened order
- cancel_orders: cancel a list of unfilled limit/stop orders
- close_orders: close a list of outstanding orders
- Other Trading Apps available on (https://algogene.com/marketplace#app):
- app_predict_sentiment: Give a sentiment score for a given text (eg. news, blog posts, financial reports)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file algogene_mcp_server-0.1.2.tar.gz.
File metadata
- Download URL: algogene_mcp_server-0.1.2.tar.gz
- Upload date:
- Size: 31.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06ea4db68c23cc4efdd57ba3a86ff0010be072e60ab30da6071c910da9d5e71c
|
|
| MD5 |
cf80ca1be8427ebb41ad123aaf26d824
|
|
| BLAKE2b-256 |
29841e4b1d0bef57f0b04a3deee07e861cb43951b979ce2072565a4b6c029221
|
Provenance
The following attestation bundles were made for algogene_mcp_server-0.1.2.tar.gz:
Publisher:
publish.yml on algogene-fintech/algogene_mcp_server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
algogene_mcp_server-0.1.2.tar.gz -
Subject digest:
06ea4db68c23cc4efdd57ba3a86ff0010be072e60ab30da6071c910da9d5e71c - Sigstore transparency entry: 953372794
- Sigstore integration time:
-
Permalink:
algogene-fintech/algogene_mcp_server@5dfd002d91028051be5ecb6dd600355f32db3bcf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/algogene-fintech
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5dfd002d91028051be5ecb6dd600355f32db3bcf -
Trigger Event:
push
-
Statement type:
File details
Details for the file algogene_mcp_server-0.1.2-py3-none-any.whl.
File metadata
- Download URL: algogene_mcp_server-0.1.2-py3-none-any.whl
- Upload date:
- Size: 50.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45eff048c3ff33d2e59eb95364bc928f3ce0ecee7d0e4747e97a4db84027388f
|
|
| MD5 |
c74a696cd6cd726bd19d65fd4e03c5a3
|
|
| BLAKE2b-256 |
3f5dd8908c1609af02e8d6f75e9c488758fec04c646f26a41546890e637a100f
|
Provenance
The following attestation bundles were made for algogene_mcp_server-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on algogene-fintech/algogene_mcp_server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
algogene_mcp_server-0.1.2-py3-none-any.whl -
Subject digest:
45eff048c3ff33d2e59eb95364bc928f3ce0ecee7d0e4747e97a4db84027388f - Sigstore transparency entry: 953372795
- Sigstore integration time:
-
Permalink:
algogene-fintech/algogene_mcp_server@5dfd002d91028051be5ecb6dd600355f32db3bcf -
Branch / Tag:
refs/heads/main - Owner: https://github.com/algogene-fintech
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5dfd002d91028051be5ecb6dd600355f32db3bcf -
Trigger Event:
push
-
Statement type: