backtrader-binance


Namebacktrader-binance JSON
Version 2.0.5 PyPI version JSON
download
home_pagehttps://github.com/WISEPLAT/backtrader_binance
SummaryBinance API integration with Backtrader
upload_time2024-05-21 04:29:50
maintainerNone
docs_urlNone
authorwiseplat
requires_python>=3.7
licenseMIT License
keywords trading development
VCS
bugtrack_url
requirements python-binance backtrader pandas matplotlib
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # backtrader_binance

Binance API integration with [Backtrader](https://github.com/WISEPLAT/backtrader).



With this integration you can do:

 - Backtesting your strategy on historical data from the exchange [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader )  // Backtesting 

 - Launch trading systems for automatic trading on the exchange [Binance](https://accounts.binance.com/register?ref=200640624) + [Backtrader](https://github.com/WISEPLAT/backtrader ) // Live trading

 - Download historical data for cryptocurrencies from the exchange [Binance](https://accounts.binance.com/register?ref=200640624)



For API connection we are using library [python-binance](https://github.com/sammchardy/python-binance).



**You can say Thanks:**



USDT (Tron TRC20): TEHaXZX7KLjAm4eLWdf4VKfsqRUQpv8fTT



or by [**Binance**](https://accounts.binance.com/register?ref=200640624 ) **ID** **200640624** through the exchange (no commission)



or by [**Bybit**](https://www.bybit.com/invite?ref=KXLXXE%230 ) **UID** **112927970** through the exchange (no commission)



## Installation

1) The simplest way:

```shell

pip install backtrader_binance

```

or

```shell

git clone https://github.com/WISEPLAT/backtrader_binance

```

or

```shell

pip install git+https://github.com/WISEPLAT/backtrader_binance.git

```



2) Please use backtrader from my repository (as your can push your commits in it). Install it:

```shell

pip install git+https://github.com/WISEPLAT/backtrader.git

```

-- Can I use your binance interface with original backtrader?



-- Yes, you can use original backtrader, as the author of original backtrader had approved all my changes. 



Here is the link: [mementum/backtrader#472](https://github.com/mementum/backtrader/pull/472)



3) We have some dependencies, you need to install them: 

```shell

pip install python-binance backtrader pandas matplotlib

```



or



```shell

pip install -r requirements.txt

```



### Getting started

To make it easier to figure out how everything works, many examples have been made in the folders **DataExamplesBinance** and **StrategyExamplesBinance**.



Before running the example, you need to get your API key and Secret key, and put them in the file **ConfigBinance\Config.py:**



```python

# content of ConfigBinance\Config.py 

class Config:

    BINANCE_API_KEY = "YOUR_API_KEY"

    BINANCE_API_SECRET = "YOUR_SECRET_KEY"

```



#### How to get a Binance API token:

1. Register your account on [Binance](https://accounts.binance.com/register?ref=200640624 )

2. Go to the ["API Management"](https://www.binance.com/en/my/settings/api-management?ref=CPA_004RZBKQWK ) 

3. Then click the "Create API" button and select "System Generated".

4. In the "API Restrictions" section, enable "Enable Spot and Margin Trading".

5. Copy and paste to the file **ConfigBinance\Config.py ** received **"API key"** and **"Secret key"**



#### Now you can run examples



The **DataExamplesBinance** folder contains the code of examples for working with exchange data via the [Binance](https://accounts.binance.com/register?ref=200640624 ) API.



* **01 - Symbol.py** - trading strategy for obtaining historical and "live" data of one ticker for one timeframe

* **02 - Symbol data to DF.py** - export to csv file of historical data of one ticker for one timeframe

* **03 - Symbols.py** - trading strategy for multiple tickers on the same timeframe

* **04 - Resample.py** - trading strategy for obtaining data from one ticker for different timeframes by converting a smaller timeframe into a larger one

* **05 - Replay.py** - launching a trading strategy on a smaller timeframe, with processing on a larger one and displaying a larger interval chart

* **06 - Rollover.py** - launch of a trading strategy based on gluing data from a file with historical data and the last downloaded history from the broker

* **07 - Get Asset Balance.py** - getting the ticker balance directly through the Binance API

* **08 - Timeframes.py** - trading strategy is running on different timeframes.

* **09 - Get Asset Info.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.

* **09 - Get Asset Info - no Decimal.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.

* **09 - Get Asset Info - through client.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.

* **10 - Get Historical Data.py** - getting historical data through binance client for asset.

* **Strategy.py** - An example of a trading strategy that only outputs data of the OHLCV for ticker/tickers



The **StrategyExamplesBinance** folder contains the code of sample strategies.



* **01 - Live Trade - Just Buy and Sell.py** - An example of a live trading strategy for ETH ticker on the base USDT ticker.

  * The strategy shows how to Buy at Market or Limit order and how to Cancel order.

  * Example of placing and cancel orders on the Binance exchange.

    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed....

    * Please be aware! For Market order - it will be completed!

    * **Do not forget to cancel the submitted orders from the exchange after the test!**



 

* **01 - Live Trade.py** - An example of a live trading strategy for two BTC and ETH tickers on the base USDT ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

  * Example of placing and cancel orders on the Binance exchange.

    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... 

    * **Do not forget to cancel the submitted orders from the exchange after the test!**





* **02 - Live Trade MultiPortfolio.py** - An example of a live trading strategy for a set of tickers that can be transferred to the strategy in a list (BTC, ETH, BNB) on the base USDT ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

  * Example of placing and cancel orders on the Binance exchange.

    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... 

    * **Do not forget to cancel the submitted orders from the exchange after the test!**





* **03 - Live Trade ETH.py** - An example of a live trading strategy for two BNB and XMR tickers on the basic ETH ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

  * Example of placing and cancel orders on the Binance exchange.

    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... 

    * **Do not forget to cancel the submitted orders from the exchange after the test!**





* **04 - Offline Backtest.py** - An example of a trading strategy on a historical data - not live mode - for two BTC and ETH tickers on the base USDT ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

    * Not a live mode - for testing strategies without sending orders to the exchange!





* **05 - Offline Backtest MultiPortfolio.py** - An example of a trading strategy on a historical data - not live mode - for a set of tickers that can be transferred to the strategy in a list (BTC, ETH, BNB) on the base USDT ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

    * Not a live mode - for testing strategies without sending orders to the exchange!





* **06 - Live Trade Just Buy and Close by Market.py** - An example of a live trading strategy for ETH ticker on the base USDT ticker.

  * The strategy shows how to buy by close price and sell by market a little value of ETH after 3 bars.

  * Example of placing orders on the Binance exchange.

    * **Do not forget to cancel the submitted orders from the exchange after the test!**





* **07 - Offline Backtest Indicators.py** - An example of a trading strategy for a history test using SMA and RSI indicators - not live mode - for two BTC and ETH tickers on the base USDT ticker.

  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.

    * generates 177% of revenue at the time of video recording))

    * Non-live mode - for testing strategies without sending orders to the exchange!





* **08 - Offline Backtest Margin Trade with Leverage 50x - Linear Trade.py** - An example of a trading strategy with the use of margin Leverage 50x for a history backtest using SMA indicators - not live mode - for two BTC and ETH tickers on the base of USDT ticker.

  * The strategy shows how to apply indicators SMA to several tickers at the same time.

    * generates 792% of revenue at the time of file publishing

    * Non-live mode - for testing strategies without sending orders to the exchange!

  * The strategy shows how to use margin with Leverage 50x for backtest on history market data for cryptocurrencies.

```commandline

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Was money: 2000.00

Ending Portfolio Value: 17853.46

Remaining available funds: 4887.38

Assets in the amount of: 12966.08



2000.00 ==> 17853.46 ==> +792.67%



SQN:  AutoOrderedDict([('sqn', 1.0031776139642996), ('trades', 4)])

VWR:  OrderedDict([('vwr', 25.613023915870777)])

TDD:  OrderedDict([('maxdrawdown', 65.77087178559279), ('maxdrawdownperiod', 304)])

DD:  AutoOrderedDict([('len', 6), ('drawdown', 20.46618403019286), ('moneydown', 229.70872494394746), ('max', AutoOrderedDict([('len', 304), ('drawdown', 65.77087178559279), ('moneydown', 295.8359186842)]))])

AR:  OrderedDict([(2021, 0.0), (2022, -0.42822236821405035), (2023, 4.540830244681184), (2024, 1.8176719585784271)])

Profitability:  OrderedDict([('rtot', 2.1890502317806253), ('ravg', 0.0022178827069712515), ('rnorm', 0.7487590850582526), ('rnorm100', 74.87590850582527)])

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

```



## Thanks

- backtrader: Very simple and cool library!

- [python-binance](https://github.com/sammchardy/python-binance): For creating Binance API wrapper, shortening a lot of work.

- lindomar-oliveira for some code



## License

[MIT](https://choosealicense.com/licenses/mit)



## Important

Error correction, revision and development of the library is carried out by the author and the community!



**Push your commits!**



## Terms of Use

The backtrader_binance library, which allows you to integrate Backtrader and Binance API, is the **Program** created solely for the convenience of work.

When using the **Program**, the User is obliged to comply with the provisions of the current legislation of his country.

Using the **Program** are offered on an "AS IS" basis. No guarantees, either oral or written, are attached and are not provided.

The author and the community does not guarantee that all errors of the **Program** have been eliminated, respectively, the author and the community do not bear any responsibility for

the consequences of using the **Program**, including, but not limited to, any damage to equipment, computers, mobile devices,

User software caused by or related to the use of the **Program**, as well as for any financial losses

incurred by the User as a result of using the **Program**.

No one is responsible for data loss, losses, damages, including accidental or indirect, lost profits, loss of revenue or any other losses

related to the use of the **Program**.



The **Program** is distributed under the terms of the [MIT](https://choosealicense.com/licenses/mit ) license.



## Star History



Please put a Star 🌟 for this code



[![Star History Chart](https://api.star-history.com/svg?repos=WISEPLAT/backtrader_binance&type=Timeline)](https://star-history.com/#WISEPLAT/backtrader_binance&Timeline)



ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π° ΠΏΠΎΡΡ‚Π°Π²ΡŒΡ‚Π΅ Π—Π²Π΅Π·Π΄Ρƒ 🌟 этому ΠΊΠΎΠ΄Ρƒ



==========================================================================



# backtrader_binance



Π˜Π½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΡ Binance API с [Backtrader](https://github.com/WISEPLAT/backtrader ).



Π‘ ΠΏΠΎΠΌΠΎΡ‰ΡŒΡŽ этой ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΠΈ Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ Π΄Π΅Π»Π°Ρ‚ΡŒ:

- ВСстированиС вашСй стратСгии Π½Π° историчСских Π΄Π°Π½Π½Ρ‹Ρ… с Π±ΠΈΡ€ΠΆΠΈ [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader )

- Π—Π°ΠΏΡƒΡΠΊΠ°Ρ‚ΡŒ Ρ‚ΠΎΡ€Π³ΠΎΠ²Ρ‹Π΅ систСмы для автоматичСской Ρ‚ΠΎΡ€Π³ΠΎΠ²Π»ΠΈ Π½Π° Π±ΠΈΡ€ΠΆΠ΅ [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader ) 

- Π—Π°Π³Ρ€ΡƒΠΆΠ°Ρ‚ΡŒ историчСскиС Π΄Π°Π½Π½Ρ‹Π΅ ΠΏΠΎ ΠΊΡ€ΠΈΠΏΡ‚ΠΎΠ²Π°Π»ΡŽΡ‚Π°ΠΌ с Π±ΠΈΡ€ΠΆΠΈ [Binance](https://accounts.binance.com/register?ref=200640624 )



Для ΠΏΠΎΠ΄ΠΊΠ»ΡŽΡ‡Π΅Π½ΠΈΡ ΠΊ API ΠΌΡ‹ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠ΅ΠΌ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΡƒ [python-binance](https://github.com/sammchardy/python-binance ).



**МоТно ΡΠΊΠ°Π·Π°Ρ‚ΡŒ Бпасибо:**



USDT (Tron TRC20): TEHaXZX7KLjAm4eLWdf4VKfsqRUQpv8fTT



ΠΈΠ»ΠΈ ΠΏΠΎ [**Binance**](https://accounts.binance.com/register?ref=200640624 ) **ID** **200640624** Ρ‡Π΅Ρ€Π΅Π· Π±ΠΈΡ€ΠΆΡƒ (Π±Π΅Π· комиссии)



ΠΈΠ»ΠΈ ΠΏΠΎ [**Bybit**](https://www.bybit.com/invite?ref=KXLXXE%230 ) **UID** **112927970** Ρ‡Π΅Ρ€Π΅Π· Π±ΠΈΡ€ΠΆΡƒ (Π±Π΅Π· комиссии)



## Установка

1) Π‘Π°ΠΌΡ‹ΠΉ простой способ:

```shell

pip install backtrader_binance

```

ΠΈΠ»ΠΈ

```shell

git clone https://github.com/WISEPLAT/backtrader_binance

```

ΠΈΠ»ΠΈ

```shell

pip install git+https://github.com/WISEPLAT/backtrader_binance.git

```



2) ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΡƒΠΉΡ‚Π΅ backtrader ΠΈΠ· ΠΌΠΎΠ΅Π³ΠΎ рСпозитория (Ρ‚Π°ΠΊ ΠΊΠ°ΠΊ Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ Ρ€Π°Π·ΠΌΠ΅Ρ‰Π°Ρ‚ΡŒ Π² Π½Π΅ΠΌ свои ΠΊΠΎΠΌΠΌΠΈΡ‚Ρ‹). УстановитС Π΅Π³ΠΎ:

```shell

pip install git+https://github.com/WISEPLAT/backtrader.git

```

-- ΠœΠΎΠ³Ρƒ Π»ΠΈ я ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ ваш интСрфСйс binance с ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»ΡŒΠ½Ρ‹ΠΌ backtrader?



-- Π”Π°, Π²Ρ‹ ΠΌΠΎΠΆΠ΅Ρ‚Π΅ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»ΡŒΠ½Ρ‹ΠΉ backtrader, Ρ‚Π°ΠΊ ΠΊΠ°ΠΊ Π°Π²Ρ‚ΠΎΡ€ ΠΎΡ€ΠΈΠ³ΠΈΠ½Π°Π»ΡŒΠ½ΠΎΠ³ΠΎ backtrader ΠΎΠ΄ΠΎΠ±Ρ€ΠΈΠ» всС ΠΌΠΎΠΈ измСнСния.



Π’ΠΎΡ‚ ссылка: [mementum/backtrader#472](https://github.com/mementum/backtrader/pull/472)



3) Π£ нас Π΅ΡΡ‚ΡŒ Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ зависимости, Π²Π°ΠΌ Π½ΡƒΠΆΠ½ΠΎ ΠΈΡ… ΡƒΡΡ‚Π°Π½ΠΎΠ²ΠΈΡ‚ΡŒ:

```shell

pip install python-binance backtrader pandas matplotlib

```



ΠΈΠ»ΠΈ



```shell

pip install -r requirements.txt

```





### Начало Ρ€Π°Π±ΠΎΡ‚Ρ‹

Π§Ρ‚ΠΎΠ±Ρ‹ Π±Ρ‹Π»ΠΎ Π»Π΅Π³Ρ‡Π΅ Ρ€Π°Π·ΠΎΠ±Ρ€Π°Ρ‚ΡŒΡΡ ΠΊΠ°ΠΊ всё Ρ€Π°Π±ΠΎΡ‚Π°Π΅Ρ‚, сдСлано мноТСство ΠΏΡ€ΠΈΠΌΠ΅Ρ€ΠΎΠ² Π² ΠΏΠ°ΠΏΠΊΠ°Ρ… **DataExamplesBinance_ru** ΠΈ **StrategyExamplesBinance_ru**.



ΠŸΠ΅Ρ€Π΅Π΄ запуском ΠΏΡ€ΠΈΠΌΠ΅Ρ€Π°, Π½Π΅ΠΎΠ±Ρ…ΠΎΠ΄ΠΈΠΌΠΎ ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ свой API ΠΊΠ»ΡŽΡ‡ ΠΈ Secret ΠΊΠ»ΡŽΡ‡, ΠΈ ΠΏΡ€ΠΎΠΏΠΈΡΠ°Ρ‚ΡŒ ΠΈΡ… Π² Ρ„Π°ΠΉΠ»Π΅ **ConfigBinance\Config.py:**



```python

# content of ConfigBinance\Config.py 

class Config:

    BINANCE_API_KEY = "YOUR_API_KEY"

    BINANCE_API_SECRET = "YOUR_SECRET_KEY"

```



####  Как ΠΏΠΎΠ»ΡƒΡ‡ΠΈΡ‚ΡŒ Ρ‚ΠΎΠΊΠ΅Π½ Binance API:

1. ЗарСгистрируйтС свой Π°ΠΊΠΊΠ°ΡƒΠ½Ρ‚ Π½Π° [Binance](https://accounts.binance.com/register?ref=200640624 )

2. ΠŸΠ΅Ρ€Π΅ΠΉΠ΄ΠΈΡ‚Π΅ Π² Ρ€Π°Π·Π΄Π΅Π» ["Π£ΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ API"](https://www.binance.com/en/my/settings/api-management?ref=CPA_004RZBKQWK )

3. Π—Π°Ρ‚Π΅ΠΌ Π½Π°ΠΆΠΌΠΈΡ‚Π΅ ΠΊΠ½ΠΎΠΏΠΊΡƒ "Π‘ΠΎΠ·Π΄Π°Ρ‚ΡŒ API" ΠΈ Π²Ρ‹Π±Π΅Ρ€ΠΈΡ‚Π΅ "Π‘Π³Π΅Π½Π΅Ρ€ΠΈΡ€ΠΎΠ²Π°Π½Π½Ρ‹ΠΉ систСмой".

4. Π’ Ρ€Π°Π·Π΄Π΅Π»Π΅ "ΠžΠ³Ρ€Π°Π½ΠΈΡ‡Π΅Π½ΠΈΡ API" Π²ΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅ "Π’ΠΊΠ»ΡŽΡ‡ΠΈΡ‚ΡŒ ΡΠΏΠΎΡ‚ΠΎΠ²ΡƒΡŽ ΠΈ ΠΌΠ°Ρ€ΠΆΠΈΠ½Π°Π»ΡŒΠ½ΡƒΡŽ Ρ‚ΠΎΡ€Π³ΠΎΠ²Π»ΡŽ".

5. Π‘ΠΊΠΎΠΏΠΈΡ€ΡƒΠΉΡ‚Π΅ ΠΈ Π²ΡΡ‚Π°Π²ΡŒΡ‚Π΅ Π² Ρ„Π°ΠΉΠ» **ConfigBinance\Config.py** ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½Π½Ρ‹Π΅ **"ΠšΠ»ΡŽΡ‡ API"** ΠΈ **"Π‘Π΅ΠΊΡ€Π΅Ρ‚Π½Ρ‹ΠΉ ΠΊΠ»ΡŽΡ‡"**



#### Π’Π΅ΠΏΠ΅Ρ€ΡŒ ΠΌΠΎΠΆΠ½ΠΎ Π·Π°ΠΏΡƒΡΠΊΠ°Ρ‚ΡŒ ΠΏΡ€ΠΈΠΌΠ΅Ρ€Ρ‹



Π’ ΠΏΠ°ΠΏΠΊΠ΅ **DataExamplesBinance_ru** находится ΠΊΠΎΠ΄ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ΠΎΠ² ΠΏΠΎ Ρ€Π°Π±ΠΎΡ‚Π΅ с Π±ΠΈΡ€ΠΆΠ΅Π²Ρ‹ΠΌΠΈ Π΄Π°Π½Π½Ρ‹ΠΌΠΈ Ρ‡Π΅Ρ€Π΅Π· API интСрфСйс [Binance](https://accounts.binance.com/register?ref=200640624 ).



* **01 - Symbol.py** - торговая стратСгия для получСния историчСских ΠΈ "ΠΆΠΈΠ²Ρ‹Ρ…" Π΄Π°Π½Π½Ρ‹Ρ… ΠΎΠ΄Π½ΠΎΠ³ΠΎ Ρ‚ΠΈΠΊΠ΅Ρ€Π° ΠΏΠΎ ΠΎΠ΄Π½ΠΎΠΌΡƒ Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΡƒ

* **02 - Symbol data to DF.py** - экспорт Π² csv Ρ„Π°ΠΉΠ» историчСских Π΄Π°Π½Π½Ρ‹Ρ… ΠΎΠ΄Π½ΠΎΠ³ΠΎ Ρ‚ΠΈΠΊΠ΅Ρ€Π° ΠΏΠΎ ΠΎΠ΄Π½ΠΎΠΌΡƒ Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΡƒ

* **03 - Symbols.py** - торговая стратСгия для Π½Π΅ΡΠΊΠΎΠ»ΡŒΠΊΠΈΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² ΠΏΠΎ ΠΎΠ΄Π½ΠΎΠΌΡƒ Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΡƒ

* **04 - Resample.py** - торговая стратСгия для получСния Π΄Π°Π½Π½Ρ‹Ρ… ΠΎΠ΄Π½ΠΎΠ³ΠΎ Ρ‚ΠΈΠΊΠ΅Ρ€Π° ΠΏΠΎ Ρ€Π°Π·Π½Ρ‹ΠΌ Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΠ°ΠΌ ΠΌΠ΅Ρ‚ΠΎΠ΄ΠΎΠΌ ΠΊΠΎΠ½Π²Π΅Ρ€Ρ‚Π°Ρ†ΠΈΠΈ мСньшСго Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΠ° Π² больший

* **05 - Replay.py** - запуск Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π½Π° мСньшСм Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΠ΅, с ΠΎΠ±Ρ€Π°Π±ΠΎΡ‚ΠΊΠΎΠΉ Π½Π° большСм ΠΈ Π²Ρ‹Π²ΠΎΠ΄ΠΎΠΌ Π³Ρ€Π°Ρ„ΠΈΠΊΠ° большСго ΠΈΠ½Ρ‚Π΅Ρ€Π²Π°Π»Π°

* **06 - Rollover.py** - запуск Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π½Π° склСйкС Π΄Π°Π½Π½Ρ‹Ρ… ΠΈΠ· Ρ„Π°ΠΉΠ»Π° с историчСскими Π΄Π°Π½Π½Ρ‹ΠΌΠΈ ΠΈ послСднСй Π·Π°Π³Ρ€ΡƒΠΆΠ΅Π½Π½ΠΎΠΉ истории с Π±Ρ€ΠΎΠΊΠ΅Ρ€Π°

* **07 - Get Asset Balance.py** - ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ баланса Ρ‚ΠΈΠΊΠ΅Ρ€Π° Π½Π°ΠΏΡ€ΡΠΌΡƒΡŽ Ρ‡Π΅Ρ€Π΅Π· API Binance

* **08 - Timeframes.py** - торговая стратСгия для ΠΎΠ΄Π½ΠΎΠ³ΠΎ Ρ‚ΠΈΠΊΠ΅Ρ€Π° ΠΏΠΎ Ρ€Π°Π·Π½Ρ‹ΠΌ Ρ‚Π°ΠΉΠΌΡ„Ρ€Π΅ΠΉΠΌΠ°ΠΌ

* **09 - Get Asset Info.py** - ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎΠ± Π°ΠΊΡ‚ΠΈΠ²Π΅: баланс, Ρ€Π°Π·ΠΌΠ΅Ρ€ Π»ΠΎΡ‚Π°, ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ шаг Ρ†Π΅Π½Ρ‹, минимальная ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ ΠΏΠΎΠΊΡƒΠΏΠΊΠΈ ΠΈ Ρ‚.Π΄.

* **09 - Get Asset Info - no Decimal.py** - ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎΠ± Π°ΠΊΡ‚ΠΈΠ²Π΅: баланс, Ρ€Π°Π·ΠΌΠ΅Ρ€ Π»ΠΎΡ‚Π°, ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ шаг Ρ†Π΅Π½Ρ‹, минимальная ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ ΠΏΠΎΠΊΡƒΠΏΠΊΠΈ ΠΈ Ρ‚.Π΄.

* **09 - Get Asset Info - through client.py** - ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ ΠΈΠ½Ρ„ΠΎΡ€ΠΌΠ°Ρ†ΠΈΠΈ ΠΎΠ± Π°ΠΊΡ‚ΠΈΠ²Π΅: баланс, Ρ€Π°Π·ΠΌΠ΅Ρ€ Π»ΠΎΡ‚Π°, ΠΌΠΈΠ½ΠΈΠΌΠ°Π»ΡŒΠ½Ρ‹ΠΉ шаг Ρ†Π΅Π½Ρ‹, минимальная ΡΡ‚ΠΎΠΈΠΌΠΎΡΡ‚ΡŒ ΠΏΠΎΠΊΡƒΠΏΠΊΠΈ ΠΈ Ρ‚.Π΄.

* **10 - Get Historical Data.py** - ΠΏΠΎΠ»ΡƒΡ‡Π΅Π½ΠΈΠ΅ историчСских Π΄Π°Π½Π½Ρ‹Ρ… Ρ‡Π΅Ρ€Π΅Π· ΠΊΠ»ΠΈΠ΅Π½Ρ‚ binance для Π°ΠΊΡ‚ΠΈΠ²Π°.

* **Strategy.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии, которая Ρ‚ΠΎΠ»ΡŒΠΊΠΎ Π²Ρ‹Π²ΠΎΠ΄ΠΈΡ‚ Π΄Π°Π½Π½Ρ‹Π΅ ΠΏΠΎ Ρ‚ΠΈΠΊΠ΅Ρ€Ρƒ/Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ OHLCV



Π’ ΠΏΠ°ΠΏΠΊΠ΅ **StrategyExamplesBinance_ru** находится ΠΊΠΎΠ΄ ΠΏΡ€ΠΈΠΌΠ΅Ρ€ΠΎΠ² стратСгий.  



* **01 - Live Trade - Just Buy and Sell.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π² live Ρ€Π΅ΠΆΠΈΠΌΠ΅ для ETH Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ Π²Ρ‹ΡΡ‚Π°Π²Π»ΡΡ‚ΡŒ ΠžΡ€Π΄Π΅Ρ€ ΠΏΠΎ Π Ρ‹Π½ΠΊΡƒ ΠΈ Π›ΠΈΠΌΠΈΡ‚Π½Ρ‹ΠΉ ΠΎΡ€Π΄Π΅Ρ€ ΠΈ ΠΊΠ°ΠΊ ΠΎΡ‚ΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΎΡ€Π΄Π΅Ρ€. 

  * ΠŸΡ€ΠΈΠΌΠ΅Ρ€ выставлСния заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ Binance ΠΈ ΠΈΡ… снятиС.

    * ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΠΌΠ΅ΠΉΡ‚Π΅ Π² Π²ΠΈΠ΄Ρƒ! Π­Ρ‚ΠΎ live Ρ€Π΅ΠΆΠΈΠΌ - Ссли Π½Π° Ρ€Ρ‹Π½ΠΊΠ΅ ΠΏΡ€ΠΎΠΈΠ·ΠΎΠΉΠ΄Π΅Ρ‚ Π·Π½Π°Ρ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠ΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Ρ†Π΅Π½Ρ‹ Π² сторону пониТСния Π±ΠΎΠ»Π΅Π΅ Ρ‡Π΅ΠΌ Π½Π° 5% - ΠΎΡ€Π΄Π΅Ρ€ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ Π²Ρ‹ΠΏΠΎΠ»Π½Π΅Π½....

    * ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΠΌΠ΅ΠΉΡ‚Π΅ Π² Π²ΠΈΠ΄Ρƒ! Для ΠΎΡ€Π΄Π΅Ρ€Π° ΠΏΠΎ Π Ρ‹Π½ΠΊΡƒ - ΠΎΠ½ Π±ΡƒΠ΄Π΅Ρ‚ Π²Ρ‹ΠΏΠΎΠ»Π½Π΅Π½....

    * **НС Π·Π°Π±ΡƒΠ΄ΡŒΡ‚Π΅ послС тСста ΡΠ½ΡΡ‚ΡŒ с Π±ΠΈΡ€ΠΆΠΈ выставлСнныС заявки!**





* **01 - Live Trade.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π² live Ρ€Π΅ΠΆΠΈΠΌΠ΅ для Π΄Π²ΡƒΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² BTC ΠΈ ETH Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ. 

  * ΠŸΡ€ΠΈΠΌΠ΅Ρ€ выставлСния заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ Binance ΠΈ ΠΈΡ… снятиС.

    * ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΠΌΠ΅ΠΉΡ‚Π΅ Π² Π²ΠΈΠ΄Ρƒ! Π­Ρ‚ΠΎ live Ρ€Π΅ΠΆΠΈΠΌ - Ссли Π½Π° Ρ€Ρ‹Π½ΠΊΠ΅ ΠΏΡ€ΠΎΠΈΠ·ΠΎΠΉΠ΄Π΅Ρ‚ Π·Π½Π°Ρ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠ΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Ρ†Π΅Π½Ρ‹ Π² сторону пониТСния Π±ΠΎΠ»Π΅Π΅ Ρ‡Π΅ΠΌ Π½Π° 5% - ΠΎΡ€Π΄Π΅Ρ€ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ Π²Ρ‹ΠΏΠΎΠ»Π½Π΅Π½.... 

    * **НС Π·Π°Π±ΡƒΠ΄ΡŒΡ‚Π΅ послС тСста ΡΠ½ΡΡ‚ΡŒ с Π±ΠΈΡ€ΠΆΠΈ выставлСнныС заявки!**





* **02 - Live Trade MultiPortfolio.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π² live Ρ€Π΅ΠΆΠΈΠΌΠ΅ для мноТСства Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ², ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠ΅Ρ€Π΅Π΄Π°Π²Π°Ρ‚ΡŒ Π² ΡΡ‚Ρ€Π°Ρ‚Π΅Π³ΠΈΡŽ списком (BTC, ETH, BNB) Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ. 

  * ΠŸΡ€ΠΈΠΌΠ΅Ρ€ выставлСния заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ Binance ΠΈ ΠΈΡ… снятиС.

    * ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΠΌΠ΅ΠΉΡ‚Π΅ Π² Π²ΠΈΠ΄Ρƒ! Π­Ρ‚ΠΎ live Ρ€Π΅ΠΆΠΈΠΌ - Ссли Π½Π° Ρ€Ρ‹Π½ΠΊΠ΅ ΠΏΡ€ΠΎΠΈΠ·ΠΎΠΉΠ΄Π΅Ρ‚ Π·Π½Π°Ρ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠ΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Ρ†Π΅Π½Ρ‹ Π² сторону пониТСния Π±ΠΎΠ»Π΅Π΅ Ρ‡Π΅ΠΌ Π½Π° 5% - ΠΎΡ€Π΄Π΅Ρ€ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ Π²Ρ‹ΠΏΠΎΠ»Π½Π΅Π½....

    * **НС Π·Π°Π±ΡƒΠ΄ΡŒΡ‚Π΅ послС тСста ΡΠ½ΡΡ‚ΡŒ с Π±ΠΈΡ€ΠΆΠΈ выставлСнныС заявки!**

 



* **03 - Live Trade ETH.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π² live Ρ€Π΅ΠΆΠΈΠΌΠ΅ для Π΄Π²ΡƒΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² BNB ΠΈ XMR Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ ETH. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ. 

  * ΠŸΡ€ΠΈΠΌΠ΅Ρ€ выставлСния заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ Binance ΠΈ ΠΈΡ… снятиС.

    * ΠŸΠΎΠΆΠ°Π»ΡƒΠΉΡΡ‚Π°, ΠΈΠΌΠ΅ΠΉΡ‚Π΅ Π² Π²ΠΈΠ΄Ρƒ! Π­Ρ‚ΠΎ live Ρ€Π΅ΠΆΠΈΠΌ - Ссли Π½Π° Ρ€Ρ‹Π½ΠΊΠ΅ ΠΏΡ€ΠΎΠΈΠ·ΠΎΠΉΠ΄Π΅Ρ‚ Π·Π½Π°Ρ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠ΅ ΠΈΠ·ΠΌΠ΅Π½Π΅Π½ΠΈΠ΅ Ρ†Π΅Π½Ρ‹ Π² сторону пониТСния Π±ΠΎΠ»Π΅Π΅ Ρ‡Π΅ΠΌ Π½Π° 5% - ΠΎΡ€Π΄Π΅Ρ€ ΠΌΠΎΠΆΠ΅Ρ‚ Π±Ρ‹Ρ‚ΡŒ Π²Ρ‹ΠΏΠΎΠ»Π½Π΅Π½....

    * **НС Π·Π°Π±ΡƒΠ΄ΡŒΡ‚Π΅ послС тСста ΡΠ½ΡΡ‚ΡŒ с Π±ΠΈΡ€ΠΆΠΈ выставлСнныС заявки!**

 



* **04 - Offline Backtest.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии для тСста Π½Π° истории - Π½Π΅ live Ρ€Π΅ΠΆΠΈΠΌ - для Π΄Π²ΡƒΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² BTC ΠΈ ETH Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ.

    * НС live Ρ€Π΅ΠΆΠΈΠΌ - для тСстирования стратСгий Π±Π΅Π· ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ!





* **05 - Offline Backtest MultiPortfolio.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии для тСста Π½Π° истории - Π½Π΅ live Ρ€Π΅ΠΆΠΈΠΌ - для мноТСства Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ², ΠΊΠΎΡ‚ΠΎΡ€Ρ‹Π΅ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠ΅Ρ€Π΅Π΄Π°Π²Π°Ρ‚ΡŒ Π² ΡΡ‚Ρ€Π°Ρ‚Π΅Π³ΠΈΡŽ списком (BTC, ETH, BNB) Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ.

    * НС live Ρ€Π΅ΠΆΠΈΠΌ - для тСстирования стратСгий Π±Π΅Π· ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ!





* **06 - Live Trade Just Buy and Close by Market.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии Π² live для Ρ‚ΠΈΠΊΠ΅Ρ€Π° ETH Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT.

  * БтратСгия ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, ΠΊΠ°ΠΊ ΠΏΠΎΠΊΡƒΠΏΠ°Ρ‚ΡŒ ΠΏΠΎ Ρ†Π΅Π½Π΅ закрытия ΠΈ ΠΏΡ€ΠΎΠ΄Π°Π²Π°Ρ‚ΡŒ ΠΏΠΎ Ρ€Ρ‹Π½ΠΎΡ‡Π½ΠΎΠΉ нСбольшоС количСство ETH Ρ‡Π΅Ρ€Π΅Π· 3 Π±Π°Ρ€Π°.

  * ΠŸΡ€ΠΈΠΌΠ΅Ρ€ размСщСния ΠΎΡ€Π΄Π΅Ρ€ΠΎΠ² Π½Π° Π±ΠΈΡ€ΠΆΠ΅ Binance.

    * **НС Π·Π°Π±ΡƒΠ΄ΡŒΡ‚Π΅ ΠΎΡ‚ΠΌΠ΅Π½ΠΈΡ‚ΡŒ выставлСнныС ΠΎΡ€Π΄Π΅Ρ€Π° с Π±ΠΈΡ€ΠΆΠΈ послС тСстирования!**





* **07 - Offline Backtest Indicators.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии для тСста Π½Π° истории с использованиСм ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€ΠΎΠ² SMA ΠΈ RSI - Π½Π΅ live Ρ€Π΅ΠΆΠΈΠΌ - для Π΄Π²ΡƒΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² BTC ΠΈ ETH Π½Π° Π±Π°Π·ΠΎΠ²ΠΎΠΌ Ρ‚ΠΈΠΊΠ΅Ρ€Π΅ USDT. 

  * Π’ стратСгии ΠΏΠΎΠΊΠ°Π·Π°Π½ΠΎ ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ (SMA, RSI) ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ.

    * Π³Π΅Π½Π΅Ρ€ΠΈΡ‚ 177% Π΄ΠΎΡ…ΠΎΠ΄Π° Π½Π° ΠΌΠΎΠΌΠ΅Π½Ρ‚ записи Π²ΠΈΠ΄Π΅ΠΎ )) 

    * НС live Ρ€Π΅ΠΆΠΈΠΌ - для тСстирования стратСгий Π±Π΅Π· ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ заявок Π½Π° Π±ΠΈΡ€ΠΆΡƒ!





* **08 - Offline Backtest Margin Trade with Leverage 50x - Linear Trade.py** - ΠŸΡ€ΠΈΠΌΠ΅Ρ€ Ρ‚ΠΎΡ€Π³ΠΎΠ²ΠΎΠΉ стратСгии с использованиСм ΠΌΠ°Ρ€ΠΆΠΈΠ½Π°Π»ΡŒΠ½ΠΎΠ³ΠΎ ΠΏΠ»Π΅Ρ‡Π° 50x для историчСского бэктСста с использованиСм ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€ΠΎΠ² SMA - Π½Π΅ Π² Ρ€Π΅ΠΆΠΈΠΌΠ΅ Ρ€Π΅Π°Π»ΡŒΠ½ΠΎΠ³ΠΎ Π²Ρ€Π΅ΠΌΠ΅Π½ΠΈ - для Π΄Π²ΡƒΡ… Ρ‚ΠΈΠΊΠ΅Ρ€ΠΎΠ² BTC ΠΈ ETH Π½Π° основС Ρ‚ΠΈΠΊΠ΅Ρ€Π° USDT.

  * БтратСгия ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, ΠΊΠ°ΠΊ ΠΏΡ€ΠΈΠΌΠ΅Π½ΡΡ‚ΡŒ ΠΈΠ½Π΄ΠΈΠΊΠ°Ρ‚ΠΎΡ€Ρ‹ SMA ΠΊ нСскольким Ρ‚ΠΈΠΊΠ΅Ρ€Π°ΠΌ ΠΎΠ΄Π½ΠΎΠ²Ρ€Π΅ΠΌΠ΅Π½Π½ΠΎ.

    * Π³Π΅Π½Π΅Ρ€ΠΈΡ€ΡƒΠ΅Ρ‚ 792% Π΄ΠΎΡ…ΠΎΠ΄Π° Π½Π° ΠΌΠΎΠΌΠ΅Π½Ρ‚ ΠΏΡƒΠ±Π»ΠΈΠΊΠ°Ρ†ΠΈΠΈ Ρ„Π°ΠΉΠ»Π°

    * НС live Ρ€Π΅ΠΆΠΈΠΌ - для тСстирования стратСгий Π±Π΅Π· ΠΎΡ‚ΠΏΡ€Π°Π²ΠΊΠΈ ΠΎΡ€Π΄Π΅Ρ€ΠΎΠ² Π½Π° Π±ΠΈΡ€ΠΆΡƒ!!

  * БтратСгия ΠΏΠΎΠΊΠ°Π·Ρ‹Π²Π°Π΅Ρ‚, ΠΊΠ°ΠΊ ΠΈΡΠΏΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚ΡŒ ΠΌΠ°Ρ€ΠΆΠΈΠ½Π°Π»ΡŒΠ½ΡƒΡŽ Ρ‚ΠΎΡ€Π³ΠΎΠ²Π»ΡŽ с ΠΊΡ€Π΅Π΄ΠΈΡ‚Π½Ρ‹ΠΌ ΠΏΠ»Π΅Ρ‡ΠΎΠΌ 50x для тСстирования Π½Π° историчСских Ρ€Ρ‹Π½ΠΎΡ‡Π½Ρ‹Ρ… Π΄Π°Π½Π½Ρ‹Ρ… для ΠΊΡ€ΠΈΠΏΡ‚ΠΎΠ²Π°Π»ΡŽΡ‚.

```commandline

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

Was money: 2000.00

Ending Portfolio Value: 17853.46

Remaining available funds: 4887.38

Assets in the amount of: 12966.08



2000.00 ==> 17853.46 ==> +792.67%



SQN:  AutoOrderedDict([('sqn', 1.0031776139642996), ('trades', 4)])

VWR:  OrderedDict([('vwr', 25.613023915870777)])

TDD:  OrderedDict([('maxdrawdown', 65.77087178559279), ('maxdrawdownperiod', 304)])

DD:  AutoOrderedDict([('len', 6), ('drawdown', 20.46618403019286), ('moneydown', 229.70872494394746), ('max', AutoOrderedDict([('len', 304), ('drawdown', 65.77087178559279), ('moneydown', 295.8359186842)]))])

AR:  OrderedDict([(2021, 0.0), (2022, -0.42822236821405035), (2023, 4.540830244681184), (2024, 1.8176719585784271)])

Profitability:  OrderedDict([('rtot', 2.1890502317806253), ('ravg', 0.0022178827069712515), ('rnorm', 0.7487590850582526), ('rnorm100', 74.87590850582527)])

$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$

```



## Бпасибо

- backtrader: ΠΎΡ‡Π΅Π½ΡŒ простая ΠΈ классная Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ°!

- [python-binance](https://github.com/sammchardy/python-binance ): Для создания ΠΎΠ±ΠΎΠ»ΠΎΡ‡ΠΊΠΈ Binance API, ΡΠΎΠΊΡ€Π°Ρ‰Π°ΡŽΡ‰Π΅ΠΉ Π±ΠΎΠ»ΡŒΡˆΡƒΡŽ Ρ‡Π°ΡΡ‚ΡŒ Ρ€Π°Π±ΠΎΡ‚Ρ‹.

- lindomar-oliveira Π·Π° Π½Π΅ΠΊΠΎΡ‚ΠΎΡ€Ρ‹ΠΉ ΠΊΠΎΠ΄



## Π’Π°ΠΆΠ½ΠΎ

Π˜ΡΠΏΡ€Π°Π²Π»Π΅Π½ΠΈΠ΅ ошибок, Π΄ΠΎΡ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΈ Ρ€Π°Π·Π²ΠΈΡ‚ΠΈΠ΅ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ осущСствляСтся Π°Π²Ρ‚ΠΎΡ€ΠΎΠΌ ΠΈ сообщСством!



**ΠŸΡƒΡˆΡŒΡ‚Π΅ ваши ΠΊΠΎΠΌΠΌΠΈΡ‚Ρ‹!** 



# Условия использования

Π‘ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠ° backtrader_binance ΠΏΠΎΠ·Π²ΠΎΠ»ΡΡŽΡ‰Π°Ρ Π΄Π΅Π»Π°Ρ‚ΡŒ ΠΈΠ½Ρ‚Π΅Π³Ρ€Π°Ρ†ΠΈΡŽ Backtrader ΠΈ Binance API - это **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ°** созданная ΠΈΡΠΊΠ»ΡŽΡ‡ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎ для удобства Ρ€Π°Π±ΠΎΡ‚Ρ‹.

ΠŸΡ€ΠΈ использовании **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹** ΠŸΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»ΡŒ обязан ΡΠΎΠ±Π»ΡŽΠ΄Π°Ρ‚ΡŒ полоТСния Π΄Π΅ΠΉΡΡ‚Π²ΡƒΡŽΡ‰Π΅Π³ΠΎ Π·Π°ΠΊΠΎΠ½ΠΎΠ΄Π°Ρ‚Π΅Π»ΡŒΡΡ‚Π²Π° Российской Π€Π΅Π΄Π΅Ρ€Π°Ρ†ΠΈΠΈ ΠΈΠ»ΠΈ своСй страны.

ИспользованиС **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹** прСдлагаСтся ΠΏΠΎ ΠΏΡ€ΠΈΠ½Ρ†ΠΈΠΏΡƒ «Как Π΅ΡΡ‚ΡŒΒ» (Β«AS ISΒ»). Никаких Π³Π°Ρ€Π°Π½Ρ‚ΠΈΠΉ, ΠΊΠ°ΠΊ устных, Ρ‚Π°ΠΊ ΠΈ ΠΏΠΈΡΡŒΠΌΠ΅Π½Π½Ρ‹Ρ… Π½Π΅ прилагаСтся ΠΈ Π½Π΅ прСдусматриваСтся.

Автор ΠΈ сообщСство Π½Π΅ Π΄Π°Π΅Ρ‚ Π³Π°Ρ€Π°Π½Ρ‚ΠΈΠΈ, Ρ‡Ρ‚ΠΎ всС ошибки **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹** Π±Ρ‹Π»ΠΈ устранСны, соотвСтствСнно Π°Π²Ρ‚ΠΎΡ€ ΠΈ сообщСство Π½Π΅ нСсСт Π½ΠΈΠΊΠ°ΠΊΠΎΠΉ отвСтствСнности Π·Π°

послСдствия использования **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹**, Π²ΠΊΠ»ΡŽΡ‡Π°Ρ, Π½ΠΎ, Π½Π΅ ΠΎΠ³Ρ€Π°Π½ΠΈΡ‡ΠΈΠ²Π°ΡΡΡŒ Π»ΡŽΠ±Ρ‹ΠΌ ΡƒΡ‰Π΅Ρ€Π±ΠΎΠΌ ΠΎΠ±ΠΎΡ€ΡƒΠ΄ΠΎΠ²Π°Π½ΠΈΡŽ, ΠΊΠΎΠΌΠΏΡŒΡŽΡ‚Π΅Ρ€Π°ΠΌ, ΠΌΠΎΠ±ΠΈΠ»ΡŒΠ½Ρ‹ΠΌ устройствам, 

ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠΌΡƒ ΠΎΠ±Π΅ΡΠΏΠ΅Ρ‡Π΅Π½ΠΈΡŽ ΠŸΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Ρ Π²Ρ‹Π·Π²Π°Π½Π½Ρ‹ΠΌ ΠΈΠ»ΠΈ связанным с использованиСм **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹**, Π° Ρ‚Π°ΠΊΠΆΠ΅ Π·Π° Π»ΡŽΠ±Ρ‹Π΅ финансовыС ΠΏΠΎΡ‚Π΅Ρ€ΠΈ,

понСсСнныС ΠŸΠΎΠ»ΡŒΠ·ΠΎΠ²Π°Ρ‚Π΅Π»Π΅ΠΌ Π² Ρ€Π΅Π·ΡƒΠ»ΡŒΡ‚Π°Ρ‚Π΅ использования **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹**.

Никто Π½Π΅ отвСтствСнСн Π·Π° ΠΏΠΎΡ‚Π΅Ρ€ΡŽ Π΄Π°Π½Π½Ρ‹Ρ…, ΡƒΠ±Ρ‹Ρ‚ΠΊΠΈ, ΡƒΡ‰Π΅Ρ€Π±, Π²ΠΊΠ»ΡŽΡ‡Π°ΡŽ случайный ΠΈΠ»ΠΈ косвСнный, ΡƒΠΏΡƒΡ‰Π΅Π½Π½ΡƒΡŽ Π²Ρ‹Π³ΠΎΠ΄Ρƒ, ΠΏΠΎΡ‚Π΅Ρ€ΡŽ Π΄ΠΎΡ…ΠΎΠ΄ΠΎΠ² ΠΈΠ»ΠΈ Π»ΡŽΠ±Ρ‹Π΅ Π΄Ρ€ΡƒΠ³ΠΈΠ΅ ΠΏΠΎΡ‚Π΅Ρ€ΠΈ,

связанныС с использованиСм **ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΡ‹**.



**ΠŸΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ°** распространяСтся Π½Π° условиях Π»ΠΈΡ†Π΅Π½Π·ΠΈΠΈ [MIT](https://choosealicense.com/licenses/mit).


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/WISEPLAT/backtrader_binance",
    "name": "backtrader-binance",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "trading, development",
    "author": "wiseplat",
    "author_email": "oshpagin@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ee/89/981af1546ae4560676c2545a1f1361f7ca31c69089e9965c98774b9ed7a4/backtrader_binance-2.0.5.tar.gz",
    "platform": null,
    "description": "# backtrader_binance\r\n\r\nBinance API integration with [Backtrader](https://github.com/WISEPLAT/backtrader).\r\n\r\n\r\n\r\nWith this integration you can do:\r\n\r\n - Backtesting your strategy on historical data from the exchange [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader )  // Backtesting \r\n\r\n - Launch trading systems for automatic trading on the exchange [Binance](https://accounts.binance.com/register?ref=200640624) + [Backtrader](https://github.com/WISEPLAT/backtrader ) // Live trading\r\n\r\n - Download historical data for cryptocurrencies from the exchange [Binance](https://accounts.binance.com/register?ref=200640624)\r\n\r\n\r\n\r\nFor API connection we are using library [python-binance](https://github.com/sammchardy/python-binance).\r\n\r\n\r\n\r\n**You can say Thanks:**\r\n\r\n\r\n\r\nUSDT (Tron TRC20): TEHaXZX7KLjAm4eLWdf4VKfsqRUQpv8fTT\r\n\r\n\r\n\r\nor by [**Binance**](https://accounts.binance.com/register?ref=200640624 ) **ID** **200640624** through the exchange (no commission)\r\n\r\n\r\n\r\nor by [**Bybit**](https://www.bybit.com/invite?ref=KXLXXE%230 ) **UID** **112927970** through the exchange (no commission)\r\n\r\n\r\n\r\n## Installation\r\n\r\n1) The simplest way:\r\n\r\n```shell\r\n\r\npip install backtrader_binance\r\n\r\n```\r\n\r\nor\r\n\r\n```shell\r\n\r\ngit clone https://github.com/WISEPLAT/backtrader_binance\r\n\r\n```\r\n\r\nor\r\n\r\n```shell\r\n\r\npip install git+https://github.com/WISEPLAT/backtrader_binance.git\r\n\r\n```\r\n\r\n\r\n\r\n2) Please use backtrader from my repository (as your can push your commits in it). Install it:\r\n\r\n```shell\r\n\r\npip install git+https://github.com/WISEPLAT/backtrader.git\r\n\r\n```\r\n\r\n-- Can I use your binance interface with original backtrader?\r\n\r\n\r\n\r\n-- Yes, you can use original backtrader, as the author of original backtrader had approved all my changes. \r\n\r\n\r\n\r\nHere is the link: [mementum/backtrader#472](https://github.com/mementum/backtrader/pull/472)\r\n\r\n\r\n\r\n3) We have some dependencies, you need to install them: \r\n\r\n```shell\r\n\r\npip install python-binance backtrader pandas matplotlib\r\n\r\n```\r\n\r\n\r\n\r\nor\r\n\r\n\r\n\r\n```shell\r\n\r\npip install -r requirements.txt\r\n\r\n```\r\n\r\n\r\n\r\n### Getting started\r\n\r\nTo make it easier to figure out how everything works, many examples have been made in the folders **DataExamplesBinance** and **StrategyExamplesBinance**.\r\n\r\n\r\n\r\nBefore running the example, you need to get your API key and Secret key, and put them in the file **ConfigBinance\\Config.py:**\r\n\r\n\r\n\r\n```python\r\n\r\n# content of ConfigBinance\\Config.py \r\n\r\nclass Config:\r\n\r\n    BINANCE_API_KEY = \"YOUR_API_KEY\"\r\n\r\n    BINANCE_API_SECRET = \"YOUR_SECRET_KEY\"\r\n\r\n```\r\n\r\n\r\n\r\n#### How to get a Binance API token:\r\n\r\n1. Register your account on [Binance](https://accounts.binance.com/register?ref=200640624 )\r\n\r\n2. Go to the [\"API Management\"](https://www.binance.com/en/my/settings/api-management?ref=CPA_004RZBKQWK ) \r\n\r\n3. Then click the \"Create API\" button and select \"System Generated\".\r\n\r\n4. In the \"API Restrictions\" section, enable \"Enable Spot and Margin Trading\".\r\n\r\n5. Copy and paste to the file **ConfigBinance\\Config.py ** received **\"API key\"** and **\"Secret key\"**\r\n\r\n\r\n\r\n#### Now you can run examples\r\n\r\n\r\n\r\nThe **DataExamplesBinance** folder contains the code of examples for working with exchange data via the [Binance](https://accounts.binance.com/register?ref=200640624 ) API.\r\n\r\n\r\n\r\n* **01 - Symbol.py** - trading strategy for obtaining historical and \"live\" data of one ticker for one timeframe\r\n\r\n* **02 - Symbol data to DF.py** - export to csv file of historical data of one ticker for one timeframe\r\n\r\n* **03 - Symbols.py** - trading strategy for multiple tickers on the same timeframe\r\n\r\n* **04 - Resample.py** - trading strategy for obtaining data from one ticker for different timeframes by converting a smaller timeframe into a larger one\r\n\r\n* **05 - Replay.py** - launching a trading strategy on a smaller timeframe, with processing on a larger one and displaying a larger interval chart\r\n\r\n* **06 - Rollover.py** - launch of a trading strategy based on gluing data from a file with historical data and the last downloaded history from the broker\r\n\r\n* **07 - Get Asset Balance.py** - getting the ticker balance directly through the Binance API\r\n\r\n* **08 - Timeframes.py** - trading strategy is running on different timeframes.\r\n\r\n* **09 - Get Asset Info.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.\r\n\r\n* **09 - Get Asset Info - no Decimal.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.\r\n\r\n* **09 - Get Asset Info - through client.py** - getting info about asset: balance, lot size, min price step, min value to buy and etc.\r\n\r\n* **10 - Get Historical Data.py** - getting historical data through binance client for asset.\r\n\r\n* **Strategy.py** - An example of a trading strategy that only outputs data of the OHLCV for ticker/tickers\r\n\r\n\r\n\r\nThe **StrategyExamplesBinance** folder contains the code of sample strategies.\r\n\r\n\r\n\r\n* **01 - Live Trade - Just Buy and Sell.py** - An example of a live trading strategy for ETH ticker on the base USDT ticker.\r\n\r\n  * The strategy shows how to Buy at Market or Limit order and how to Cancel order.\r\n\r\n  * Example of placing and cancel orders on the Binance exchange.\r\n\r\n    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed....\r\n\r\n    * Please be aware! For Market order - it will be completed!\r\n\r\n    * **Do not forget to cancel the submitted orders from the exchange after the test!**\r\n\r\n\r\n\r\n \r\n\r\n* **01 - Live Trade.py** - An example of a live trading strategy for two BTC and ETH tickers on the base USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n  * Example of placing and cancel orders on the Binance exchange.\r\n\r\n    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... \r\n\r\n    * **Do not forget to cancel the submitted orders from the exchange after the test!**\r\n\r\n\r\n\r\n\r\n\r\n* **02 - Live Trade MultiPortfolio.py** - An example of a live trading strategy for a set of tickers that can be transferred to the strategy in a list (BTC, ETH, BNB) on the base USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n  * Example of placing and cancel orders on the Binance exchange.\r\n\r\n    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... \r\n\r\n    * **Do not forget to cancel the submitted orders from the exchange after the test!**\r\n\r\n\r\n\r\n\r\n\r\n* **03 - Live Trade ETH.py** - An example of a live trading strategy for two BNB and XMR tickers on the basic ETH ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n  * Example of placing and cancel orders on the Binance exchange.\r\n\r\n    * Please be aware! This is Live order - if market has a big change down in value of price more than 5% - the order will be completed.... \r\n\r\n    * **Do not forget to cancel the submitted orders from the exchange after the test!**\r\n\r\n\r\n\r\n\r\n\r\n* **04 - Offline Backtest.py** - An example of a trading strategy on a historical data - not live mode - for two BTC and ETH tickers on the base USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n    * Not a live mode - for testing strategies without sending orders to the exchange!\r\n\r\n\r\n\r\n\r\n\r\n* **05 - Offline Backtest MultiPortfolio.py** - An example of a trading strategy on a historical data - not live mode - for a set of tickers that can be transferred to the strategy in a list (BTC, ETH, BNB) on the base USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n    * Not a live mode - for testing strategies without sending orders to the exchange!\r\n\r\n\r\n\r\n\r\n\r\n* **06 - Live Trade Just Buy and Close by Market.py** - An example of a live trading strategy for ETH ticker on the base USDT ticker.\r\n\r\n  * The strategy shows how to buy by close price and sell by market a little value of ETH after 3 bars.\r\n\r\n  * Example of placing orders on the Binance exchange.\r\n\r\n    * **Do not forget to cancel the submitted orders from the exchange after the test!**\r\n\r\n\r\n\r\n\r\n\r\n* **07 - Offline Backtest Indicators.py** - An example of a trading strategy for a history test using SMA and RSI indicators - not live mode - for two BTC and ETH tickers on the base USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators (SMA, RSI) to several tickers at the same time.\r\n\r\n    * generates 177% of revenue at the time of video recording))\r\n\r\n    * Non-live mode - for testing strategies without sending orders to the exchange!\r\n\r\n\r\n\r\n\r\n\r\n* **08 - Offline Backtest Margin Trade with Leverage 50x - Linear Trade.py** - An example of a trading strategy with the use of margin Leverage 50x for a history backtest using SMA indicators - not live mode - for two BTC and ETH tickers on the base of USDT ticker.\r\n\r\n  * The strategy shows how to apply indicators SMA to several tickers at the same time.\r\n\r\n    * generates 792% of revenue at the time of file publishing\r\n\r\n    * Non-live mode - for testing strategies without sending orders to the exchange!\r\n\r\n  * The strategy shows how to use margin with Leverage 50x for backtest on history market data for cryptocurrencies.\r\n\r\n```commandline\r\n\r\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\r\n\r\nWas money: 2000.00\r\n\r\nEnding Portfolio Value: 17853.46\r\n\r\nRemaining available funds: 4887.38\r\n\r\nAssets in the amount of: 12966.08\r\n\r\n\r\n\r\n2000.00 ==> 17853.46 ==> +792.67%\r\n\r\n\r\n\r\nSQN:  AutoOrderedDict([('sqn', 1.0031776139642996), ('trades', 4)])\r\n\r\nVWR:  OrderedDict([('vwr', 25.613023915870777)])\r\n\r\nTDD:  OrderedDict([('maxdrawdown', 65.77087178559279), ('maxdrawdownperiod', 304)])\r\n\r\nDD:  AutoOrderedDict([('len', 6), ('drawdown', 20.46618403019286), ('moneydown', 229.70872494394746), ('max', AutoOrderedDict([('len', 304), ('drawdown', 65.77087178559279), ('moneydown', 295.8359186842)]))])\r\n\r\nAR:  OrderedDict([(2021, 0.0), (2022, -0.42822236821405035), (2023, 4.540830244681184), (2024, 1.8176719585784271)])\r\n\r\nProfitability:  OrderedDict([('rtot', 2.1890502317806253), ('ravg', 0.0022178827069712515), ('rnorm', 0.7487590850582526), ('rnorm100', 74.87590850582527)])\r\n\r\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\r\n\r\n```\r\n\r\n\r\n\r\n## Thanks\r\n\r\n- backtrader: Very simple and cool library!\r\n\r\n- [python-binance](https://github.com/sammchardy/python-binance): For creating Binance API wrapper, shortening a lot of work.\r\n\r\n- lindomar-oliveira for some code\r\n\r\n\r\n\r\n## License\r\n\r\n[MIT](https://choosealicense.com/licenses/mit)\r\n\r\n\r\n\r\n## Important\r\n\r\nError correction, revision and development of the library is carried out by the author and the community!\r\n\r\n\r\n\r\n**Push your commits!**\r\n\r\n\r\n\r\n## Terms of Use\r\n\r\nThe backtrader_binance library, which allows you to integrate Backtrader and Binance API, is the **Program** created solely for the convenience of work.\r\n\r\nWhen using the **Program**, the User is obliged to comply with the provisions of the current legislation of his country.\r\n\r\nUsing the **Program** are offered on an \"AS IS\" basis. No guarantees, either oral or written, are attached and are not provided.\r\n\r\nThe author and the community does not guarantee that all errors of the **Program** have been eliminated, respectively, the author and the community do not bear any responsibility for\r\n\r\nthe consequences of using the **Program**, including, but not limited to, any damage to equipment, computers, mobile devices,\r\n\r\nUser software caused by or related to the use of the **Program**, as well as for any financial losses\r\n\r\nincurred by the User as a result of using the **Program**.\r\n\r\nNo one is responsible for data loss, losses, damages, including accidental or indirect, lost profits, loss of revenue or any other losses\r\n\r\nrelated to the use of the **Program**.\r\n\r\n\r\n\r\nThe **Program** is distributed under the terms of the [MIT](https://choosealicense.com/licenses/mit ) license.\r\n\r\n\r\n\r\n## Star History\r\n\r\n\r\n\r\nPlease put a Star \ud83c\udf1f for this code\r\n\r\n\r\n\r\n[![Star History Chart](https://api.star-history.com/svg?repos=WISEPLAT/backtrader_binance&type=Timeline)](https://star-history.com/#WISEPLAT/backtrader_binance&Timeline)\r\n\r\n\r\n\r\n\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0417\u0432\u0435\u0437\u0434\u0443 \ud83c\udf1f \u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443\r\n\r\n\r\n\r\n==========================================================================\r\n\r\n\r\n\r\n# backtrader_binance\r\n\r\n\r\n\r\n\u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f Binance API \u0441 [Backtrader](https://github.com/WISEPLAT/backtrader ).\r\n\r\n\r\n\r\n\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0435\u043b\u0430\u0442\u044c:\r\n\r\n- \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0431\u0438\u0440\u0436\u0438 [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader )\r\n\r\n- \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \u043d\u0430 \u0431\u0438\u0440\u0436\u0435 [Binance](https://accounts.binance.com/register?ref=200640624 ) + [Backtrader](https://github.com/WISEPLAT/backtrader ) \r\n\r\n- \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442\u0430\u043c \u0441 \u0431\u0438\u0440\u0436\u0438 [Binance](https://accounts.binance.com/register?ref=200640624 )\r\n\r\n\r\n\r\n\u0414\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a API \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 [python-binance](https://github.com/sammchardy/python-binance ).\r\n\r\n\r\n\r\n**\u041c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0421\u043f\u0430\u0441\u0438\u0431\u043e:**\r\n\r\n\r\n\r\nUSDT (Tron TRC20): TEHaXZX7KLjAm4eLWdf4VKfsqRUQpv8fTT\r\n\r\n\r\n\r\n\u0438\u043b\u0438 \u043f\u043e [**Binance**](https://accounts.binance.com/register?ref=200640624 ) **ID** **200640624** \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0440\u0436\u0443 (\u0431\u0435\u0437 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438)\r\n\r\n\r\n\r\n\u0438\u043b\u0438 \u043f\u043e [**Bybit**](https://www.bybit.com/invite?ref=KXLXXE%230 ) **UID** **112927970** \u0447\u0435\u0440\u0435\u0437 \u0431\u0438\u0440\u0436\u0443 (\u0431\u0435\u0437 \u043a\u043e\u043c\u0438\u0441\u0441\u0438\u0438)\r\n\r\n\r\n\r\n## \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430\r\n\r\n1) \u0421\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431:\r\n\r\n```shell\r\n\r\npip install backtrader_binance\r\n\r\n```\r\n\r\n\u0438\u043b\u0438\r\n\r\n```shell\r\n\r\ngit clone https://github.com/WISEPLAT/backtrader_binance\r\n\r\n```\r\n\r\n\u0438\u043b\u0438\r\n\r\n```shell\r\n\r\npip install git+https://github.com/WISEPLAT/backtrader_binance.git\r\n\r\n```\r\n\r\n\r\n\r\n2) \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 backtrader \u0438\u0437 \u043c\u043e\u0435\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f (\u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u043d\u0435\u043c \u0441\u0432\u043e\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u044b). \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0435\u0433\u043e:\r\n\r\n```shell\r\n\r\npip install git+https://github.com/WISEPLAT/backtrader.git\r\n\r\n```\r\n\r\n-- \u041c\u043e\u0433\u0443 \u043b\u0438 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0430\u0448 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 binance \u0441 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u043c backtrader?\r\n\r\n\r\n\r\n-- \u0414\u0430, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u044b\u0439 backtrader, \u0442\u0430\u043a \u043a\u0430\u043a \u0430\u0432\u0442\u043e\u0440 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e backtrader \u043e\u0434\u043e\u0431\u0440\u0438\u043b \u0432\u0441\u0435 \u043c\u043e\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f.\r\n\r\n\r\n\r\n\u0412\u043e\u0442 \u0441\u0441\u044b\u043b\u043a\u0430: [mementum/backtrader#472](https://github.com/mementum/backtrader/pull/472)\r\n\r\n\r\n\r\n3) \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438, \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0438\u0445 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c:\r\n\r\n```shell\r\n\r\npip install python-binance backtrader pandas matplotlib\r\n\r\n```\r\n\r\n\r\n\r\n\u0438\u043b\u0438\r\n\r\n\r\n\r\n```shell\r\n\r\npip install -r requirements.txt\r\n\r\n```\r\n\r\n\r\n\r\n\r\n\r\n### \u041d\u0430\u0447\u0430\u043b\u043e \u0440\u0430\u0431\u043e\u0442\u044b\r\n\r\n\u0427\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 **DataExamplesBinance_ru** \u0438 **StrategyExamplesBinance_ru**.\r\n\r\n\r\n\r\n\u041f\u0435\u0440\u0435\u0434 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0439 API \u043a\u043b\u044e\u0447 \u0438 Secret \u043a\u043b\u044e\u0447, \u0438 \u043f\u0440\u043e\u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435 **ConfigBinance\\Config.py:**\r\n\r\n\r\n\r\n```python\r\n\r\n# content of ConfigBinance\\Config.py \r\n\r\nclass Config:\r\n\r\n    BINANCE_API_KEY = \"YOUR_API_KEY\"\r\n\r\n    BINANCE_API_SECRET = \"YOUR_SECRET_KEY\"\r\n\r\n```\r\n\r\n\r\n\r\n####  \u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0442\u043e\u043a\u0435\u043d Binance API:\r\n\r\n1. \u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u0432\u043e\u0439 \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0430 [Binance](https://accounts.binance.com/register?ref=200640624 )\r\n\r\n2. \u041f\u0435\u0440\u0435\u0439\u0434\u0438\u0442\u0435 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b [\"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 API\"](https://www.binance.com/en/my/settings/api-management?ref=CPA_004RZBKQWK )\r\n\r\n3. \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \"\u0421\u043e\u0437\u0434\u0430\u0442\u044c API\" \u0438 \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \"\u0421\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439\".\r\n\r\n4. \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \"\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f API\" \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u043f\u043e\u0442\u043e\u0432\u0443\u044e \u0438 \u043c\u0430\u0440\u0436\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e\".\r\n\r\n5. \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432 \u0444\u0430\u0439\u043b **ConfigBinance\\Config.py** \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 **\"\u041a\u043b\u044e\u0447 API\"** \u0438 **\"\u0421\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447\"**\r\n\r\n\r\n\r\n#### \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u044b\r\n\r\n\r\n\r\n\u0412 \u043f\u0430\u043f\u043a\u0435 **DataExamplesBinance_ru** \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0431\u0438\u0440\u0436\u0435\u0432\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 API \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 [Binance](https://accounts.binance.com/register?ref=200640624 ).\r\n\r\n\r\n\r\n* **01 - Symbol.py** - \u0442\u043e\u0440\u0433\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438 \"\u0436\u0438\u0432\u044b\u0445\" \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043a\u0435\u0440\u0430 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0443\r\n\r\n* **02 - Symbol data to DF.py** - \u044d\u043a\u0441\u043f\u043e\u0440\u0442 \u0432 csv \u0444\u0430\u0439\u043b \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043a\u0435\u0440\u0430 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0443\r\n\r\n* **03 - Symbols.py** - \u0442\u043e\u0440\u0433\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0434\u043b\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0443\r\n\r\n* **04 - Resample.py** - \u0442\u043e\u0440\u0433\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043a\u0435\u0440\u0430 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0430\u043c \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0430\u0446\u0438\u0438 \u043c\u0435\u043d\u044c\u0448\u0435\u0433\u043e \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0430 \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u0439\r\n\r\n* **05 - Replay.py** - \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043d\u0430 \u043c\u0435\u043d\u044c\u0448\u0435\u043c \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0435, \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0435\u043c \u0438 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0431\u043e\u043b\u044c\u0448\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\r\n\r\n* **06 - Rollover.py** - \u0437\u0430\u043f\u0443\u0441\u043a \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043d\u0430 \u0441\u043a\u043b\u0435\u0439\u043a\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u043e\u0439 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0441 \u0431\u0440\u043e\u043a\u0435\u0440\u0430\r\n\r\n* **07 - Get Asset Balance.py** - \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0442\u0438\u043a\u0435\u0440\u0430 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 API Binance\r\n\r\n* **08 - Timeframes.py** - \u0442\u043e\u0440\u0433\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u0438\u043a\u0435\u0440\u0430 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u0442\u0430\u0439\u043c\u0444\u0440\u0435\u0439\u043c\u0430\u043c\r\n\r\n* **09 - Get Asset Info.py** - \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0430\u043a\u0442\u0438\u0432\u0435: \u0431\u0430\u043b\u0430\u043d\u0441, \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0433 \u0446\u0435\u043d\u044b, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438 \u0442.\u0434.\r\n\r\n* **09 - Get Asset Info - no Decimal.py** - \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0430\u043a\u0442\u0438\u0432\u0435: \u0431\u0430\u043b\u0430\u043d\u0441, \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0433 \u0446\u0435\u043d\u044b, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438 \u0442.\u0434.\r\n\r\n* **09 - Get Asset Info - through client.py** - \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u0430\u043a\u0442\u0438\u0432\u0435: \u0431\u0430\u043b\u0430\u043d\u0441, \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0448\u0430\u0433 \u0446\u0435\u043d\u044b, \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043f\u043e\u043a\u0443\u043f\u043a\u0438 \u0438 \u0442.\u0434.\r\n\r\n* **10 - Get Historical Data.py** - \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u043a\u043b\u0438\u0435\u043d\u0442 binance \u0434\u043b\u044f \u0430\u043a\u0442\u0438\u0432\u0430.\r\n\r\n* **Strategy.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0432\u043e\u0434\u0438\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0442\u0438\u043a\u0435\u0440\u0443/\u0442\u0438\u043a\u0435\u0440\u0430\u043c OHLCV\r\n\r\n\r\n\r\n\u0412 \u043f\u0430\u043f\u043a\u0435 **StrategyExamplesBinance_ru** \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043a\u043e\u0434 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439.  \r\n\r\n\r\n\r\n* **01 - Live Trade - Just Buy and Sell.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432 live \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f ETH \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c \u041e\u0440\u0434\u0435\u0440 \u043f\u043e \u0420\u044b\u043d\u043a\u0443 \u0438 \u041b\u0438\u043c\u0438\u0442\u043d\u044b\u0439 \u043e\u0440\u0434\u0435\u0440 \u0438 \u043a\u0430\u043a \u043e\u0442\u043c\u0435\u043d\u044f\u0442\u044c \u043e\u0440\u0434\u0435\u0440. \r\n\r\n  * \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443 Binance \u0438 \u0438\u0445 \u0441\u043d\u044f\u0442\u0438\u0435.\r\n\r\n    * \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443! \u042d\u0442\u043e live \u0440\u0435\u0436\u0438\u043c - \u0435\u0441\u043b\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 5% - \u043e\u0440\u0434\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d....\r\n\r\n    * \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443! \u0414\u043b\u044f \u043e\u0440\u0434\u0435\u0440\u0430 \u043f\u043e \u0420\u044b\u043d\u043a\u0443 - \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d....\r\n\r\n    * **\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0441\u043d\u044f\u0442\u044c \u0441 \u0431\u0438\u0440\u0436\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u044f\u0432\u043a\u0438!**\r\n\r\n\r\n\r\n\r\n\r\n* **01 - Live Trade.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432 live \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 BTC \u0438 ETH \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \r\n\r\n  * \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443 Binance \u0438 \u0438\u0445 \u0441\u043d\u044f\u0442\u0438\u0435.\r\n\r\n    * \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443! \u042d\u0442\u043e live \u0440\u0435\u0436\u0438\u043c - \u0435\u0441\u043b\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 5% - \u043e\u0440\u0434\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d.... \r\n\r\n    * **\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0441\u043d\u044f\u0442\u044c \u0441 \u0431\u0438\u0440\u0436\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u044f\u0432\u043a\u0438!**\r\n\r\n\r\n\r\n\r\n\r\n* **02 - Live Trade MultiPortfolio.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432 live \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0442\u0438\u043a\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \u0441\u043f\u0438\u0441\u043a\u043e\u043c (BTC, ETH, BNB) \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \r\n\r\n  * \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443 Binance \u0438 \u0438\u0445 \u0441\u043d\u044f\u0442\u0438\u0435.\r\n\r\n    * \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443! \u042d\u0442\u043e live \u0440\u0435\u0436\u0438\u043c - \u0435\u0441\u043b\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 5% - \u043e\u0440\u0434\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d....\r\n\r\n    * **\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0441\u043d\u044f\u0442\u044c \u0441 \u0431\u0438\u0440\u0436\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u044f\u0432\u043a\u0438!**\r\n\r\n \r\n\r\n\r\n\r\n* **03 - Live Trade ETH.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432 live \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 BNB \u0438 XMR \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 ETH. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. \r\n\r\n  * \u041f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443 Binance \u0438 \u0438\u0445 \u0441\u043d\u044f\u0442\u0438\u0435.\r\n\r\n    * \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0438\u043c\u0435\u0439\u0442\u0435 \u0432 \u0432\u0438\u0434\u0443! \u042d\u0442\u043e live \u0440\u0435\u0436\u0438\u043c - \u0435\u0441\u043b\u0438 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u043d\u0430 5% - \u043e\u0440\u0434\u0435\u0440 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d....\r\n\r\n    * **\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0441\u043d\u044f\u0442\u044c \u0441 \u0431\u0438\u0440\u0436\u0438 \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0437\u0430\u044f\u0432\u043a\u0438!**\r\n\r\n \r\n\r\n\r\n\r\n* **04 - Offline Backtest.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 - \u043d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 BTC \u0438 ETH \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.\r\n\r\n    * \u041d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0431\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443!\r\n\r\n\r\n\r\n\r\n\r\n* **05 - Offline Backtest MultiPortfolio.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 - \u043d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0442\u0438\u043a\u0435\u0440\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0432 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044e \u0441\u043f\u0438\u0441\u043a\u043e\u043c (BTC, ETH, BNB) \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.\r\n\r\n    * \u041d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0431\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443!\r\n\r\n\r\n\r\n\r\n\r\n* **06 - Live Trade Just Buy and Close by Market.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0432 live \u0434\u043b\u044f \u0442\u0438\u043a\u0435\u0440\u0430 ETH \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT.\r\n\r\n  * \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043f\u043e\u043a\u0443\u043f\u0430\u0442\u044c \u043f\u043e \u0446\u0435\u043d\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0438 \u043f\u0440\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e \u0440\u044b\u043d\u043e\u0447\u043d\u043e\u0439 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e ETH \u0447\u0435\u0440\u0435\u0437 3 \u0431\u0430\u0440\u0430.\r\n\r\n  * \u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u0438\u0440\u0436\u0435 Binance.\r\n\r\n    * **\u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0441 \u0431\u0438\u0440\u0436\u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f!**\r\n\r\n\r\n\r\n\r\n\r\n* **07 - Offline Backtest Indicators.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 SMA \u0438 RSI - \u043d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 BTC \u0438 ETH \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0442\u0438\u043a\u0435\u0440\u0435 USDT. \r\n\r\n  * \u0412 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b (SMA, RSI) \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.\r\n\r\n    * \u0433\u0435\u043d\u0435\u0440\u0438\u0442 177% \u0434\u043e\u0445\u043e\u0434\u0430 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u0438\u0434\u0435\u043e )) \r\n\r\n    * \u041d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0431\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0437\u0430\u044f\u0432\u043e\u043a \u043d\u0430 \u0431\u0438\u0440\u0436\u0443!\r\n\r\n\r\n\r\n\r\n\r\n* **08 - Offline Backtest Margin Trade with Leverage 50x - Linear Trade.py** - \u041f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043c\u0430\u0440\u0436\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043b\u0435\u0447\u0430 50x \u0434\u043b\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u044d\u043a\u0442\u0435\u0441\u0442\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 SMA - \u043d\u0435 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 - \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0442\u0438\u043a\u0435\u0440\u043e\u0432 BTC \u0438 ETH \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0438\u043a\u0435\u0440\u0430 USDT.\r\n\r\n  * \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u044b SMA \u043a \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u0442\u0438\u043a\u0435\u0440\u0430\u043c \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.\r\n\r\n    * \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442 792% \u0434\u043e\u0445\u043e\u0434\u0430 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0444\u0430\u0439\u043b\u0430\r\n\r\n    * \u041d\u0435 live \u0440\u0435\u0436\u0438\u043c - \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0431\u0435\u0437 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u043d\u0430 \u0431\u0438\u0440\u0436\u0443!!\r\n\r\n  * \u0421\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u0440\u0436\u0438\u043d\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u0441 \u043a\u0440\u0435\u0434\u0438\u0442\u043d\u044b\u043c \u043f\u043b\u0435\u0447\u043e\u043c 50x \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0440\u044b\u043d\u043e\u0447\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442.\r\n\r\n```commandline\r\n\r\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\r\n\r\nWas money: 2000.00\r\n\r\nEnding Portfolio Value: 17853.46\r\n\r\nRemaining available funds: 4887.38\r\n\r\nAssets in the amount of: 12966.08\r\n\r\n\r\n\r\n2000.00 ==> 17853.46 ==> +792.67%\r\n\r\n\r\n\r\nSQN:  AutoOrderedDict([('sqn', 1.0031776139642996), ('trades', 4)])\r\n\r\nVWR:  OrderedDict([('vwr', 25.613023915870777)])\r\n\r\nTDD:  OrderedDict([('maxdrawdown', 65.77087178559279), ('maxdrawdownperiod', 304)])\r\n\r\nDD:  AutoOrderedDict([('len', 6), ('drawdown', 20.46618403019286), ('moneydown', 229.70872494394746), ('max', AutoOrderedDict([('len', 304), ('drawdown', 65.77087178559279), ('moneydown', 295.8359186842)]))])\r\n\r\nAR:  OrderedDict([(2021, 0.0), (2022, -0.42822236821405035), (2023, 4.540830244681184), (2024, 1.8176719585784271)])\r\n\r\nProfitability:  OrderedDict([('rtot', 2.1890502317806253), ('ravg', 0.0022178827069712515), ('rnorm', 0.7487590850582526), ('rnorm100', 74.87590850582527)])\r\n\r\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\r\n\r\n```\r\n\r\n\r\n\r\n## \u0421\u043f\u0430\u0441\u0438\u0431\u043e\r\n\r\n- backtrader: \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0438 \u043a\u043b\u0430\u0441\u0441\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430!\r\n\r\n- [python-binance](https://github.com/sammchardy/python-binance ): \u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0431\u043e\u043b\u043e\u0447\u043a\u0438 Binance API, \u0441\u043e\u043a\u0440\u0430\u0449\u0430\u044e\u0449\u0435\u0439 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b.\r\n\r\n- lindomar-oliveira \u0437\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043a\u043e\u0434\r\n\r\n\r\n\r\n## \u0412\u0430\u0436\u043d\u043e\r\n\r\n\u0418\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a, \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u0440\u043e\u043c \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c!\r\n\r\n\r\n\r\n**\u041f\u0443\u0448\u044c\u0442\u0435 \u0432\u0430\u0448\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u044b!** \r\n\r\n\r\n\r\n# \u0423\u0441\u043b\u043e\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f\r\n\r\n\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 backtrader_binance \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044e Backtrader \u0438 Binance API - \u044d\u0442\u043e **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430** \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0430\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b.\r\n\r\n\u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b** \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u044f\u0437\u0430\u043d \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u0435\u0439\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0433\u043e \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430 \u0420\u043e\u0441\u0441\u0438\u0439\u0441\u043a\u043e\u0439 \u0424\u0435\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0438\u043b\u0438 \u0441\u0432\u043e\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u044b.\r\n\r\n\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b** \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0443 \u00ab\u041a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb (\u00abAS IS\u00bb). \u041d\u0438\u043a\u0430\u043a\u0438\u0445 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0439, \u043a\u0430\u043a \u0443\u0441\u0442\u043d\u044b\u0445, \u0442\u0430\u043a \u0438 \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u044b\u0445 \u043d\u0435 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u0443\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0435\u0442\u0441\u044f.\r\n\r\n\u0410\u0432\u0442\u043e\u0440 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043d\u0435 \u0434\u0430\u0435\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438, \u0447\u0442\u043e \u0432\u0441\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b** \u0431\u044b\u043b\u0438 \u0443\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0430\u0432\u0442\u043e\u0440 \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e \u043d\u0435 \u043d\u0435\u0441\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\r\n\r\n\u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b**, \u0432\u043a\u043b\u044e\u0447\u0430\u044f, \u043d\u043e, \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044f\u0441\u044c \u043b\u044e\u0431\u044b\u043c \u0443\u0449\u0435\u0440\u0431\u043e\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044e, \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430\u043c, \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c, \r\n\r\n\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u043c\u0443 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044e \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u043c \u0438\u043b\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b**, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0437\u0430 \u043b\u044e\u0431\u044b\u0435 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0435 \u043f\u043e\u0442\u0435\u0440\u0438,\r\n\r\n\u043f\u043e\u043d\u0435\u0441\u0435\u043d\u043d\u044b\u0435 \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b**.\r\n\r\n\u041d\u0438\u043a\u0442\u043e \u043d\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u0435\u043d \u0437\u0430 \u043f\u043e\u0442\u0435\u0440\u044e \u0434\u0430\u043d\u043d\u044b\u0445, \u0443\u0431\u044b\u0442\u043a\u0438, \u0443\u0449\u0435\u0440\u0431, \u0432\u043a\u043b\u044e\u0447\u0430\u044e \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0439 \u0438\u043b\u0438 \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u044b\u0439, \u0443\u043f\u0443\u0449\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0433\u043e\u0434\u0443, \u043f\u043e\u0442\u0435\u0440\u044e \u0434\u043e\u0445\u043e\u0434\u043e\u0432 \u0438\u043b\u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u0442\u0435\u0440\u0438,\r\n\r\n\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c **\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b**.\r\n\r\n\r\n\r\n**\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430** \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u043d\u0430 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 [MIT](https://choosealicense.com/licenses/mit).\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Binance API integration with Backtrader",
    "version": "2.0.5",
    "project_urls": {
        "Documentation": "https://github.com/WISEPLAT/backtrader_binance/blob/master/README.md",
        "Homepage": "https://github.com/WISEPLAT/backtrader_binance"
    },
    "split_keywords": [
        "trading",
        " development"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d7699f077195284f33eba061db48c966b7351eed90f4b4cec94cb9bb1db6c020",
                "md5": "1cc978c87479aa3cf345be047a05bd07",
                "sha256": "6e23570d49b820a2b2f2aa7890031c9063d80511bdc1dba35cbe77d6f9d2a33f"
            },
            "downloads": -1,
            "filename": "backtrader_binance-2.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1cc978c87479aa3cf345be047a05bd07",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 16378,
            "upload_time": "2024-05-21T04:29:48",
            "upload_time_iso_8601": "2024-05-21T04:29:48.782288Z",
            "url": "https://files.pythonhosted.org/packages/d7/69/9f077195284f33eba061db48c966b7351eed90f4b4cec94cb9bb1db6c020/backtrader_binance-2.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee89981af1546ae4560676c2545a1f1361f7ca31c69089e9965c98774b9ed7a4",
                "md5": "4a73cbd1a018dca8f9da4ec29cb949a7",
                "sha256": "7fa935f3f144662a5926a314fd722e41938cc4160cec0799a52833f106b9e911"
            },
            "downloads": -1,
            "filename": "backtrader_binance-2.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "4a73cbd1a018dca8f9da4ec29cb949a7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 27147,
            "upload_time": "2024-05-21T04:29:50",
            "upload_time_iso_8601": "2024-05-21T04:29:50.220686Z",
            "url": "https://files.pythonhosted.org/packages/ee/89/981af1546ae4560676c2545a1f1361f7ca31c69089e9965c98774b9ed7a4/backtrader_binance-2.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-21 04:29:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "WISEPLAT",
    "github_project": "backtrader_binance",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "python-binance",
            "specs": []
        },
        {
            "name": "backtrader",
            "specs": []
        },
        {
            "name": "pandas",
            "specs": []
        },
        {
            "name": "matplotlib",
            "specs": []
        }
    ],
    "lcname": "backtrader-binance"
}
        
Elapsed time: 0.22679s