Bitcoin Forum
May 04, 2024, 01:40:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: forkdelta/etherdelta order 'time to expiration' calculator  (Read 121 times)
omer-jamal (OP)
Sr. Member
****
Offline Offline

Activity: 490
Merit: 275


View Profile
April 23, 2019, 11:44:30 AM
 #1

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 ..
1714786853
Hero Member
*
Offline Offline

Posts: 1714786853

View Profile Personal Message (Offline)

Ignore
1714786853
Reply with quote  #2

1714786853
Report to moderator
1714786853
Hero Member
*
Offline Offline

Posts: 1714786853

View Profile Personal Message (Offline)

Ignore
1714786853
Reply with quote  #2

1714786853
Report to moderator
1714786853
Hero Member
*
Offline Offline

Posts: 1714786853

View Profile Personal Message (Offline)

Ignore
1714786853
Reply with quote  #2

1714786853
Report to moderator
The trust scores you see are subjective; they will change depending on who you have in your trust list.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
funchiestz
Sr. Member
****
Offline Offline

Activity: 1134
Merit: 342


View Profile
April 23, 2019, 12:01:14 PM
Merited by omer-jamal (2)
 #2

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.
omer-jamal (OP)
Sr. Member
****
Offline Offline

Activity: 490
Merit: 275


View Profile
April 23, 2019, 12:06:53 PM
 #3

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!