dashed-slug.net › Forums › Exchange extension support › Could not add trade pair.
- This topic has 12 replies, 2 voices, and was last updated 5 years, 9 months ago by alexg.
-
AuthorPosts
-
December 11, 2018 at 2:02 pm #5232vorticismParticipant
In my case, adding a new trade pair does not show the added market at the front end.
Can you give me tips on how to fix this?December 12, 2018 at 8:27 am #5234alexgKeymasterHello,
Thanks for reporting. I am not able to reproduce the problem on my end. Could you please check the following?
1. Are you able to add a row to the markets table, by clicking on “Add row”?
2. Have you set your market to “Enabled”?
3. When you click on “Save Changes”, do you see any error?
4. Are the wallets for both coins of the pair online and responding?
5. Are you on a multisite install?
6. Roughly how many markets have you already added successfully?
Let me know please.
December 13, 2018 at 8:31 am #5236vorticismParticipant1. YES
2. YES
3. There is no error mark.
4. YES* 5. I am using multi-site. Exchange plugin are active at the network level.
6. Only one pair is in use from the beginning to the present. However, I have added a pair to the test. At that time, I was successful.
I can not add it now. No other problems are displayed in the backend.December 13, 2018 at 11:41 am #5243alexgKeymasterThank you for the very detailed answer.
I am trying to reproduce the problem but I am yet unable to do so. In my tests, I can add a market successfully, when the plugin is network activated.
If it’s not too much to ask, could you please also tell me the following?
1. Does the new market appear in the *admin screen* after you click on “save changes”? i.e. is it listed under Wallets -> Exchange -> Markets?
2. What is the output when you navigate to https://example.com/?__wallets_exchange_action=get_market_summaries (replace example.com with your site’s domain).
3. In your browser’s JavaScript console, what is the output of the following?
JSON.stringify( wp.wallets.viewModels.walletsExchange.marketSummaries() );
Thank you for your help.
December 14, 2018 at 6:03 am #5246vorticismParticipant1. Yes, the list is successfully added to the backend.
2.
{“market_summaries”:{“BTC_DOGE”:{“market”:”BTC_DOGE”,”min_ask”:”0.00000093″,”ask_volume”:”6001.58717224″,”ask_volume_base”:”9.00583347″,”max_bid”:”0.00000092″,”bid_volume”:”39523.26159308″,”bid_volume_base”:”0.03180521″,”trade_volume_base_24″:”0.00018360″,”trade_volume_quote_24″:”197.80692640″,”last_price”:”0.00000092″,”percent_change_24″:”-2.13″}},”result”:”success”}3.
{“BTC_DOGE”:{“market”:”BTC_DOGE”,”min_ask”:”0.00000093″,”ask_volume”:”6001.58717224″,”ask_volume_base”:”9.00583347″,”max_bid”:”0.00000092″,”bid_volume”:”39523.26159308″,”bid_volume_base”:”0.03180521″,”trade_volume_base_24″:”0.00018360″,”trade_volume_quote_24″:”197.80692640″,”last_price”:”0.00000092″,”percent_change_24″:”-2.13″}}My backend now has the BTC_DOGE & BTC_XRP market active.
Thank you for your help.
December 14, 2018 at 12:41 pm #5249alexgKeymasterThank you.
This is very strange. I suspect your server cache, as the JSON-API responses are normally cached for a few seconds using transients. If you can, please try the following:
1. In Wallets -> Exchange -> JSON API -> “Seconds to memoize market API calls”, try setting this to
0
. It will disable caching of the JSON API response. Does the market appear in the frontend after this change?2. Clear your server-side object cache (w3 total cache, memcached, etc) It’s a long shot but worth a try.
December 15, 2018 at 3:35 am #5271vorticismParticipantThere is currently no cache issue, but the issue still exists. (Both server side and wp side cache off)
There are additional issues.
A size order of 0 is not filled.
I tried several methods but could not remove this order. (Attachment) Is there a way to force removal?Attachments:
You must be logged in to view attached files.December 17, 2018 at 10:21 am #5295alexgKeymasterAbout the 0 order, you can always solve it via SQL with a
UPDATE wp_wallets_orders SET status='filled' WHERE amount=0;
and this should resolve your immediate issue. I will see what I can do so that this does not happen.I am still not sure why the market is not added in your frontend. Still investigating.
with regards
December 18, 2018 at 2:04 am #5303vorticismParticipantThank you
There was an open order with amount of 4.2 and a filled of 4.2.
I changed the status to filled (in phpmyadmin) and the problem is resolved.December 18, 2018 at 11:22 am #5309alexgKeymasterAs promised I will soon patch the exchange so that this issue with 0 amount orders does not occur.
About the issue regarding adding markets, could you try the following?
1. Update the parent plugin to the latest version
3.9.2
2. Go to Wallets -> Frontend settings -> JSON API Settings and check Disable transients (debug).
3. Visit the frontend again and see if your new market appears now.
4. If there is no change, deactivate the option again, as it will make the plugin somewhat slower when checked.
December 21, 2018 at 8:01 am #5344vorticismParticipantIf I check ‘Disable transients (debug)’ and save the settings, the option is unchecked.
Can not save as checked.
There are no other cache issues that I can understand.December 21, 2018 at 11:27 am #5346alexgKeymasterOops the option does not get written on multisite. I will fix that in the next patch of the parent plugin.
I am still unable to determine why you would be unable to view the market. From all the clues you’ve given me it seems that you are able to add it correctly to your database, but the JSON API does not report it to the frontend.
Very strange indeed.
January 3, 2019 at 1:05 pm #5476alexgKeymasterHello,
Are you still experiencing the issue of not being able to add a market to the Exchange?
If you are interested, there are two things you can check:
1. Install the latest version of the parent plugin,
3.9.3
, released just now. You will now be able to check the setting “Disable transients (debug)” in a multisite install. Does this make a difference? Do you see the markets in the frontend when this is checked? If not, then uncheck the option again as it will make your plugin somewhat slower when checked.2. Could you please check to make sure that both the parent plugin and the exchange extension are network-activated? If one of the plugins is activated on a single site then it might not work. I would therefore recommend that you go to network admin settings and deactivate both plugins, then check that they are deactivated in your site where you do your tests, then finally network activate both plugins again.
with regards
-
AuthorPosts
- You must be logged in to reply to this topic.