Giter VIP home page Giter VIP logo

Comments (5)

busyuqboy avatar busyuqboy commented on September 23, 2024

Okay, I figured out how to get the REAL price on your order.

GET /spot/my_trades

image

from gateio-crypto-trading-bot-binance-announcements-new-coins.

0xfschott avatar 0xfschott commented on September 23, 2024

The price from the /spot/orders api is the original limit order price. However, everything under this price is bought.
In order to compute the "real" price you could do something like final_price = order['fill_price'] / order['amount']

from gateio-crypto-trading-bot-binance-announcements-new-coins.

motumboe avatar motumboe commented on September 23, 2024

I think there's nothing wrong on gate.io side. Maybe the bot takes into account the limit order price instead of the actual fill price.

from gateio-crypto-trading-bot-binance-announcements-new-coins.

busyuqboy avatar busyuqboy commented on September 23, 2024

The price from the /spot/orders api is the original limit order price. However, everything under this price is bought. In order to compute the "real" price you could do something like final_price = order['fill_price'] / order['amount']

I see what you're saying....that the /spot/orders api tells you what you submitted for the price. It doesn't mean that is the price you actually filled your buy order with. But it seems like you can fetch (to confirm) your price/trades with /spot/my_trades and get the price that was actually used with the fill order.

from gateio-crypto-trading-bot-binance-announcements-new-coins.

Linus045 avatar Linus045 commented on September 23, 2024

If there is still a problem that needs to be addressed, feel free to open the issue again.

from gateio-crypto-trading-bot-binance-announcements-new-coins.

Related Issues (20)

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.