Convert Figma logo to code with AI

LeekHub logoleek-fund

:chart_with_upwards_trend: 韭菜盒子插件,兼容 VS Code 生态编辑器。在你用 AI 专注于写代码的同时,它在后台实时且隐蔽地追踪着市场,绝不打断你的任何工作流。

3,839
589
3,839
13

Top Related Projects

7,868

stock,股票系统。使用python进行开发。

15,383

TuShare is a utility for crawling historical data of China stocks

42,913

基于Python的开源量化交易平台开发框架

提供同花顺客户端/miniqmt/雪球的股票量化交易,支持跟踪 joinquant /ricequant 模拟交易 和 实盘雪球组合

Quick Overview

LeekHub/leek-fund is a Visual Studio Code extension for monitoring stock and fund data in real-time. It provides a convenient way for developers and investors to keep track of their investments directly within their coding environment, offering features like stock price alerts, fund tracking, and customizable watchlists.

Pros

  • Seamless integration with VS Code, allowing users to monitor investments without leaving their development environment
  • Real-time updates on stock and fund prices, providing up-to-date information
  • Customizable watchlists and alerts for personalized tracking
  • Open-source project with active community contributions

Cons

  • Limited to Visual Studio Code users, not available as a standalone application
  • Primarily focused on Chinese markets, which may limit its usefulness for international investors
  • Potential for distraction from coding tasks due to constant financial updates
  • Relies on third-party data sources, which may occasionally lead to data accuracy issues

Getting Started

To install and use the Leek Fund extension in Visual Studio Code:

  1. Open Visual Studio Code
  2. Go to the Extensions view (Ctrl+Shift+X)
  3. Search for "Leek Fund"
  4. Click "Install" on the Leek Fund extension
  5. Once installed, click "Reload" to activate the extension
  6. Access the Leek Fund sidebar by clicking on the leek icon in the Activity Bar
  7. Configure your watchlist by editing the leek-fund.stocks and leek-fund.funds settings in VS Code's settings.json file

Example configuration:

{
  "leek-fund.stocks": [
    "sh000001",
    "sh600519",
    "hk00700"
  ],
  "leek-fund.funds": [
    "001618",
    "161725"
  ]
}

After configuration, you'll see your selected stocks and funds displayed in the Leek Fund sidebar, with real-time updates on their prices and performance.

Competitor Comparisons

7,868

stock,股票系统。使用python进行开发。

Pros of stock

  • More comprehensive stock analysis tools and algorithms
  • Includes machine learning models for prediction
  • Supports multiple data sources and APIs

Cons of stock

  • Less user-friendly interface compared to leek-fund
  • Requires more technical knowledge to set up and use
  • Documentation is primarily in Chinese, limiting accessibility for non-Chinese speakers

Code Comparison

leek-fund:

const stockCode = '000001';
const url = `https://api.example.com/stock/${stockCode}`;
fetch(url)
  .then(response => response.json())
  .then(data => console.log(data));

stock:

import tushare as ts
ts.set_token('YOUR_TOKEN')
pro = ts.pro_api()
df = pro.daily(ts_code='000001.SZ', start_date='20210101', end_date='20210630')
print(df)

Summary

While stock offers more advanced features and analysis capabilities, leek-fund provides a more user-friendly experience for casual investors. stock is better suited for developers and data scientists looking to perform in-depth analysis, while leek-fund is ideal for users who want a simple, easy-to-use tool for tracking stocks and funds.

15,383

TuShare is a utility for crawling historical data of China stocks

Pros of tushare

  • More comprehensive data coverage, including stocks, funds, futures, and macroeconomic data
  • Supports both real-time and historical data retrieval
  • Well-documented API with extensive examples and tutorials

Cons of tushare

  • Requires a paid subscription for full access to all features
  • Steeper learning curve due to its extensive functionality
  • Less focus on visualization compared to leek-fund

Code Comparison

tushare:

import tushare as ts
ts.set_token('your_token_here')
pro = ts.pro_api()
df = pro.daily(ts_code='000001.SZ', start_date='20200101', end_date='20200331')

leek-fund:

const { getStockData } = require('leek-fund');
const stockData = await getStockData('sh000001');
console.log(stockData);

Summary

tushare offers a more comprehensive solution for financial data analysis in Python, while leek-fund provides a simpler, JavaScript-based approach focused on stock and fund data visualization. tushare's extensive features come with a steeper learning curve and potential cost, whereas leek-fund is more accessible for beginners and free to use.

42,913

基于Python的开源量化交易平台开发框架

Pros of vnpy

  • More comprehensive trading platform with support for multiple asset classes
  • Extensive documentation and active community support
  • Modular architecture allowing for easy customization and extension

Cons of vnpy

  • Steeper learning curve due to its complexity and extensive features
  • Requires more system resources and setup time compared to leek-fund

Code Comparison

leek-fund (JavaScript):

