Giter VIP home page Giter VIP logo

Comments (5)

afzalabbasi avatar afzalabbasi commented on July 4, 2024 1

@amir-the-h thanks issue is fixed

from okex.

github-actions avatar github-actions commented on July 4, 2024

Message that will be displayed on users first issue

from okex.

amir-the-h avatar amir-the-h commented on July 4, 2024

Hey @afzalabbasi

The issue you are facing now is according to your API Key and the destination server of OKX.
Check here for more info about the servers. And also make sure you choose the correct destination in your code when you are choosing it.

dest := okex.NormalServer // The main API server
dest := okex. AwsServer // The main Amazon API server
dest := okex.DemoServer // The demo API server

from okex.

vantinic avatar vantinic commented on July 4, 2024

Hello @amir-the-h

I have the same issue with the Java Api version
basically I try both:

config.setEndpoint("https://www.okx.com/");
config.setEndpoint("https://aws.okx.com/");

And with a api key of demo trading, it works fine with both two rest endpoints

Unfortunately, when I try with-money real api keys (version 5)
I give me the following error:

com.okex.open.api.exception.APIException: 50101 : APIKey does not match current environment.

(wich is the same issue as You solved before)
This time is present at the same on Java Api version.
I went to the officia api documentation, it seems for real money there are no others choice betwwen that 2 endpoint for Rest.

Are there any suggestions ?

Thanks a lot in advance.

from okex.

Divyanshu0114 avatar Divyanshu0114 commented on July 4, 2024

@amir-the-h i am unable to place the order. in response of Place order function i found below error with status 50101 Msg:Broker id of APIKey does not match current environment. check API key and secret the value of Key and secret is correct. Important Point I am using testmod of API.

hey, use this -
flag = "0" # live trading: 0, demo trading: 1

from okex.

Related Issues (16)

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.