Author

Topic: forkdelta/etherdelta order 'time to expiration' calculator (Read 132 times)

sr. member
Activity: 490
Merit: 275
hi funchiestz  Smiley

What will happen if the price falls? or token swap  or anything else .. You will get a higher price
you are right it's not quite important .. for some user know time is important to them
sr. member
Activity: 1134
Merit: 342
Thank you for this sharing. I like it but I am not sure that we need it. If we made a real trade at any price, we can trade with 1000000 blocks. And it will be done in a while later. Or you can buy or sell a valid price because we can see all orders transparently.
sr. member
Activity: 490
Merit: 275
Hi everyone

If you are a users of decentralized exchanges or dealt with before you will notice a field when you create a sell / buy order that name Expires field

What does Expires mean and what is used?

This field is intended to determine a period of time after which the order is automatically canceled. The count here depends on the number of incoming ethereum blocks The average mining of each block in ethereum is about ~ 14 seconds per block More or less than this

If you want to place a sell or buy order and it is automatically canceled after 5 minutes you will have to manually calculate Expires
or the required number of blocks within 5 minutes

Unfortunately, some of these exchanges did not provide a way for automatic calculate to be available to users


Why Know the correct Expires number important?

in decentralized exchanges cancel orders requires gas fee Knowing and putting the correct number will distract you from spending more gas fee
change the prices another reasons


develop a simple tool to save time!

Initially I searched for a tool that could be used for this purpose I could not find a suitable tool or I did not search Enough
There is a method using the calculator but this is not quite practical I thought about doing a "simple tool"  for this purpose is a simple experiment not tool simple! I will be happy if you try  Smiley and give feedback or correct mistakes .. Also code needs organization And re-correction  Grin .. no problem

tool link for test: https://deltacal.surge.sh/
Or by clicking on the image below



Usage:
it's only one page you can save the page and use it whenever you want (html & jquery)

I thank My friend from forkdelta community Useful modifications to be modified in the current form all thanks to him ..
Jump to: