Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. PeterM1894

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 20
    • Best 1
    • Groups 1

    PeterM1894

    @PeterM1894

    Starter

    1
    Reputation
    10
    Profile views
    20
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    PeterM1894 Follow
    Starter

    Best posts made by PeterM1894

    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      @mcu
      ich schau noch einmal... falls ich eine Lösung habe Poste ich sie hier.

      Danke.

      posted in JavaScript
      P
      PeterM1894

    Latest posts made by PeterM1894

    • RE: Rhasspy Offline Sprachsteuerung

      @dert
      Hallo,

      Rhasspy läuft im Docker und ich kann auf das Web-Interface zugreifen.
      Gibt es jetzt eine detaillierte Anleitung, wie es weiter geht, den die 349 Seiten, sind wirklich sehr unübersichtlich.😢

      Wie muss ich den MQTT-Adapter in iobroker und in Rhasspy einrichten. Könntes du einen Screenshot hochladen?

      Liebe Grüße
      Peter

      posted in Off Topic
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      ich habe jetzt noch folgendes gefunden:
      https://github.com/binance-exchange/binance-signature-examples/blob/master/nodejs/signature.js

      const crypto = require('crypto');
      
      const query_string = 'timestamp=1578963600000';
      const apiSecret = 'NhqPtmdSJYdKjVHjA7PZj4Mge3R5YNiP1e3UZjInClVN65XAbvqqM6A7H5fATj0j';
      
      function signature(query_string) {
          return crypto
              .createHmac('sha256', apiSecret)
              .update(query_string)
              .digest('hex');
      }
      
      console.log("hashing the string: ");
      console.log(query_string);
      console.log("and return:");
      console.log(signature(query_string));
      
      console.log("\n");
      
      const another_query = 'symbol=LTCBTC&side=BUY&type=LIMIT&timeInForce=GTC&quantity=1&price=0.1&recvWindow=5000&timestamp=1499827319559';
      console.log("hashing the string: ");
      console.log(another_query);
      console.log("and return:");
      console.log(signature(another_query));
      

      Weißt du wie ich "console.log(signature(another_query))" in eine Variable bekomme?

      posted in JavaScript
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      @mcu
      ich schau noch einmal... falls ich eine Lösung habe Poste ich sie hier.

      Danke.

      posted in JavaScript
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      Hallo MCU,

      ich habe dein Blockly eingefügt und mit meinen Daten ergänzt.

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="(j2plG$Y(%]`yQ=aET[3">meinApiKey</variable>
          <variable id="VOx.7s{OQv{48=JbG3jt">meinSecretKey</variable>
          <variable id="h`vxk%kkst+l+6Xc9,^;">symbol</variable>
          <variable id="=IK+ZIjb40nXFN0x61/+">curl-Befehl</variable>
          <variable id=")uj8Z)MWhW{khTsW3qKH">result</variable>
        </variables>
        <block type="variables_set" id="PoblWj|6;g7we}({BH01" x="1213" y="-63">
          <field name="VAR" id="(j2plG$Y(%]`yQ=aET[3">meinApiKey</field>
          <value name="VALUE">
            <block type="text" id="_DzFqjh|J#@!2i9%y`o!">
              <field name="TEXT">meinAPIkey</field>
            </block>
          </value>
          <next>
            <block type="variables_set" id="v.-GdE;q@W}||FUu;paB">
              <field name="VAR" id="VOx.7s{OQv{48=JbG3jt">meinSecretKey</field>
              <value name="VALUE">
                <block type="text" id="p$52es)fb+$t*/KN^z)t">
                  <field name="TEXT">meinSECRETkey</field>
                </block>
              </value>
              <next>
                <block type="variables_set" id="+SNC{=Y=HR!AwU(pt-K*">
                  <field name="VAR" id="h`vxk%kkst+l+6Xc9,^;">symbol</field>
                  <value name="VALUE">
                    <block type="text" id="ld@g;t_]y9*TS@ra/@Dn">
                      <field name="TEXT">BTCBUSD</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="c2S:QlbWC+i~F(/K,8^]">
                      <field name="VAR" id="=IK+ZIjb40nXFN0x61/+">curl-Befehl</field>
                      <value name="VALUE">
                        <block type="text_join" id="a)019IYFILQ(d5*D^ya}">
                          <mutation items="11"></mutation>
                          <value name="ADD0">
                            <block type="text" id="G@]U?*BPXz/Fj7{7X0zP">
                              <field name="TEXT">curl -H "X-MBX-APIKEY: </field>
                            </block>
                          </value>
                          <value name="ADD1">
                            <block type="variables_get" id="c~dcK@VBc~sDi__SKQ4@">
                              <field name="VAR" id="(j2plG$Y(%]`yQ=aET[3">meinApiKey</field>
                            </block>
                          </value>
                          <value name="ADD2">
                            <block type="text" id="un,)v5SUO1=`dJw;7]sV">
                              <field name="TEXT">" -X GET 'https://api.binance.com/api/v3/</field>
                            </block>
                          </value>
                          <value name="ADD3">
                            <block type="text" id="|XgfXVlB8|meGESOT*B]">
                              <field name="TEXT">allOrders</field>
                            </block>
                          </value>
                          <value name="ADD4">
                            <block type="text" id="}Fb`3%Ov5MaS^(`9tq_J">
                              <field name="TEXT">?symbol=</field>
                            </block>
                          </value>
                          <value name="ADD5">
                            <block type="variables_get" id="N)C[4]EmuL3AC7euEkRM">
                              <field name="VAR" id="h`vxk%kkst+l+6Xc9,^;">symbol</field>
                            </block>
                          </value>
                          <value name="ADD6">
                            <block type="text" id="i$EawR,W!?-FR2}Ek3Om">
                              <field name="TEXT">&amp;timestamp=</field>
                            </block>
                          </value>
                          <value name="ADD7">
                            <block type="time_get" id="td/wwz`yt/0:B][lzorc">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" format="false" language="false"></mutation>
                              <field name="OPTION">object</field>
                            </block>
                          </value>
                          <value name="ADD8">
                            <block type="text" id="u!7vk]6A!3Gkf=+jz!Md">
                              <field name="TEXT">&amp;signature=</field>
                            </block>
                          </value>
                          <value name="ADD9">
                            <block type="variables_get" id="73^@=%s3lWRw99,eH6k*">
                              <field name="VAR" id="VOx.7s{OQv{48=JbG3jt">meinSecretKey</field>
                            </block>
                          </value>
                          <value name="ADD10">
                            <block type="text" id="u}nLm-W7P0pKeo._nR.M">
                              <field name="TEXT">'</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <next>
                        <block type="exec" id="0xxdob=y}g-I%W~xz@GW">
                          <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                          <field name="WITH_STATEMENT">TRUE</field>
                          <field name="LOG"></field>
                          <value name="COMMAND">
                            <shadow type="text">
                              <field name="TEXT">curl -H "X-MBX-APIKEY: kaWeQf4fa9LLHzd8Lg6i2KwQT6jZHRWjkadNlym5XoYWQ2KJLVXiIKoPnnkbBuJV"  -X GET 'https://api.binance.com/api/v3/allOrders?symbol=BTCBUSD&amp;timestamp=1499827319559&amp;signature=H0MD66rhiCyhK0n45B1p0YmK1aGIAfiJLdwfkO1fK4g5aXW4gd6pZNZMQ2pC0dvx'</field>
                            </shadow>
                            <block type="variables_get" id="tIG}nPXVR#}|/3XMA3,;">
                              <field name="VAR" id="=IK+ZIjb40nXFN0x61/+">curl-Befehl</field>
                            </block>
                          </value>
                          <statement name="STATEMENT">
                            <block type="debug" id="MT7[[,Dkr)IzPH?W0^[|">
                              <field name="Severity">log</field>
                              <value name="TEXT">
                                <shadow type="text">
                                  <field name="TEXT">gemacht</field>
                                </shadow>
                                <block type="variables_get" id="8S_}t},J,CM:Q@4He0^r">
                                  <field name="VAR" id="=IK+ZIjb40nXFN0x61/+">curl-Befehl</field>
                                </block>
                              </value>
                              <next>
                                <block type="debug" id="9rZ9@9OYd}*(:h5al*+2">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text">
                                      <field name="TEXT">gemacht</field>
                                    </shadow>
                                    <block type="text" id="c+4$(Sgx.6E|U4``rP,^">
                                      <field name="TEXT">####################</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="debug" id="O-AmX*[FKObu9|L9tWeo">
                                      <field name="Severity">log</field>
                                      <value name="TEXT">
                                        <shadow type="text">
                                          <field name="TEXT">gemacht</field>
                                        </shadow>
                                        <block type="variables_get" id="xq{TrE5oR;KCF@)$YIv(">
                                          <field name="VAR" id=")uj8Z)MWhW{khTsW3qKH">result</field>
                                        </block>
                                      </value>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      

      Be der Ausführung erhalte dann aber die Fehlermeldung:

      {"code":-1022,"msg":"Signature for this request is not valid."}

      Den Secret-Key habe ich kontrolliert, dieser ist korrekt?
      Bei einer Webrecherche bin ich auf folgendes gestoßen, werd aber nicht richtig schlau daraus:

      Signature isn't the secret key. Please read the docs regarding signature generation.
      https://github.com/binance-exchange/binance-signature-examples

      Danke für deine Hilfe. 👍

      lg

      posted in JavaScript
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      Ich habe deinen Vorschlag ausprobiert und erhalte folgende Fehlermeldung:

      CODE:
      curl -H "X-MBX-APIKEY:meinAPI Key" -X GET 'https://api.binance.com/api/v3/allOrders?symbol=BTCBUSD&signature=meinSecretKey'

      Fehlermeldung:
      {"code":-1102,"msg":"Mandatory parameter 'timestamp' was not sent, was empty/null, or malformed."}

      Danach habe ich „Timestamp“ eingefügt und erhalte folgende Fehlermeldung:

      CODE:
      curl -H "X-MBX-APIKEY:meinAPI Key" -X GET 'https://api.binance.com/api/v3/allOrders?symbol=BTCBUSD&timestamp=1499827319559&signature=meinSecretKey'

      Fehlermeldung:
      {"code":-1021,"msg":"Timestamp for this request is outside of the recvWindow."}

      Ahh... so schwer hatte ich mir das nicht vorgestellt 😢

      posted in JavaScript
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      Könntest du noch einmal helfen?

      Ich habe folgenden Curl-Befehl eingeben, erhalte aber eine Fehlermeldung:

      curl -H "X-MBX-APIKEY:meinAPI Key" -X GET 'https://api.binance.com/api/v3/allOrders &signature=
      meinSecretKey'

      <html><body><h2>404 Not found</h2></body></html

      Ich möchte gern die Anzahl der offenen Orders auslesen. 😢

      Liebe Grüße
      Peter

      posted in JavaScript
      P
      PeterM1894
    • RE: Rhasspy Offline Sprachsteuerung

      Hallo,

      hat von euch schon jemand Rhasspy in einem Proxmox LXC Container
      zum Laufen bekommen?

      Ich wäre für einen kurze Anleitung sehr dankbar. Denn wenn ich ehrlich bin, verstehe ich von der offiziellen Install Anleitung nur Bahnhof und weiß nicht, was ich machen muss. 🤔 😞

      z.B. Welches CT Template muss ich nehmen und dann welche Installationsanleitung (Docker, Debian oder Virtual Environment).

      Hoffe ihr helft mir weiter. 👍

      Ich wünsche euch ein sonniges Wochenende. ☺

      Liebe Grüße
      Peter

      posted in Off Topic
      P
      PeterM1894
    • RE: Binance API ausgeführte Trades / Fill Orders auslesen

      danke für deine schnelle Antwort.. ich werde das einmal so ausprobieren.

      "Der Adapter ist doch vor 18 Tagen noch geändert worden"
      ich hatte Kartax angeschrieben und der hatte geantwortet, dass er nicht mehr mit iobroker arbeitet und deshalb nicht mehr weiter entwickelt?

      lg
      Peter

      posted in JavaScript
      P
      PeterM1894
    • Binance API ausgeführte Trades / Fill Orders auslesen

      Ich suche Hilfe,
      ich möchte in iobroker die ausgeführten Trades / Fill Orders auslesen, um damit eine Push-Benachrichtigung anstoßen zu können?

      Offizielle Seite von Binance:
      https://binance-docs.github.io/apidocs/spot/en/#general-api-information

      Leider bin ich totaler Anfänger und habe keine Ahnung wie das in JavaScript funktionieren könnte.

      Der „ioBroker.binance“ Adapter wird ja leider nicht weiterentwickelt, kann diese Daten aber auch nicht zu Verfügung stellen.

      Kann jemand helfen?👍

      Liebe Grüße
      Peter 😊

      posted in JavaScript
      P
      PeterM1894
    • RE: [Neuer Adapter] Binance

      Weiß jemand, ob und wie es möglich wäre, über ausgeführte Trades / filled Orders informiert zu werden bzw. diese auszulesen, um damit eine Push-Benachrichtigung anstoßen zu können?

      Kann jemand helfen?

      posted in Entwicklung
      P
      PeterM1894
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo