question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cryptopia base and quote currency reversed

See original GitHub issue

The symbols Cryptopia uses have a reversed base and quote currency: DOT/BTC

Here you can see the results of a loadMarkets().

"DOT/BTC": {
    "id": 100,
    "symbol": "DOT/BTC",
    "base": "DOT",
    "quote": "BTC",
    "info": {
        "Id": 100,
        "Label": "DOT/BTC",
        "Currency": "Dotcoin",
        "Symbol": "DOT",
        "BaseCurrency": "Bitcoin",
        "BaseSymbol": "BTC",
        "Status": "OK",
        "StatusMessage": null,
        "TradeFee": 0.2,
        "MinimumTrade": 1e-8,
        "MaximumTrade": 100000000,
        "MinimumBaseTrade": 0.00005,
        "MaximumBaseTrade": 100000000,
        "MinimumPrice": 1e-8,
        "MaximumPrice": 100000000
    },
    "maker": 0.002,
    "taker": 0.002
},

base should be BTC.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
rdbrcommented, Sep 27, 2017

Thanks for the fix!

I agree about the base-quote. The crypto market isn’t always consistent with the real stock market. As long as the unified API gives consistent results across the exchanges, I’m fine with that.

1reaction
rdbrcommented, Sep 27, 2017

Check out the volumes in your example. baseVolume is in BTC.

'quoteVolume': 245.03618377,
'baseVolume': 18.27058447,

Here is the Cryptopia API GetMarkets:

GetMarkets
Returns all market data
GET https://www.cryptopia.co.nz/api/GetMarkets
Param: baseMarket (optional, default: All)
Param: hours (optional, default: 24)

If you get base BTC markets with https://www.cryptopia.co.nz/api/GetMarkets/BTC you will see the ETH/BTC pair.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is a Currency Pair? Major, Minor, and Exotic Examples
Currency pairs compare the value of one currency to another—the base currency (or the first one) versus the second or the quote currency....
Read more >
CryptoCurrency Pairs - Investing.com
Name Exchange Last Open High Low Chg. % Vol. Time Bitcoin Investing.com 16,584.8 16,797.3 16,781.1 16,567.7 ‑1.26% 211.71K 11:03:32 BTC/USD Binance 16,587.1 16,797.7 16,805.0 16,559.8...
Read more >
What is a quanto contract? - Delta Exchange
In a typical futures contract, there's a base currency and quote currency. ... be potentially denominated in USD (vanilla futures) or ETH (inverse...
Read more >
Why does the inverse of USDEUR not equal to EURUSD (or ...
The "inverse" of a currency pair is not always equal to the exchange rate of the opposite pair because we receive spot rates...
Read more >
Quote vs Base Cryptocurrency on Exchanges [Tutorial]
In this video, we cover what it means to be a base currency vs a quote currency on cryptocurrency exchanges. This will help...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found