Giter VIP home page Giter VIP logo

Comments (7)

burakoner avatar burakoner commented on June 26, 2024

Can you provide more specific details? Which endpoint? with which parameters? I cant help you if I dont know anything

from okex.net.

yuzhupeng avatar yuzhupeng commented on June 26, 2024

the error: Can't connect to the server },

but i use javascript is ok
code:
var ws = new WebSocket("wss://real.okex.com:8443/ws/v3");
ws.onopen = function() {
ws.send(JSON.stringify({"op": "subscribe", "args": ["futures/trade:BTC-USDT-210326"]}));
};
ws.onmessage = function(e) {
console.log("message:" + e.data);
};

from okex.net.

burakoner avatar burakoner commented on June 26, 2024

Can you share your C# codes please?

from okex.net.

EgorovOleg avatar EgorovOleg commented on June 26, 2024

It happens in different functions. Now threw an error in the Futures_PlaceOrder function

from okex.net.

burakoner avatar burakoner commented on June 26, 2024

I can't help in this way.

from okex.net.

EgorovOleg avatar EgorovOleg commented on June 26, 2024

I can't help in this way.

Hello. I figured out what the problem was. The signature in the "AddAuthenticationToHeaders" method is not quite correct.
For signing, I used this method, which is used in the official SDK from OKEX
private string HmacSHA256(string infoStr, string secret) { byte[] sha256Data = Encoding.UTF8.GetBytes(infoStr); byte[] secretData = Encoding.UTF8.GetBytes(secret); using (var hmacsha256 = new HMACSHA256(secretData)) { byte[] buffer = hmacsha256.ComputeHash(sha256Data); return Convert.ToBase64String(buffer); } }
In the allocated place, I replaced it with my function and everything worked stably.
Снимок

from okex.net.

burakoner avatar burakoner commented on June 26, 2024

Please take a look for c53e24f

from okex.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.