Skip to main content

Asynchronous Python client for Futunn stock market quote API, inspired by py-googletrans

Project description

futunn-helper

Asynchronous Python client for Futunn stock market quote API.

Features

  • 🚀 Async/await support with httpx
  • 🌍 Multiple markets (US, HK, CN, SG, AU, JP, MY, CA)
  • 🔐 Automatic token management
  • 📊 Real-time stock data
  • ⚡ Concurrent request handling

Installation

pip install futunn-helper

Quick Start

import asyncio
from futunn import FutunnClient

async def main():
    client = FutunnClient()
    
    # Get top turnover US stocks
    stocks = await client.get_stock_list(
        market_type=2,      # US market
        rank_type=5,        # Top turnover
        page_size=50
    )
    
    print(f"Total: {stocks.pagination.total} stocks")
    for stock in stocks.stocks[:5]:
        print(f"{stock.stock_code}: ${stock.price_nominal}")

asyncio.run(main())

Requirements

  • Python >= 3.11
  • httpx[http2] >= 0.27.0

License

MIT License

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

futunn_helper-1.0.0.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

futunn_helper-1.0.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file futunn_helper-1.0.0.tar.gz.

File metadata

  • Download URL: futunn_helper-1.0.0.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.2

File hashes

Hashes for futunn_helper-1.0.0.tar.gz
Algorithm Hash digest
SHA256 043e08331ca63c4711e13774e29fb0e5999f5286d11ec6f24d6c4d93334b57c0
MD5 6eaeca79a95dd49f18c6965025fcc698
BLAKE2b-256 f8b5c42b0eb84fd80800ba84c6adecf53c729ad99f7b4a50cffeec2d99111b2a

See more details on using hashes here.

File details

Details for the file futunn_helper-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for futunn_helper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5960fa8852c136f96ef32ca020319243195a55b7837b26cb0b5ced1867d03317
MD5 0c09a55788d94b75e6c4c147a12b3f21
BLAKE2b-256 2bf9510a900e42c263729cb35d5cf84f3df2f8599f84264587774e0697eac74d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page