December 30, 2021 at 12:42 pm #11320
on some markets i have the problem, that orders are not shown. When ich check the json call this orders are not in. but when i check the db, i can see this orders.
how can i solve this?
and btw .. i wish you a good start in the new yearDecember 31, 2021 at 8:48 am #11322
It’s unlikely that the responses are being cached on the client side, since the correct no-cache headers are set in the JSON-API responses.
It sounds as if the JSON-API responses are being cached on the server-side. Did you check your cache or caches? You should be excluding all queries that have the GET parameters
__wallets_exchange_actionfrom your caching plugins. All server-side caching plugins have black lists or exclusion lists. Some “optimization” plugins also do page caching.
(This issue will be resolved once and for all with the upcoming release, where the JSON-API is replaced with WP REST APIs.)
Hope you have a great 2022! Let me know if you can’t resolve this issue.
with regardsJanuary 26, 2022 at 11:52 am #11388
i disabled all “cache optimizion” plugins and checked out cloudflare, but it wont work. some orders are not in the api but in databaseJanuary 27, 2022 at 8:01 am #11391
This is a straight-forward issue that I can investigate on your system if you like. Can you give me admin access to your WordPress system?
If so, please email me with:
1. link to your site
2. admin login credentials
3. the order_id of one order that you see on the database but not in the API
If you do not want to give me access, then I can guide you to debug this.
Essentially what I would do, is use wp-console to first check if the PHP-API reports the order, and then the JSON-API. Tracing the execution path of the code that handles the JSON-API will make it clear whether stale transients are used, or what is going on in general.
Let me know how you want to proceed.
with regardsFebruary 17, 2022 at 9:55 am #11480
i mailed youFebruary 18, 2022 at 7:41 am #11483
I have replied to your email.
For the benefit of others reading this thread:
__wallets_exchange_action=get_market_orderbookendpoint does not retrieve orders. Instead it retrieves the orderbook’s depth summary, where the market’s liquidity is shown in aggregate form. Limit orders with the same price are added into one row. Hence you wouldn’t expect Order IDs in the output.
To retrieve individual orders, use the endpoint:
__wallets_exchange_action=get_user_orders. The API is explained in the documentation.
- You must be logged in to reply to this topic.