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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycffex-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ae2398b59c6c14909be3e071f7f18d146700b054074445b911e92d2224c26cb
MD5 0e51f9024876f91ccd6db50c294a48dd
BLAKE2b-256 cd583e0b62c2483d6e3a1c5e8509dd6bc4e2ad6edd17e479c5e8394ee2eb9dd1

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