You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
I've been working on a couple of exchanges, and coding on them, and I keep coming up with the same question. Why is products of each exchange not created dynamically, and then cached in memory and then update the products.json cache.
I can see the idea of having them in a file, so external apps can read them without loading the exchange.js and querying it, but shouldn't there be a way either in the engine (making a call to a new function updateProducts?), or in the exchange code that says update products?
The reason this comes up is in the exchanges I've worked with, the min buy / sell and increment changes dynamically with the current price of the product, so there is times where it miscalculates, and the only way to resolve it is to exit zen, regenerate the products and reload zen.
Doing this would also eliminate the pulls that contain just update products on an exchange.
Is there another reason that I am unaware of for having the external products.json?
The text was updated successfully, but these errors were encountered:
To answer my own question. Its a catch-22 problem. the engine isn't loaded to the point where it can call the client and then get a result asynchronously, it needs it synchronous. The whole engine would need to be reworked to support promises from the exchanges and await a results for this to be implemented.
I've been working on a couple of exchanges, and coding on them, and I keep coming up with the same question. Why is products of each exchange not created dynamically, and then cached in memory and then update the products.json cache.
I can see the idea of having them in a file, so external apps can read them without loading the exchange.js and querying it, but shouldn't there be a way either in the engine (making a call to a new function updateProducts?), or in the exchange code that says update products?
The reason this comes up is in the exchanges I've worked with, the min buy / sell and increment changes dynamically with the current price of the product, so there is times where it miscalculates, and the only way to resolve it is to exit zen, regenerate the products and reload zen.
Doing this would also eliminate the pulls that contain just update products on an exchange.
Is there another reason that I am unaware of for having the external products.json?
The text was updated successfully, but these errors were encountered: