Socket
Socket
Sign inDemoInstall

formatting_btk

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    formatting_btk

This utility module, named `formatting`, provides essential functions for formatting numerical data and generating standardized chart URLs for cryptocurrency market data.


Version published
Maintainers
1
Install size
3.49 kB
Created

Readme

Source

Formatting data

This utility module, named formatting, provides essential functions for formatting numerical data and generating standardized chart URLs for cryptocurrency market data.

Designed to enhance readability and consistency across crypto-related projects, it's particularly useful for scripts interfacing with Binance data and sending alerts through Telegram.

Features

  • format_number: Formats large numerical values into a readable format with thousands separators.
  • generate_chart_url: Generates URLs for viewing cryptocurrency charts on TradingView, supporting multiple platforms.

Usage

Import the module into your Python scripts to utilize its functions for data presentation enhancements:

from formatting import format_number, generate_chart_url

EXAMPLE:
volume = 1234567.89
formatted_volume = format_number(volume)
print(formatted_volume)  # Outputs: 1,234,567.89

This README provides an overview of the formatting module's purpose, features, and basic usage, along with a simple example.

Adjust the content according to your project's specific details and requirements.

Keywords

FAQs

Last updated on 06 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc