Skip to main content

cffex with python: gb futures, index futures, and options

Project description

CFFEX

A python package for China Financial Futures Exchange (CFFEX) products, including government bond futures, index futures, and index options.

Installation

pip install pycffex

GB Futures

  • Attributes
    • tenor: int, tenor of underlying, 2, 5, 10, or 30
    • code: str, code of futures of the given tenor, 'TS', 'TF', 'T', 'TL'
    • listdate
  • Methods
    • lasttradingday()
    • getcontracts(): contracts available on the given trading date
    • deliverable(): whether a given bond is deliverable for the given contract month
    • conversionfactor(): conversion factor of a given deliverable bond for the given contract month
    • invoiceprice(): invoice price for delivery
    • irr(): implied repo rate for a given deliverable bond
    • ...

Index Futures

Contracts

code underlying multiplier
IF csi 300 300
IC csi 500 200
IM csi 1000 200
IH sse 50 300
  • contract month: current month, next month, subsequent 2 quarterly month
  • last trading day: the 3rd Friday of contract month
  • delivery method: cash settlement
  • delivery date: last trading day

Attributes: underlying, code, listdate

Methods

  • lasttradingday(contractmon)
  • getcontracts(tradedate)
  • spothist(startdate, enddate)
  • futhist(startdate, enddate)
  • ...

Index Options

Contracts

code underlying multiplier
IO csi 300 100
MO csi 1000 100
HO sse 50 100
  • contract months: current month, next 2 months, subseuently 3 quarterly months
  • last trading day: the 3rd Friday of contract month
  • delivery method: cash settlement
  • delivery date: last trading day

Attributes: underlyings, multiplier, exercisetype, listdates

Methods

  • contractcode()
  • lasttradingday()
  • contractcode()
  • contractmons()
  • exercisedata()
  • impliedvolatility()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

pycffex-0.1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file pycffex-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycffex-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for pycffex-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45363993261a123d0a23f555a44b71e10082db21316b9d126ceb00bdcb2db57b
MD5 4f3034c78e3e1b4c1bbde1f6cb34ac42
BLAKE2b-256 5819556572181b93f3b86afd72f8d2f10e685f176a57454e03e2cedc1e511870

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