Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems that bid/ask prices are swapped in wex exchange #389

Closed
rubobaquero opened this issue Oct 24, 2017 · 2 comments
Closed

Seems that bid/ask prices are swapped in wex exchange #389

rubobaquero opened this issue Oct 24, 2017 · 2 comments
Assignees

Comments

@rubobaquero
Copy link
Contributor

It seems that bid and ask prices are swapped in wex->fetch_ticker() response. For example:

$wex = new \ccxt\wex();
$wex->load_markets();
print_r($wex->fetch_ticker("ETH/EUR"));

Returns a bid price (272.384) higher than the ask price (270.70566).

Array
(
    [symbol] => ETH/EUR
    [timestamp] => 1508856580000
    [datetime] => 2017-10-24T14:49:40.000+00:00
    [high] => 278.387
    [low] => 246.90808
    [bid] => 272.384
    [ask] => 270.70566
    [vwap] => 
    [open] => 
    [close] => 
    [first] => 
    [last] => 271.08476
    [change] => 
    [percentage] => 
    [average] => 262.64754
    [baseVolume] => 1707.00159
    [quoteVolume] => 443983.21075
    [info] => Array
        (
            [high] => 278.387
            [low] => 246.90808
            [avg] => 262.64754
            [vol] => 443983.21075
            [vol_cur] => 1707.00159
            [last] => 271.08476
            [buy] => 272.384
            [sell] => 270.70566
            [updated] => 1508856580
        )

)
@kroitor
Copy link
Member

kroitor commented Oct 24, 2017 via email

@kroitor kroitor self-assigned this Oct 24, 2017
@kroitor
Copy link
Member

kroitor commented Oct 24, 2017

This issue is fixed as of 1.9.243+. WEX bid/asks in tickers are now set properly. Thx again! Let us know if you have any other questions or difficulties. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants