Code Monkey home page Code Monkey logo

ascendex-pro-api-demo's Introduction

AscendEx Pro API Demo

Before running demo scripts, please make sure you create a new file config.json and put in your API key and secret. You can use config.json_template as a template.

Please refer to signature_demo for api signature.

Command line Tools

  • Place New Order
python3 python/order_new.py --symbol BTC/USDT --price 50000 --qty 0.0001 --order-type limit --side buy
  • Query All Open Orders
python3 python/query_prv_open_orders.py --symbol BTC/USDT
  • Cancel All Open Orders
python3 python/order_cancel_all.py --symbol BTC/USDT

ascendex-pro-api-demo's People

Contributors

aaron-gdmexchange avatar dpzhou-gdm avatar gw-gdm avatar ryan-bitmax avatar sourcery-ai-bot avatar zyw-gdm avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ascendex-pro-api-demo's Issues

RE: Beginner - Request for help

Good morning,
First I want to preface that I am a bit of a beginner and wanted to inquire if I could pay you for a bit of your time and see if I can't learn some about the bot, its setup, and practical application. If you are willing to offer some assistance for free that would be great too and I will certainly try to pay it forward in some way.

I hope to hear from you, my email is: [email protected]

-Kyle

Unreferenced error, order on market

Hello,

When I'm doing an order I get the following error code and message:

request failed, error code = 405
{"code":100102,"message":"HTTP method is not allowed."}

The code is not referenced in your API

JS Authentication failed

Hi,

I'm trying to use the javascript authentication, and works well when I get the user info:

let http_path = 'api/pro/v1/info' let api_path = 'info';

But if I change the request to trade history, I'm getting a error:

let http_path = 'api/pro/data/v2/order/hist'
let api_path = 'data/v2/order/hist?account=cash&startTime=1609470000000&endTime=1640919600000&limit=1000&symbol=XRP/USDT';

{
  code: 200001,
  message: 'API signature mismatch',
  reason: 'AUTHENTICATION_FAILED'
}

server error trade history

Hi,

I'm trying to get a trade history of 2021. But I'm getting a server error:


python3 python/query_prv_order_hist_v2.py --account cash --symbol BTC/USDT --limit 1000 --config config.json --start_time 1609470000000 --end_time 1640919600000

{'code': 500001,
 'message': 'Server Error, please try again later.',
 'reason': 'SERVER_ERROR'}

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.