<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Siarhei Siniak</title>
    <description>The latest articles on DEV Community by Siarhei Siniak (@siarhei_siniak_marketing).</description>
    <link>https://dev.to/siarhei_siniak_marketing</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F653016%2F2da6a397-fc88-446a-8eec-03557b5238bb.jpg</url>
      <title>DEV Community: Siarhei Siniak</title>
      <link>https://dev.to/siarhei_siniak_marketing</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/siarhei_siniak_marketing"/>
    <language>en</language>
    <item>
      <title>Trade binance futures with freqtrade</title>
      <dc:creator>Siarhei Siniak</dc:creator>
      <pubDate>Sun, 24 Jul 2022 19:57:25 +0000</pubDate>
      <link>https://dev.to/siarhei_siniak_marketing/trade-binance-futures-with-freqtrade-can</link>
      <guid>https://dev.to/siarhei_siniak_marketing/trade-binance-futures-with-freqtrade-can</guid>
      <description>&lt;p&gt;Freqtrade is a standalone platform. It supports data acquisition, indicators and expert advisors (strategies). You may use backtest with fixed parameters as well as apply optimization to boost the performance. Spot market as well as derivatives usage has been built in.&lt;/p&gt;

&lt;p&gt;Beginners may rely on functional web interface. Advanced users may utilize command line interface.&lt;/p&gt;

&lt;p&gt;Check config.json to be configured for futures:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;trading mode
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        "trading_mode": "futures",

        "margin_mode": "isolated",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;exchange pairs
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        "exchange": {
            "name": "binance",
            "sandbox": true,
            "key": "your_exchange_key",
            "secret": "your_exchange_secret",
            "password": "",
            "log_responses": false,
            "ccxt_config": {},
            "ccxt_async_config": {},
            "pair_whitelist": [
                "BTC/USDT",
                "ETH/USDT"
            ],
            "outdated_offset": 5,
            "markets_refresh_interval": 60
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Leverage trading requires a custom strategy. For details inspect freqtrade/strategy/interface.py&lt;/p&gt;

&lt;p&gt;Read the full article at &lt;a href="https://product-development-service.blogspot.com/2022/06/trade-binance-futures-with-freqtrade.html"&gt;https://product-development-service.blogspot.com/2022/06/trade-binance-futures-with-freqtrade.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>datascience</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Feed Saxo Bank instruments price into sqlite database</title>
      <dc:creator>Siarhei Siniak</dc:creator>
      <pubDate>Sun, 24 Jul 2022 19:51:00 +0000</pubDate>
      <link>https://dev.to/siarhei_siniak_marketing/feed-saxo-bank-instruments-price-into-sqlite-database-13a0</link>
      <guid>https://dev.to/siarhei_siniak_marketing/feed-saxo-bank-instruments-price-into-sqlite-database-13a0</guid>
      <description>&lt;p&gt;Though Saxo Bank has dropped MetaTrader support back in 2015. Open API allows to implement a custom broker.&lt;/p&gt;

&lt;p&gt;We are going to consider read-only mode, when price of instruments is continuously put into sqlite database.&lt;/p&gt;

&lt;p&gt;Authentication is required prior. A user friendly token generator allows to use a single header instead.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def k1(uic, asset_type, token):
    assert re.compile(r'[a-zA-Z]+').match(asset_type)
    with requests.get(
        'https://gateway.saxobank.com/sim/openapi/ref/v1/instruments/details/%d/%s' % (
            uic,
            asset_type
        ),
        headers=dict(
            authorization='Bearer %s' % token,
        ),
    ) as p:
        market_info = p.json()
    assert 'Symbol' in market_info
    return market_info
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;token is generated at &lt;a href="https://www.developer.saxo/openapi/token/current"&gt;https://www.developer.saxo/openapi/token/current&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Available instruments vary between forex, stocks and derivatives.&lt;/p&gt;

&lt;p&gt;Read the full article at &lt;a href="https://product-development-service.blogspot.com/2022/06/feed-saxo-bank-instruments-price-into.html"&gt;https://product-development-service.blogspot.com/2022/06/feed-saxo-bank-instruments-price-into.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>blockchain</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Backtest support line bounce based indicator accuracy</title>
      <dc:creator>Siarhei Siniak</dc:creator>
      <pubDate>Sun, 24 Jul 2022 19:48:26 +0000</pubDate>
      <link>https://dev.to/siarhei_siniak_marketing/backtest-support-line-bounce-based-indicator-accuracy-1g7n</link>
      <guid>https://dev.to/siarhei_siniak_marketing/backtest-support-line-bounce-based-indicator-accuracy-1g7n</guid>
      <description>&lt;p&gt;Support line indicator is based on repetitive extremum points. If say few times in a row price has dropped at some value and then got up. That value is defined as support line. It's likely that it comes close to support line again the pattern will repeat. We are to place an order when this occurs. Stop loss equals support line value. Take profit equals +1% of the entry price. To avoid amount of false positives, we are to use some extra margin like 0.1% during comparisons. So that if price fluctuates around support line +-0.1% we are to wait, until it is either &amp;lt;-0.1% or &amp;gt;0.1% to take the action. If the value drops below support line, indicator didn't work in this case. Otherwise, we are placing an order. To further reduce false positives few times is defined as 3 times, or any other positive number. It can be adjusted later on based on backtest results. But it's not good to optimize all of the indicator constants to avoid over fitting. &lt;/p&gt;

&lt;p&gt;Read the full article at &lt;a href="https://product-development-service.blogspot.com/2022/07/backtest-support-line-bounce-based.html"&gt;https://product-development-service.blogspot.com/2022/07/backtest-support-line-bounce-based.html&lt;/a&gt;&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>blockchain</category>
      <category>datascience</category>
    </item>
    <item>
      <title>Ranking comments with NLP</title>
      <dc:creator>Siarhei Siniak</dc:creator>
      <pubDate>Thu, 15 Jul 2021 07:49:50 +0000</pubDate>
      <link>https://dev.to/siarhei_siniak_marketing/ranking-comments-with-nlp-30c4</link>
      <guid>https://dev.to/siarhei_siniak_marketing/ranking-comments-with-nlp-30c4</guid>
      <description>&lt;p&gt;There's a dataset with comments classified to be toxic or not.&lt;br&gt;
A neural network can be used to predict a sentiment.&lt;br&gt;
Let's scrap recent comments from DEV.TO posts and see what gets the highest rank.&lt;/p&gt;

&lt;p&gt;Data is being scrapped with a help of requests and pyquery.&lt;br&gt;
A classifier is being trained on "Jigsaw Multilingual Toxic Comment Classification" dataset. Model architecture is a recurrent model. GPU hardware is being provided for free by kaggle platform.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--H8-8zw7T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/e8j93vP.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--H8-8zw7T--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/e8j93vP.png" alt="scrapping"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--seVBY6BA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/KUHr2XO.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--seVBY6BA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://i.imgur.com/KUHr2XO.png" alt="kaggle-script"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--kWYwDiiL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elqh25p62riyt2p4jqmx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--kWYwDiiL--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/elqh25p62riyt2p4jqmx.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>deeplearning</category>
    </item>
  </channel>
</rss>