async function getStockData(codes) {
  const url = `https://api.example.com/stock?codes=${codes.join(',')}`;
  const response = await axios.get(url);
  return response.data;
}

vnpy (Python):

class StockDataEngine(BaseEngine):
    def __init__(self, event_engine: EventEngine):
        super().__init__(event_engine, "StockData")
        self.api = StockDataAPI()

    def get_stock_data(self, codes: List[str]) -> Dict:
        return self.api.query_stock_data(codes)

Summary

vnpy is a more robust and feature-rich trading platform suitable for professional traders and institutions, while leek-fund is a simpler, lightweight solution focused on stock and fund tracking for individual investors. vnpy offers greater flexibility and customization options but requires more technical expertise to set up and use effectively. leek-fund provides a more straightforward experience for basic stock and fund monitoring needs.

提供同花顺客户端/miniqmt/雪球的股票量化交易,支持跟踪 joinquant /ricequant 模拟交易 和 实盘雪球组合

Pros of easytrader

  • More comprehensive trading functionality, supporting multiple brokers and trading platforms
  • Offers automated trading capabilities and strategy implementation
  • Provides a wider range of financial instruments, including stocks, funds, and options

Cons of easytrader

  • More complex setup and configuration process
  • Steeper learning curve for users new to algorithmic trading
  • Less focus on real-time market data visualization compared to leek-fund

Code Comparison

easytrader:

user = easytrader.use('ths')
user.prepare('config/ths.json')
user.buy('162411', price=0.55, amount=100)

leek-fund:

const { getStockData } = require('leek-fund');
const data = await getStockData(['sh000001', 'sh000300']);
console.log(data);

Summary

easytrader is a more powerful and versatile trading tool, offering automated trading capabilities across multiple platforms. It's better suited for experienced traders looking to implement complex strategies. leek-fund, on the other hand, focuses on providing real-time market data and visualization, making it more accessible for beginners and those primarily interested in monitoring their investments.

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

韭菜盒子

LeekFund

网站:https://leek.fund/

兼容 VS Code 生态编辑器。在你用 AI 专注于写代码的同时,它在后台实时且隐蔽地追踪着市场,绝不打断你的任何工作流。

Marketplace Installs Rating

投资有风险,入市需谨慎!

声明:本软件仅为数据辅助展示工具,不提供任何投资建议。数据均来自公开网络渠道,因网络延迟或第三方引起的行情误差,本软件不承担法律责任。

Table of contents

功能特性

基础功能

  • 基金 / 股票 / 期货 / Binance 实时涨跌
  • 支持 A 股、港股、美股、国内期货、海外基金、外汇牌价
  • 状态栏行情概览
  • 基金实时 / 历史走势图、基金排行榜、基金披露持仓信息
  • 自定义涨跌颜色与涨跌图标
  • 简单版本基金持仓金额、股票成本价维护设置
  • 简单版本基金 / 股票盈亏展示
  • 股票涨跌提醒配置(IDE 内通知)
  • 韭菜中心:基金 / 股票详情、K 线、资金流向等

LeekFund Pro

  • 股票 / 基金自定义分组:自定义分组、自动展示「我的持仓」分组、分组折叠、分组、个股拖拽排序
  • 持仓管理中心(完整):总资产、浮动盈亏、编辑 / 加仓 / 删除、账本导入导出
  • **市场快讯**:韭菜中心>快讯 + LeekFund News 面板
  • 大盘云图:韭菜中心>大盘云图
  • **个性化定制面板**:高级自定义。状态栏股票自选、显示格式、股票收益格式等可视化配置
  • 股价预警 Webhook 群推送(企业微信 / 钉钉 / 飞书)
  • 板块行情:行业 / 概念列表、资金流向、涨幅榜与成分股详情,与大盘云图、自选联动。 详细文档
  • **行情中继**:Pro 用户可在自建服务器部署代理,将股票 / 基金行情请求转至个人中继,应对内网拦截证券 API 或高频监测; 详细文档
  • LeekAgent:进行快讯摘要、自选 / 持仓概览、标的公开信息解读。 详细文档
  • 编辑器 Blame 伪装:在代码文件中以 Git 提交日志样式私密查看持仓股票行情

安装使用

安装插件:Visual Studio Marketplace

要求版本
VS Code^1.100.0
Cursor^3.0.0

使用文档

概览

资产管理

资产管理

大盘云图

大盘云图

板块行情

板块行情

板块行情

个股异动

个股异动

Blame 伪装

编辑器 Blame 伪装,相比状态栏与侧边栏查看行情信息更加隐蔽

文件头部

Blame伪装

文件git message。持仓多只股时,鼠标光标依次换行点击即可轮播查看不同持仓股

Blame伪装

自定义配置在 Settings 视图下(Pro 用户可使用可视化个性化定制):

All Thanks To Our Contributors

License

LICENSE