kelp icon indicating copy to clipboard operation
kelp copied to clipboard

could not get last trade cursor from exchangeShim

Open RASTecnoTI opened this issue 3 years ago • 6 comments

I am trying use the kelp on my server, I used this article and I receive this error:

https://stellarupdate.com/make-use-of-arbitrage-opportunities-with-kelp-bot-653/ https://medium.com/axons/how-to-create-liquidity-with-kelp-on-the-stellar-dex-5155928d4986

2021/01/25 17:27:41 could not get last trade cursor from exchangeShim: error while fetching latest trade cursor in SDEX: horizon error: "Bad Request" - check horizon.Error.Problem for more information 2021/01/25 17:27:42 metric - successfully sent event metric of type 'delete_offers'

RASTecnoTI avatar Jan 25 '21 20:01 RASTecnoTI

Thanks for filing. Can you please upload your log file as well to help me reproduce the issue and debug?

nikhilsaraf avatar Jan 25 '21 21:01 nikhilsaraf

@RASTecnoTI are you still facing this issue? If so, please upload your log file so I can help debug it.

nikhilsaraf avatar Feb 09 '21 23:02 nikhilsaraf

@RASTecnoTI ping

nikhilsaraf avatar Apr 12 '21 15:04 nikhilsaraf

Anyone got an answer to this?

webandapptest avatar Jun 09 '21 13:06 webandapptest

It could be an issue related to the fact that the market has 0 trade history -- this is fixed in kelp so if you are using an old version of kelp it's possible that upgrading to the latest version may fix it.

@webandapptest are you facing this same issue? If so and if the above doesn't fix it then can you please upload your log file to help debug?

nikhilsaraf avatar Jun 23 '21 18:06 nikhilsaraf

