Metadata-Version: 2.1
Name: rollercoaster
Version: 2.1.2
Summary: economic estimation
License: GPL 3.0 + CC BY-NC-SA 4.0 + Mongo SSPL
Keywords: rain & pour,economic estimation,finance,commerce,wealth,money,treasures,treasury,subconscious trading,implicit trading
Requires-Python: >=3.10,<3.13
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: alpaca-py (>=0.20.3,<0.21.0)
Requires-Dist: arrow (>=1.3.0,<2.0.0)
Requires-Dist: backtrader (>=1.9.78.123,<2.0.0.0)
Requires-Dist: basana (>=1.5.0,<2.0.0)
Requires-Dist: ccxt (>=4.2.99,<5.0.0)
Requires-Dist: click (>=8.1.7,<9.0.0)
Requires-Dist: cryptography (>=42.0.5,<43.0.0)
Requires-Dist: cufflinks (>=0.17.3,<0.18.0)
Requires-Dist: dash (>=2.16.1,<3.0.0)
Requires-Dist: factory-farm (>=1.2.6,<2.0.0)
Requires-Dist: finvizfinance (>=0.14.7,<0.15.0)
Requires-Dist: ipychart (>=0.4.1,<0.5.0)
Requires-Dist: matplotlib (>=3.8.4,<4.0.0)
Requires-Dist: mortgage (>=1.0.5,<2.0.0)
Requires-Dist: numpy (>=1.26.4,<2.0.0)
Requires-Dist: pandas (>=2.2.2,<3.0.0)
Requires-Dist: pandas-datareader (>=0.10.0,<0.11.0)
Requires-Dist: pandas-ta (>=0.3.14b0,<0.4.0)
Requires-Dist: plotly (>=5.20.0,<6.0.0)
Requires-Dist: pydash (>=8.0.0,<9.0.0)
Requires-Dist: pyjsonviewer (>=1.6.0,<2.0.0)
Requires-Dist: pyjwt (>=2.8.0,<3.0.0)
Requires-Dist: quandl (>=3.7.0,<4.0.0)
Requires-Dist: ramps-galactic (>=1.1.1,<2.0.0)
Requires-Dist: sanic (>=23.12.1,<24.0.0)
Requires-Dist: semver (>=3.0.2,<4.0.0)
Requires-Dist: ships (>=1.2.7,<2.0.0)
Requires-Dist: somatic (>=3.0.2,<4.0.0)
Requires-Dist: stock-indicators (>=1.2.1,<2.0.0)
Requires-Dist: ta (>=0.11.0,<0.12.0)
Requires-Dist: tabulate (>=0.9.0,<0.10.0)
Requires-Dist: talipp (>=2.2.0,<3.0.0)
Requires-Dist: technical-indicators-lib (>=0.0.2,<0.0.3)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: tradingview-screener (>=2.4.1,<3.0.0)
Requires-Dist: tradingview-ta (>=3.3.0,<4.0.0)
Requires-Dist: yahooquery (>=2.3.7,<3.0.0)
Requires-Dist: yfinance (>=0.2.37,<0.3.0)
Project-URL: GitLab, https://gitlab.com/reptilian_climates/modules_series_4/apoplast
Description-Content-Type: text/markdown



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
```

## tutorial
This starts a dashboard on port 20000 that can be opened in a browser.
```
rollercoaster help
```
```
rollercoaster help --port 20001
```


## 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

