Skip to main content

JT-Lib Examples

Examples of using the jt-lib library with descriptions of functionality and used classes.

List of Examples

Gainers & Losers Example

File: Gainers-Losers-Example.ts

Description: Scans USDT-swap markets and finds symbols with strong daily movements (>30%).

Used Classes:

Functionality:

  • Historical candle data analysis
  • Price movement percentage calculation
  • Creating report tables with results

Grid Bot Example

File: GridBot-Example.ts

Description: Multi-currency grid strategy with automatic position management.

Used Classes:

Functionality:

  • Creating grid of limit orders
  • Automatic position management
  • Multi-currency trading

Indicators Example

File: Indicators-Example.ts

Description: Demonstration of working with technical indicators (SMA, ATR).

Used Classes:

Functionality:

  • Creating and initializing indicators
  • Real-time data display
  • Working with historical data

RSI Bot Example

File: RsiBot-Example.ts

Description: Trading strategy based on RSI indicator with automatic signals.

Used Classes:

Functionality:

  • RSI signal analysis (buy when RSI < 30, sell when RSI > 70)
  • Automatic position management
  • Stop-loss and take-profit orders

Trading API Example

File: Trading-Api-Example.ts

Description: Trading API demonstration with callback functions and action buttons.

Used Classes:

Functionality:

  • Interactive buttons for trading operations
  • Market data and account information retrieval
  • Creating, modifying and canceling orders
  • Callback functions for action handling

🔗 Official Resources