Comments (5)
@amir-the-h thanks issue is fixed
from okex.
Message that will be displayed on users first issue
from okex.
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.
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.
@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)
- [BUG] GetOrderDetail 方法传错 request type HOT 1
- When the method is post, the data can definitely be passed in HOT 4
- Duplicated Mutex HOT 2
- [BUG] Wrong json field value in public market API HOT 4
- Memory Leak [BUG] HOT 3
- [BUG] /api/v5/public/time return empty response and nil err HOT 2
- [BUG] hi, How can I automatically add addresses to the white list? HOT 2
- Few symbols HOT 3
- [BUG] goroutine leak in websocket api HOT 3
- [BUG] panic concurrent map read and map write HOT 1
- publicdata.Instrument Missing parameters? HOT 2
- - HOT 1
- nil pointer dereference HOT 3
- WS orderBook method does not return data HOT 5
- WARNING: DATA RACE HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okex.