Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Index out of range when getting prices from sdex #416

Closed
joaofrp opened this issue May 5, 2020 · 6 comments
Closed

Index out of range when getting prices from sdex #416

joaofrp opened this issue May 5, 2020 · 6 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@joaofrp
Copy link

joaofrp commented May 5, 2020

Describe the bug

Getting error "index out of range" when the bot gets the price feed of two tokens on the sdex

Frequency

Always

Steps To Reproduce

Set the bot to get a feed from the sdex, for example:

DATA_TYPE_A="sdex"
DATA_FEED_A_URL="BTC:GAUTUYY2THLF7SGITDFMXJVYH3LHDSMGEAKSBU267M2K7A3W543CKUEF/BTC:GBVOL67TMUQBGL4TZYNMY3ZQ5WGQYFPFD5VJRWXR72VA33VFNL225PL5"
DATA_TYPE_B="fixed"
DATA_FEED_B_URL="1.0"

Your Environment

cli version: master:v1.8.1
gui version: v0.0.1-alpha
git branch: master
git hash: 90e3102
build date: 20200217T212830Z
env: release
GOOS: linux
GOARCH: arm

@joaofrp joaofrp added the bug Something isn't working label May 5, 2020
@nikhilsaraf
Copy link
Contributor

nikhilsaraf commented May 12, 2020

@joaofrp Had missed this issuer earlier. Are you still getting this issue? If so, can you please send me the log file (or upload to the issue here?)

@nikhilsaraf nikhilsaraf self-assigned this May 12, 2020
@nikhilsaraf nikhilsaraf added this to the v1.8.x milestone May 12, 2020
@joaofrp
Copy link
Author

joaofrp commented May 12, 2020

@nikhilsaraf
Copy link
Contributor

@joaofrp The log files does not show the index out of range error. Can you give me a log file that shows that error?

Separately, I noticed that your log file shows that you don't have any balance of one of quote BTC asset. Can you fix that and see if it resolved the issue?

2020/05/12 22:00:57 (base) assetA=BTC:GCNSGHUCG5VMGLT5RIYYZSO7VQULQKAJ62QA33DBC5PPBSO57LFWVV6P, maxA=0.08237120, trustA=922337203685.47753906
2020/05/12 22:00:57 (quote) assetB=BTC:GBVOL67TMUQBGL4TZYNMY3ZQ5WGQYFPFD5VJRWXR72VA33VFNL225PL5, maxB=0.00000000, trustB=900000000000.00000000
...
...
2020/05/12 22:00:59 no capacity to place sell orders (nothingToSell = true, lineFull = false)

@joaofrp
Copy link
Author

joaofrp commented May 13, 2020

@nikhilsaraf Here is a log file that shows the error:

log_BTC_GAUTUYY2THLF7SGITDFMXJVYH3LHDSMGEAKSBU267M2K7A3W543CKUEF_BTC_GBVOL67TMUQBGL4TZYNMY3ZQ5WGQYFPFD5VJRWXR72VA33VFNL225PL5_20200513T094151WEST.log

Now I have a non zero balance in both assets and the error still happened.

@nikhilsaraf
Copy link
Contributor

nikhilsaraf commented May 13, 2020

@joaofrp thanks for sharing the log file. fixed the issue. Are you running from the source code, in which case you can pull from master to get the fix.
Or are you running from a pre-compiled binary, in which case I can upload a binary for your platform here.

@joaofrp
Copy link
Author

joaofrp commented May 13, 2020

@nikhilsaraf Thank you for your work! I'll pull from master.

@nikhilsaraf nikhilsaraf modified the milestones: v1.8.x, v1.10.0 Sep 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants