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.

[Deribit] Errors if set sandbox mode

See original GitHub issue
  • OS: macOS 10.14.5
  • Programming Language version: Node.js
  • CCXT version: 1.18.538
  • Exchange: Deribit
  • Method: Exchange.setSandboxMode()

Something wrong happens when I use Deribit’s testnet

const api = ccxt.deribit(options)
api.setSandboxMode()
await api.fetchBalance()

deribit GET [object Object]/api/v1/private/account only absolute urls are supported

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
alexeymarunincommented, May 24, 2019

Yep, that code is working)

1reaction
alexeymarunincommented, May 24, 2019

Value of this.urls['api'] in deribit.sign()

{
  "logo": "https://user-images.githubusercontent.com/1294454/41933112-9e2dd65a-798b-11e8-8440-5bab2959fcb8.jpg",
  "api": {
    "0": "h",
    "1": "t",
    "2": "t",
    "3": "p",
    "4": "s",
    "5": ":",
    "6": "/",
    "7": "/",
    "8": "t",
    "9": "e",
    "10": "s",
    "11": "t",
    "12": ".",
    "13": "d",
    "14": "e",
    "15": "r",
    "16": "i",
    "17": "b",
    "18": "i",
    "19": "t",
    "20": ".",
    "21": "c",
    "22": "o",
    "23": "m"
  },
  "www": "https://www.deribit.com",
  "doc": [
    "https://docs.deribit.com/",
    "https://github.com/deribit"
  ],
  "fees": "https://www.deribit.com/pages/information/fees",
  "test": "https://test.deribit.com",
  "referral": "https://www.deribit.com/reg-1189.4038",
  "api_backup": {
    "0": "h",
    "1": "t",
    "2": "t",
    "3": "p",
    "4": "s",
    "5": ":",
    "6": "/",
    "7": "/",
    "8": "w",
    "9": "w",
    "10": "w",
    "11": ".",
    "12": "d",
    "13": "e",
    "14": "r",
    "15": "i",
    "16": "b",
    "17": "i",
    "18": "t",
    "19": ".",
    "20": "c",
    "21": "o",
    "22": "m"
  }
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Deribit API
Deribit API v2.1.1; Overview. Naming; Rate Limits. JSON-RPC. Request messages; Response messages; Detailed response for private/cancel_all* and ...
Read more >
Exchanges — ccxt 2.4.71 documentation
The ccxt library is a collection of available crypto exchanges or exchange classes. ... setSandboxMode (true) // enable sandbox mode.
Read more >
cryptofeed - PyPI
Handles multiple cryptocurrency exchange data feeds and returns normalized and standardized results to client registered callbacks for events like trades, book ...
Read more >
Market Data - Starter Guide – CoinAPI.io Reference
However, if you decide to create your own implementation or to change existing one, ... Error message is returned in JSON structured like...
Read more >
Utility Sub-commands - Freqtrade
Besides the Live-Trade and Dry-Run run modes, the backtesting , edge and hyperopt ... These subcommands have same usage and same set of...
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