etherdelta / etherdelta.github.io

https://etherdelta.com
554 stars 688 forks source link

etherdelta api filled order #104

Open akerbabber opened 7 years ago

akerbabber commented 7 years ago

I'm Using ED's API for reading the orderbook GET https://api.etherdelta.com/orders/[TOKEN ADDRESS]/[PAGE] can i tell if the order is already busy just from API? just like when you get the error message "You cannot trade this order because it already traded. Someone else already traded this order and the order book hasn't updated yet." is this process on or offchain? i supposed it is offchain because you don't need metamak's confirmation ty for everything related to this project.

zackcoburn commented 7 years ago

You'd have to query the Ethereum API to get that information (this is what the UI does when it shows you that message). The order book server is also constantly querying the API for this information, but it can lag a bit.

See the availableVolume function in the smart contract: https://etherscan.io/address/0x8d12a197cb00d4747a1fe03395095ce2a5cc6819#code

On Tue, Sep 12, 2017 at 12:37 AM, akerbabber notifications@github.com wrote:

I'm Using ED's API for reading the orderbook GET https://api.etherdelta.com/orders/[TOKEN ADDRESS]/[PAGE] can i tell if the order is already busy just from API? just like when you get the error message "You cannot trade this order because it already traded. Someone else already traded this order and the order book hasn't updated yet." is this process on or offchain? i supposed it is offchain because you don't need metamaks confirmation ty for everything related to this project

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/etherdelta/etherdelta.github.io/issues/104, or mute the thread https://github.com/notifications/unsubscribe-auth/APEqPch3lXhMh8fbUCACWOWSXb1XGK62ks5shgqIgaJpZM4PUF8l .