GithubHelp home page GithubHelp logo

dmarket / dm-trading-tools Goto Github PK

View Code? Open in Web Editor NEW
14.0 3.0 12.0 11 KB

This repository shows the examples of clients for DMarket trading API usage

Home Page: https://dmarket.com/

License: MIT License

Go 24.34% JavaScript 37.82% PHP 22.08% Python 15.76%
trading trading-api trading-skins dmarket-trading trading-bot signature dmarket-signature dmarket

dm-trading-tools's Introduction

dm-trading-tools's People

Stargazers

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

Watchers

 avatar  avatar  avatar

dm-trading-tools's Issues

I am trying to withdraw an item, but getting error 503

api url path : "/exchange/v1/withdraw-assets"
statusCode: 503, {"code":"Unavailable","message":"Service is temporary unavailable."}
I might be putting wrong ids... But if I did that, that wouldn't throw error 503, am I right ? So just to ensure...
the request body should be of this type:
{ "assets": [ { "classId": "string", "gameId": "string", "id": "string" } ], "requestId": "string" }
and I have filled it with
{ "assets": [ { "classId": "244572484:1336167975", "gameId": "tf2", "id": "7c38dbc5-61bc-5e5f-8289-f2b4741d623d" } ], "requestId": "135da4s65d4a" }

  1. where do I get requestId (for now I just used some random characters)
  2. is id the itemId obtained from item details by dmarket?

Lets skip to the code...
image

image
image
The headers should be good, they are working for example in case of using "/exchange/v1/offers-buy"
So where is the problem ? Am I just putting wrong ids, or the api endpoint is closed ?

"non-authorized users" requests stopped working

For my application I need to get the sale history. (GET/trade-aggregator/v1/last-sales). My request rate is very low so I didnt bother with authorization.

All api requests suddenly fail also on https://docs.dmarket.com/v1/swagger.html .

As far as FAQ explains, dmarket allows for non-authorized users requests and they worked fine until like 4 days ago. However suddenly authorization headers is required on all requests.

If non-authorized users requests are no longer allowed, please update your FAQ. If they are, please fix it.

Empty response

the status code is 200 OK - but the response is empty.

This problem has always existed, but rarely.
Now it happens all the time, all day long there are thousands of replies with this error. The request limit is not exceeded.
Please correct it, it is impossible to work with the site and trust the data.

Aggregated prices endpoint returns invalid prices

Very often endpoint /price-aggregator/v1/aggregated-prices returns invalid prices, which looks to be cached, sometimes even for 2 days.

image

When on site I can see that price is different:
image

Further more, it looks price is coming from offer, which was completed at 2nd August:
image

Is it expected behavior? Is there any caching, if yes, how to preserve caching or flush cache?

Unexpected identifier

I tried the code but it doesn't seem to run for me:

`import nacl from "tweetnacl";
^^^^

SyntaxError: Unexpected identifier`

With require it works for me.

Thanks for the example code though, it helped me a lot!

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.