Metadata-Version: 2.3
Name: ithaca_py
Version: 0.3.9
Summary: Ithaca Protocol SDK
Author: nhaga
Author-email: nhaga5@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Provides-Extra: docs
Requires-Dist: base58 (==2.1.1)
Requires-Dist: cryptography (>=42.0.5,<43.0.0)
Requires-Dist: eth-account (>=0.13.1,<0.14.0)
Requires-Dist: mkdocs (>=1.6.1,<2.0.0)
Requires-Dist: mkdocs-material (>=9.6.1,<10.0.0)
Requires-Dist: pandas (>=2.1.4,<3.0.0)
Requires-Dist: pre-commit (>=3.6.0,<4.0.0)
Requires-Dist: pydantic (>=2.5.3,<3.0.0)
Requires-Dist: pydoc-markdown (>=4.8.2,<5.0.0)
Requires-Dist: requests (>=2.32.0,<3.0.0)
Requires-Dist: scipy (>=1.11.4,<2.0.0)
Requires-Dist: solders (==0.26.0)
Requires-Dist: tenacity (>=8.2.3,<9.0.0)
Requires-Dist: web3 (>=7.4.0,<8.0.0)
Requires-Dist: websocket-client (>=1.7.0,<2.0.0)
Description-Content-Type: text/markdown

# Ithaca SDK

## Modules

- Auth

  - login
  - logout
  - get_session_info

- Client

  - fundlock_state
  - curret_positions
  - trade_history
  - historical_positions
  - historical_positions_by_date

- FundLock #TODO

  - deposit
  - withdraw
  - cross_chain_deposit
  - get_cross_chain_tx_status
  - fundlock_history

- Protocol

  - system_info
  - next_auction
  - contract_list
  - contract_list_by_ids
  - historical_contracts

- Testnet

  - matched_orders
  - orderbook

- Orders

  - new
  - status
  - cancel
  - cancel_all
  - open_orders

- Market

  - spot_prices
  - reference_prices

- Calculation
  - calc_portfolio_collateral
  - estimate_order_payoff
  - estimate_order_lock
  - estimate_order_fees
  - black_formula_extended
  - black_vanilla_price
  - black_digital_price
  - implied_volatility

## Prepare

```
pre-commit run --all-files
```

## Docs

```
sphinx-apidoc -o docs ithaca
sphinx-build -M html docs docs/_build
```

## Tests

```python
pytest
```

