🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

VBrokers Trading

by @lcy360

VBrokers (华盛通 VCL HK) trading automation via OpenAPI Gateway running on localhost port 11111. Use when: setting up VBrokers or 华盛通 account access, authentica...

Versionv1.0.0
💡 Examples

Copy scripts/vbrokers_client.py to your project and import it:

import sys
sys.path.insert(0, '/path/to/skill/scripts')
import vbrokers_client as vb

1. Login (required after Gateway restart)

vb.trade_login("your_trading_password")

2. Check account

funds = vb.get_account_funds("P") # P=US, K=HK

3. Get real-time quote (use correct mktTmType for time segment)

quote = vb.get_quotes_batch(["AAPL"], session=-1) # -1=pre-market

4. Place order

result = vb.place_order("AAPL", "P", "1", 1, 180.00) # BUY 1 share limit $180

5. Check positions

positions = vb.get_positions("P")

⚙️ Configuration

  • OpenAPI Gateway must be running locally (GUI app: 华盛通OpenAPIGateway.app)
  • Gateway URL: http://127.0.0.1:11111
  • AES key for password encryption: provided during account setup (see references/api-reference.md)
  • Python packages: pycryptodome (pip install pycryptodome)
  • View on ClawHub
    TERMINAL
    clawhub install vbrokers-trading

    🧪 Use this skill with your agent

    Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

    🔍 Can't find the right skill?

    Search 60,000+ AI agent skills — free, no login needed.

    Search Skills →