Skip to main content

Market liquidity proxies

Project description

Market Liquidity Proxies

This repository provides an overview of key market liquidity proxies and additional alternatives for crypto, bond, and stock markets. These proxies serve as indicators of market sentiment, risk appetite, and liquidity conditions.


Proxies Overview

Crypto Proxies

  1. Ethereum / Bitcoin (ETH / BTC): Reflects liquidity preference and risk sentiment within the cryptocurrency market. Barring idiosyncratic events it acts as a proxy for broader market liquidity.

Stock Market ETF Ratios

  1. QQQ / SPY Ratio: Reflects liquidity preference and risk sentiment within the US stock market. Shows the performance of high-beta QQQ (Nasdaq-100) vs. SPY (S&P 500).

Bond Market ETF Yield Spreads

Reflect funding stress in the broader market. When liquidity is ample, spreads tend to be tight, and they widen when liquidity is drained and stress builds in the system.

  1. HYG / LQD Spread: Measures the risk premium between high-yield (HYG) and investment-grade bonds (LQD).

  2. LQD / TNX Spread: Measures the risk premium between investment-grade bonds (LQD) and 10-year Treasury yields (UST-10Y).

Installation

Step 1

Install Poetry (if not already installed): You can install Poetry by following the instructions from their official website. For most systems, you can install it using this command:

curl -sSL https://install.python-poetry.org | python3 -

Alternatively, for Windows, you might use:

python -m pip install poetry

Step 2

Navigate to the Project Directory: After downloading the project, open a terminal or command prompt, and navigate to the project directory:

git clone https://github.com/mdambski/liquidity.git
cd liquidity

Step 3

Install the Dependencies: Run the following command to install all the dependencies specified in pyproject.toml:

poetry install

Step 4

Retrieve API Key: Go to the Alphavantage.co website and retrieve free api-key.

export ALPHAVANTAGE_API_KEY="<your-api-key>"
make run

This will generate summary of all liquidity proxies: Example chart displayed: Liquidity proxies

Data Sources

This repository is based on market data APIs providing free access to data.

Future Improvements

In the future I plan to add even more data providers and liquidity proxies. When there is enough features I will make a PyPI package to simplify installation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

liquidity-0.2.0.tar.gz (186.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

liquidity-0.2.0-py3-none-any.whl (192.7 kB view details)

Uploaded Python 3

File details

Details for the file liquidity-0.2.0.tar.gz.

File metadata

  • Download URL: liquidity-0.2.0.tar.gz
  • Upload date:
  • Size: 186.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.9 Windows/10

File hashes

Hashes for liquidity-0.2.0.tar.gz
Algorithm Hash digest
SHA256 06c7d358534edb365118752f79f17d3eb9716c175c82f75633f1b928713eaae6
MD5 ac628b260158a44d72d9ab85960acb35
BLAKE2b-256 599ff5fc3059ddaa025a183e7863461801d450cca3653b7a71b454fb5ccc4a25

See more details on using hashes here.

File details

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

File metadata

  • Download URL: liquidity-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 192.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.11.9 Windows/10

File hashes

Hashes for liquidity-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b002c80624d888eb9dfdcb574c880c199184cb80d0ddfb4537c90135f0b7329f
MD5 5d2cd236be651575d8f53e5ed2f5a285
BLAKE2b-256 96f38298f4dc1d7af060721312e379ba5f18b91801bc205b99edb49b78fb12ec

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