economic estimation
Project description
Bravo! You have received a Mercantilism Diploma in "rollercoaster" from the Orbital Convergence University International Air and Water Embassy of the Tangerine Planet (the planet that is one ellipse further from the Sun than Earth's ellipse).
You are now officially certified to include "rollercoaster" in your practice.
--
rollercoaster
install
pip install rollercoaster
rides (OCHLV)
rides.season_3.super_hero_trend
stats (options)
stats.aggregate_break_even
"""
formula:
for each contract:
Fraction (
summation (contract_price * break_even * open_interest * shares_per_contract),
summation (contract_price * open_interest * shares_per_contract)
)
"""
Tradier_API_authorization = ""
#
# This presumes that the symbol is unique...
#
import rollercoaster.clouds.Tradier.procedures.options.combine as combine_options
import rollercoaster.stats.aggregate_break_even as aggregate_break_even
break_evens = aggregate_break_even.calc ({
"expirations": combine_options.presently ({
"symbol": "SOYB",
"authorization": Tradier_API_authorization
})
})
import rich
rich.print_json (data = break_evens)
stats.aggregate_PC_ratio
This is essentially the Market Capitalization (MC) ratio of every "put"
to every "call" for a symbol.
example:
2 : 1
indicates that:
2/3 of the money is on puts
1/3 of the money is on calls
formula:
for each contract:
summation (contract_price * open_interest * shares_per_contract)
import rollercoaster.stats.aggregate_PC_ratio as aggregate_PC_ratio
import rollercoaster.clouds.Tradier.procedures.options.combine as combine_options
PC_ratios = aggregate_PC_ratio.calc ({
"expirations": combine_options.presently ({
"symbol": "SOYB",
"authorization": Tradier_API_authorization
})
})
import rich
rich.print_json (data = {
"PC ratios": PC_ratios
})
clouds
clouds.Coinbase.API.products.candles
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
rollercoaster-2.1.0.tar.gz
(46.1 kB
view hashes)
Built Distribution
Close
Hashes for rollercoaster-2.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f04aeb020fbeb7efb5f4c068e26f7ee56dd39a56382b4bdeb1064e231da4326 |
|
MD5 | 0d4a5f60c567a3ff07926975b34c6742 |
|
BLAKE2b-256 | 295ed60f9d9a8b23a2a5bbe98c0fef4d6a4942429c9392e0fd14cd7a982013c6 |