`(base) ➜ bin git:(master) ✗ ./kelp trade -c sample_trader.cfg -s buysell -f sample_buysell.cfg --sim

2022/09/14 20:03:22 Starting Kelp Trader: master:v1.12.0-2-g7a2114dc [7a2114dc44798f06897f726a739c6fc28c063664] (simulation mode) 2022/09/14 20:03:22 will run unbounded iterations 2022/09/14 20:03:22 configs: 2022/09/14 20:03:22 SOURCE_SECRET_SEED: [secret key to account GBHXGGUD3LIAWJHFO7737C4TFNDDDLZ74C6VBEPF5H53XNRCVIUWZA5I] 2022/09/14 20:03:22 TRADING_SECRET_SEED: [secret key to account GCB7WIQ3TILJLPOT4E7YMOYF6A5TKYRWK3ZHJ5UR6UKD7D7NJVWNWIQV] 2022/09/14 20:03:22 ASSET_CODE_A: XLM 2022/09/14 20:03:22 ISSUER_A: 2022/09/14 20:03:22 ASSET_CODE_B: COUPON 2022/09/14 20:03:22 ISSUER_B: GBMMZMK2DC4FFP4CAI6KCVNCQ7WLO5A7DQU7EC7WGHRDQBZB763X4OQI 2022/09/14 20:03:22 TICK_INTERVAL_MILLIS: 300000 2022/09/14 20:03:22 MAX_TICK_DELAY_MILLIS: 0 2022/09/14 20:03:22 SLEEP_MODE: 2022/09/14 20:03:22 DELETE_CYCLES_THRESHOLD: 0 2022/09/14 20:03:22 SUBMIT_MODE: both 2022/09/14 20:03:22 FILL_TRACKER_SLEEP_MILLIS: 150000 2022/09/14 20:03:22 FILL_TRACKER_DELETE_CYCLES_THRESHOLD: 0 2022/09/14 20:03:22 SYNCHRONIZE_STATE_LOAD_ENABLE: false 2022/09/14 20:03:22 SYNCHRONIZE_STATE_LOAD_MAX_RETRIES: 0 2022/09/14 20:03:22 FILL_TRACKER_LAST_TRADE_CURSOR_OVERRIDE: 2022/09/14 20:03:22 HORIZON_URL: https://horizon-testnet.stellar.org 2022/09/14 20:03:22 CCXT_REST_URL: 2022/09/14 20:03:22 DOLLAR_VALUE_FEED_BASE_ASSET: 2022/09/14 20:03:22 DOLLAR_VALUE_FEED_QUOTE_ASSET: 2022/09/14 20:03:22 FEE: 2022/09/14 20:03:22 CAPACITY_TRIGGER: 0.8 2022/09/14 20:03:22 PERCENTILE: 90 2022/09/14 20:03:22 MAX_OP_FEE_STROOPS: 5000 2022/09/14 20:03:22 CENTRALIZED_PRICE_PRECISION_OVERRIDE: 2022/09/14 20:03:22 CENTRALIZED_VOLUME_PRECISION_OVERRIDE: 2022/09/14 20:03:22 CENTRALIZED_MIN_BASE_VOLUME_OVERRIDE: 2022/09/14 20:03:22 CENTRALIZED_MIN_QUOTE_VOLUME_OVERRIDE: 2022/09/14 20:03:22 POSTGRES_DB: 2022/09/14 20:03:22 DB_OVERRIDE__ACCOUNT_ID: 2022/09/14 20:03:22 FILTERS: [] 2022/09/14 20:03:22 ALERT_TYPE: 2022/09/14 20:03:22 ALERT_API_KEY: 2022/09/14 20:03:22 MONITORING_PORT: 0 2022/09/14 20:03:22 MONITORING_TLS_CERT: 2022/09/14 20:03:22 MONITORING_TLS_KEY: 2022/09/14 20:03:22 GOOGLE_CLIENT_ID: 2022/09/14 20:03:22 GOOGLE_CLIENT_SECRET: 2022/09/14 20:03:22 ACCEPTABLE_GOOGLE_EMAILS: 2022/09/14 20:03:22 TRADING_EXCHANGE: 2022/09/14 20:03:22 EXCHANGE_API_KEYS: 2022/09/14 20:03:22 EXCHANGE_PARAMS: 2022/09/14 20:03:22 EXCHANGE_HEADERS: 2022/09/14 20:03:22 Trading XLM: for COUPON:GBMMZMK2DC4FFP4CAI6KCVNCQ7WLO5A7DQU7EC7WGHRDQBZB763X4OQI 2022/09/14 20:03:22 metric - not sending event metric of type 'bot_startup' because metrics are disabled 2022/09/14 20:03:22 using client.AppName = kelp--cli--bot 2022/09/14 20:03:22 using CCXT-rest URL: http://localhost:3000 2022/09/14 20:03:22 Using network passphrase: Test SDF Network ; September 2015 2022/09/14 20:03:22 Making strategy: buysell 2022/09/14 20:03:22 configs: 2022/09/14 20:03:22 PRICE_TOLERANCE: 0.001 2022/09/14 20:03:22 AMOUNT_TOLERANCE: 0.001 2022/09/14 20:03:22 RATE_OFFSET_PERCENT: 0 2022/09/14 20:03:22 RATE_OFFSET: 0 2022/09/14 20:03:22 RATE_OFFSET_PERCENT_FIRST: true 2022/09/14 20:03:22 AMOUNT_OF_A_BASE: 10 2022/09/14 20:03:22 DATA_TYPE_A: exchange 2022/09/14 20:03:22 DATA_FEED_A_URL: kraken/XXLM/ZUSD/mid 2022/09/14 20:03:22 DATA_TYPE_B: fixed 2022/09/14 20:03:22 DATA_FEED_B_URL: 1.0 2022/09/14 20:03:22 LEVELS: [{SPREAD:0.001 AMOUNT:100} {SPREAD:0.0015 AMOUNT:100}] 2022/09/14 20:03:24 2022/09/14 20:03:24 could not get last trade cursor from exchangeShim: error while fetching latest trade cursor in SDEX: horizon error: "Resource Missing" - check horizon.Error.Problem for more information (quoteAssetError: asset 'COUPON:GBMMZMK2DC4FFP4CAI6KCVNCQ7WLO5A7DQU7EC7WGHRDQBZB763X4OQI' did not exist) 2022/09/14 20:03:24 metric - not sending event metric of type 'delete_offers' because metrics are disabled 2022/09/14 20:03:24 2022/09/14 20:03:24 waiting for all outstanding threads (0) to finish before loading offers to be deleted... 2022/09/14 20:03:24 ...all outstanding threads finished 2022/09/14 20:03:24 2022/09/14 20:03:24 deleting all offers and then exiting... 2022/09/14 20:03:24 created 0 operations to delete offers 2022/09/14 20:03:24 2022/09/14 20:03:24 ...nothing to delete, exiting (base) ➜ bin git:(master) ✗`

I met same issue

sngyai avatar Sep 14 '22 12:09 sngyai