I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Exchange execution error – version 0.1.3

dashed-slug.net Forums Exchange extension support Exchange execution error – version 0.1.3

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #3661
    Anonymous
    Inactive

    A further update on this from what I have found is that this error occurs only when you are trading on the bid side. If you trade on the ask side the trade executes correctly.

    #3665
    alexg
    Keymaster

    Thank you very much for your feedback. It is very helpful.

    I was already made aware that there is some error in the matching engine, and it didn’t get caught by my tests.

    I plan to fix this very soon, as it obviously is a matter of priority.

    There will be a patch as soon as possible.

    #3666
    Anonymous
    Inactive

    Hi Alex,

    I made the following change that seems to have fixed the issue:
    Line 1568 in php-api.php

    Changed to: if ( ‘bid’ == $maker_order->direction ) {

    #3668
    alexg
    Keymaster

    Thank you for the detailed explanation and for attempting to provide a fix.

    Your fix is almost correct except it does not correctly calculate fees.

    With your help I have identified the problem and will provide a fix that will also correctly take maker/taker fees into account.

    best regards

    #3675
    alexg
    Keymaster

    In version 0.2.0-beta, released just now, I have provided a major refactoring and cleanup of the matching engine. A number of bugs on the trading logic and fee calculation were fixed.

    Thank you for you help.

    kind regards

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.