Skip to main content

easytrader

  • easy to use to trade in China Stock

Installation

pip install easytrader

Upgrade

pip install easytrader –upgrade

Quick Start

import easytrader

user = easytrader.use('ht')

user.prepare('account.json')

user.balance

return:

[{ 'asset_balance': '资产总值',
   'current_balance': '当前余额',
   'enable_balance': '可用金额',
   'market_value': '证券市值',
   'money_type': '币种',
   'pre_interest': '预计利息' ]}

user.position

return:

[{'cost_price': '摊薄成本价',
   'current_amount': '当前数量',
   'enable_amount': '可卖数量',
   'income_balance': '摊薄浮动盈亏',
   'keep_cost_price': '保本价',
   'last_price': '最新价',
   'market_value': '证券市值',
   'position_str': '定位串',
   'stock_code': '证券代码',
   'stock_name': '证券名称'}]

user.entrust

return:

[{'business_amount': '成交数量',
  'business_price': '成交价格',
  'entrust_amount': '委托数量',
  'entrust_bs': '买卖方向',
  'entrust_no': '委托编号',
  'entrust_price': '委托价格',
  'entrust_status': '委托状态',  # 废单 / 已报
  'report_time': '申报时间',
  'stock_code': '证券代码',
  'stock_name': '证券名称'}]

user.buy('162411', price=5.55)

user.sell('16411', price=5.65)

Metadata

Release files for easytrader-welaunch 0.18.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easytrader-welaunch 0.18.6
File Size Uploaded Provenance Actions
easytrader-welaunch-0.18.6.tar.gz 33.9 kB Without provenance Details for easytrader-welaunch-0.18.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easytrader-welaunch 0.18.6
File Interpreter ABI Platform Actions
easytrader_welaunch-0.18.6-py3-none-any.whl Python 3 none any Details for easytrader_welaunch-0.18.6-py3-none-any.whl

Total release size: 81.2 kB

Release files / easytrader-welaunch-0.18.6.tar.gz

Download URL easytrader-welaunch-0.18.6.tar.gz
Size 33.9 kB
Tags Source
SHA-256 checksum
How to use checksums
24f3befe41bf5a52a5e8a611ab4a3bd25260c36c8842ff4549f5bd7a704499b4
BLAKE2b-256 checksum
How to use checksums
8ad3b6db6a1d4a99f7841daa78d9ae1f483f5ef0a1db2d009bd7546df6dcd054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

Release files / easytrader_welaunch-0.18.6-py3-none-any.whl

Download URL easytrader_welaunch-0.18.6-py3-none-any.whl
Size 47.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
54c8f13d96ae16924d3bfb0d37b922778a4e6175dbc94baec1233ba354dbf954
BLAKE2b-256 checksum
How to use checksums
52dca8031043448613053832b9d081b50790a51de084f1dba069b0488c63292c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.10

Security for easytrader-welaunch 0.18.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page