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.2.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycffex-0.2.0-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.11

File hashes

Hashes for pycffex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37eb2a041a85f27bb861050120ddbb9e09645c68edbe1df58c5051446eed7c8f
MD5 16ed73af83e4ec9187454b5a8189e9db
BLAKE2b-256 fdd333b905ab2103e398b6f861e6f738a6ecf91f38e5e537421d568c41fa289b

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