Git Product home page Git Product logo

mexc-api-demo's People

Contributors

eddieapi avatar forkrulassail avatar joyce111222 avatar kuoyuhsiang avatar mxcdev avatar night-mexc avatar ross-ht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mexc-api-demo's Issues

transfer function V3

hello and thanks for your project , can i ask you to add transfer function to V3 API?
it is a must one in order to trade isolated .
thank you much !

occur error for extend listen key

when i create a listen key ;
i extend it every 10 second ; and return 730708 error code .
what happen and how do i fix it ?

Map<String, String> params = Map.of("listenKey", listenKey, "recvWindow", "60000");
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                Map<String, String> refreshResultMap = UserDataClient.put("/api/v3/userDataStream", params, new TypeReference<>() {});
                logger.info("extend listenKey for mexc , return result : {}", JSONObject.toJSONString(refreshResultMap));
            }
        }, 10 * 1000, 10 * 1000);

{"code":"730708","msg":"listen key information error"}

Go demo SpotAccountInfo results in "Signature for this request is not valid"

Description
I've needed to test signature generation for GET /api/v3/account endpoint. Running mexc-api-demo/go/run demo/Spot Trade results in an error: {"code":700002,"msg":"Signature for this request is not valid."}

Steps to Reproduce

  1. Set up API keys in config/config.go
  2. Make request: go run /run demo/Spot Trade/SpotAccountInfo.go

Actual behavior
Response is: {"code":700002,"msg":"Signature for this request is not valid."}

Expected behavior
Response is {"makerCommission":null, ..., "permissions":["SPOT"]}

Additional context
I've resolved the error for this endpoint.

message := fmt.Sprintf("%s&timestamp=%d", strParams, timestamp)

Changing to this resolved an error:

message := fmt.Sprintf("%stimestamp=%d", strParams, timestamp)

This fix works for GET /api/v3/account, but further testing needed for other endpoints.

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.