Bitcoin Forum

Economy => Currency exchange => Topic started by: vitorgamer58 on March 01, 2018, 03:34:42 AM



Title: Create a Exchange
Post by: vitorgamer58 on March 01, 2018, 03:34:42 AM
Personally, I would be interested in creating an Exchange for a pair of two cryptonight coins, without working with Fiat currency, being they the NBR and the BBRC, I tried the subtoshi but I did not succeed, does anyone know of any open-source exchange project?

My problem with subtoshi is that it redirects to pages without .php but apache2 only opens if it has .php in the end, would anyone know how to solve it? I think I was already helping. Thank you.

https://github.com/cryptonight/subtoshi

Test with subtoshi on a apache2 server: http://bolsomito2018-vitor.ddns.net/

=== UPDATE 24/06/2018 ====
Guys, I'd like to list here some Open Source Exchange projects I found on the internet.

PEATIO
https://github.com/InfraexDev/peatio - Recomended Fork
Used in: Graviex (https://graviex.net/), Nlench (https://www.nlexch.com/) and Yunbi (https://yunbi.com/)

Opentrade
https://github.com/3s3s/opentrade
Used in: https://trade.multicoins.org/

Blinktrade
https://github.com/blinktrade
Used in: Foxbit (https://foxbit.com.br/)
Documentation is Null

jaonoctus exchange
https://github.com/jaonoctus/exchange
Under Development

WLOX
https://github.com/wlox/wlox/
Used in: https://1btcxe.com/

TxBits
https://github.com/txbits/txbits

Partially Source: https://www.reddit.com/r/Bitcoin/comments/37ku14/open_source_exchanges_blinktrade_vs_wlox_vs/



Title: Re: Create a Exchange
Post by: EcuaMobi on March 01, 2018, 04:07:49 AM
My problem with subtoshi is that it redirects to pages without .php but apache2 only opens if it has .php in the end, would anyone know how to solve it? I think I was already helping. Thank you.
This can be solved with a simple URL-rewrite (https://www.addedbytes.com/blog/url-rewriting-for-beginners).
For example, this makes everything to be handled by index.php
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

I haven't used subtoshi so I wouldn't know the exact requirement.


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 01, 2018, 02:02:50 PM
My problem with subtoshi is that it redirects to pages without .php but apache2 only opens if it has .php in the end, would anyone know how to solve it? I think I was already helping. Thank you.
This can be solved with a simple URL-rewrite (https://www.addedbytes.com/blog/url-rewriting-for-beginners).
For example, this makes everything to be handled by index.php
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

I haven't used subtoshi so I wouldn't know the exact requirement.


I'll try, let's see what happens.


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 01, 2018, 09:35:40 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet


Title: Re: Create a Exchange
Post by: ZXChange on March 18, 2018, 11:48:30 AM
What's your intention to go through all the work to build an exchange for 2 pairs only? 


Title: Re: Create a Exchange
Post by: exchange.blue on March 18, 2018, 12:14:21 PM
What's your intention to go through all the work to build an exchange for 2 pairs only? 



I second that.. whats the point?


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 19, 2018, 09:02:07 PM
over time I would add more pairs

I'm having a better success with Opentrader, one of Subtoshi's programmers did not recommend putting it live for being outdated.

https://github.com/3s3s/opentrade


Title: Re: Create a Exchange
Post by: DigDeepMining on March 21, 2018, 07:16:20 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet
Thanks for pointing this script out, for a chuckle I thought I'd see how this script worked... it didn't work very well so I started changing the urls in the script to at least get a little bit of functionality then I read this post some more as I only read the first post at first, so I seen you got the script semi working using the .htaccess file (not sure where you found that as I searched but couldn't find it lol) so I copied the lines from your htaccess pic and made my own "yeah" it sort of works :)

I have a question though...
Do you know how to get the admin dash working?
I tried to add a few extra rewrites to see if that would help but the same problem persists... once I hit submit to login it just redirects to 404, any help would be great, thank you :)


Title: Re: Create a Exchange
Post by: lopez cryptomania on March 22, 2018, 02:06:20 PM
Here is an upcoming exchange ICO I believe in because they will be the first arbitrage exchange and their focus is to bring in the masses with their easy to use UI.

https://bitcointalk.org/index.php?topic=3085831.msg31823480#msg31823480


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 23, 2018, 05:15:49 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet
Thanks for pointing this script out, for a chuckle I thought I'd see how this script worked... it didn't work very well so I started changing the urls in the script to at least get a little bit of functionality then I read this post some more as I only read the first post at first, so I seen you got the script semi working using the .htaccess file (not sure where you found that as I searched but couldn't find it lol) so I copied the lines from your htaccess pic and made my own "yeah" it sort of works :)

I have a question though...
Do you know how to get the admin dash working?
I tried to add a few extra rewrites to see if that would help but the same problem persists... once I hit submit to login it just redirects to 404, any help would be great, thank you :)

this file htacess I did from scratch, so I created it, I also could not make the admin panel work, so I jumped to opentrade, another open source exchange that is more secure and with the admin panel running.


Title: Re: Create a Exchange
Post by: DigDeepMining on March 23, 2018, 11:58:57 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet
Thanks for pointing this script out, for a chuckle I thought I'd see how this script worked... it didn't work very well so I started changing the urls in the script to at least get a little bit of functionality then I read this post some more as I only read the first post at first, so I seen you got the script semi working using the .htaccess file (not sure where you found that as I searched but couldn't find it lol) so I copied the lines from your htaccess pic and made my own "yeah" it sort of works :)

I have a question though...
Do you know how to get the admin dash working?
I tried to add a few extra rewrites to see if that would help but the same problem persists... once I hit submit to login it just redirects to 404, any help would be great, thank you :)

this file htacess I did from scratch, so I created it, I also could not make the admin panel work, so I jumped to opentrade, another open source exchange that is more secure and with the admin panel running.
Oh great job, you nearly got it fully working :)

Unfortunately I don't own VPS so I can't try opentrade but thank you for the reply :)


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 24, 2018, 02:37:32 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet
Thanks for pointing this script out, for a chuckle I thought I'd see how this script worked... it didn't work very well so I started changing the urls in the script to at least get a little bit of functionality then I read this post some more as I only read the first post at first, so I seen you got the script semi working using the .htaccess file (not sure where you found that as I searched but couldn't find it lol) so I copied the lines from your htaccess pic and made my own "yeah" it sort of works :)

I have a question though...
Do you know how to get the admin dash working?
I tried to add a few extra rewrites to see if that would help but the same problem persists... once I hit submit to login it just redirects to 404, any help would be great, thank you :)

this file htacess I did from scratch, so I created it, I also could not make the admin panel work, so I jumped to opentrade, another open source exchange that is more secure and with the admin panel running.
Oh great job, you nearly got it fully working :)

Unfortunately I don't own VPS so I can't try opentrade but thank you for the reply :)
good, you can use a linux home server, now back to Subtoshi and Admin, you'll probably have to add a line in the .htacess file because probably when you click Login and give 404 error it's because you're being directed to http://127.0.0.1/file when the right one would be http://127.0.0.1/file.php so I guess when you do that regarding the admin file it will work out.

I even got to this part but I could not log in as admin, BUT in opentrade the admin is the first registered user, if you installed everything right with mysql configured the sending of email, try to make a registration and then try to log in the admin with that name user name and password.


Title: Re: Create a Exchange
Post by: romon132 on March 24, 2018, 04:13:04 PM
In the EAC, go to Recipients > Mailboxes.
Click New ( ) and then select User mailbox.
On the New user mailbox page, configure the following settings.


Title: Re: Create a Exchange
Post by: DigDeepMining on March 27, 2018, 09:55:31 PM
http://ap.imagensbrasil.org/images/2018/03/01/Screenshot_460.png
I got a file up to a large one, now it works, I got the website to send email and the registration / login works, but now I do not know how to make the exchange to connect to the currency wallet, I did not find any line of code where the exchange connects to the coin wallet
Thanks for pointing this script out, for a chuckle I thought I'd see how this script worked... it didn't work very well so I started changing the urls in the script to at least get a little bit of functionality then I read this post some more as I only read the first post at first, so I seen you got the script semi working using the .htaccess file (not sure where you found that as I searched but couldn't find it lol) so I copied the lines from your htaccess pic and made my own "yeah" it sort of works :)

I have a question though...
Do you know how to get the admin dash working?
I tried to add a few extra rewrites to see if that would help but the same problem persists... once I hit submit to login it just redirects to 404, any help would be great, thank you :)

this file htacess I did from scratch, so I created it, I also could not make the admin panel work, so I jumped to opentrade, another open source exchange that is more secure and with the admin panel running.
Oh great job, you nearly got it fully working :)

Unfortunately I don't own VPS so I can't try opentrade but thank you for the reply :)
good, you can use a linux home server, now back to Subtoshi and Admin, you'll probably have to add a line in the .htacess file because probably when you click Login and give 404 error it's because you're being directed to http://127.0.0.1/file when the right one would be http://127.0.0.1/file.php so I guess when you do that regarding the admin file it will work out.

I even got to this part but I could not log in as admin, BUT in opentrade the admin is the first registered user, if you installed everything right with mysql configured the sending of email, try to make a registration and then try to log in the admin with that name user name and password.

Yeah I tried to add a few more rewrite rules but it just wouldn't work for me either, shame.

Great, I just found my old linux sd card so I'm going to have a play with this opentrade and see how that goes, if I get need any help is it OK to reach out to you?

Thanks :)


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 28, 2018, 03:32:25 PM
if you need to just call, I'm also seeing the exchange opensource peatio (https://github.com/peatio/peatio), it's a project that is being used right now in several exchanges, like Graviex, but it's a little more complicated to run.


Title: Re: Create a Exchange
Post by: B!ttron!k$ on March 29, 2018, 12:33:11 AM
im working for a while now at https://bittronik.com/public/ is this what you are looking for ?


Title: Re: Create a Exchange
Post by: vitorgamer58 on March 29, 2018, 11:59:14 AM
im working for a while now at https://bittronik.com/public/ is this what you are looking for ?
Is not this a medical company?


Title: Re: Create a Exchange
Post by: B!ttron!k$ on March 29, 2018, 12:37:43 PM
im working for a while now at https://bittronik.com/public/ is this what you are looking for ?
Is not this a medical company?
? what do you mean..? the name bittronik or how ?


Title: Re: Create a Exchange
Post by: DigDeepMining on March 29, 2018, 05:08:45 PM
if you need to just call, I'm also seeing the exchange opensource peatio (https://github.com/peatio/peatio), it's a project that is being used right now in several exchanges, like Graviex, but it's a little more complicated to run.
Thank you so much :)

Umm yep that looks a little more complicated, let me know how you get on with that if you try it out.


Title: Re: Create a Exchange
Post by: DigDeepMining on April 08, 2018, 03:57:02 PM
I followed the install procedure of opentrade but hit a few errors..
Quote
pi@raspberrypi:~/opentrade $ sudo npm install sqlite3
npm WARN package.json string_decoder@1.0.3 string_decoder is also the name of a node core module.
/
> sqlite3@4.0.0 install /home/pi/opentrade/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! sqlite3@4.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3@4.0.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.9.41-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "sqlite3"
npm ERR! cwd /home/pi/opentrade
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/opentrade/npm-debug.log
npm ERR! not ok code 0

and then struggled to make DIR...

Quote
mkdir: cannot create directory ‘/root/privkey.pem’: Permission denied

Do you have any ideas??

Thanks :)


Title: Re: Create a Exchange
Post by: vitorgamer58 on April 09, 2018, 02:57:58 PM
I followed the install procedure of opentrade but hit a few errors..
Quote
pi@raspberrypi:~/opentrade $ sudo npm install sqlite3
npm WARN package.json string_decoder@1.0.3 string_decoder is also the name of a node core module.
/
> sqlite3@4.0.0 install /home/pi/opentrade/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! sqlite3@4.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3@4.0.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.9.41-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "sqlite3"
npm ERR! cwd /home/pi/opentrade
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/opentrade/npm-debug.log
npm ERR! not ok code 0

and then struggled to make DIR...

Quote
mkdir: cannot create directory ‘/root/privkey.pem’: Permission denied

Do you have any ideas??

Thanks :)

about sqlite error, I was able to install searching on google, I can not remember how ...

about mkdir, try using sudo


Title: Re: Create a Exchange
Post by: DigDeepMining on April 11, 2018, 10:41:36 PM
I followed the install procedure of opentrade but hit a few errors..
Quote
pi@raspberrypi:~/opentrade $ sudo npm install sqlite3
npm WARN package.json string_decoder@1.0.3 string_decoder is also the name of a node core module.
/
> sqlite3@4.0.0 install /home/pi/opentrade/node_modules/sqlite3
> node-pre-gyp install --fallback-to-build

/usr/bin/env: ‘node’: No such file or directory
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! sqlite3@4.0.0 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the sqlite3@4.0.0 install script.
npm ERR! This is most likely a problem with the sqlite3 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls sqlite3
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 4.9.41-v7+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "sqlite3"
npm ERR! cwd /home/pi/opentrade
npm ERR! node -v v4.8.2
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/opentrade/npm-debug.log
npm ERR! not ok code 0

and then struggled to make DIR...

Quote
mkdir: cannot create directory ‘/root/privkey.pem’: Permission denied

Do you have any ideas??

Thanks :)

about sqlite error, I was able to install searching on google, I can not remember how ...

about mkdir, try using sudo
I got passed these errors but then hit another problem, node main.js, sudo node main.js or what ever other command I use just hang nothing happens for hours, I googled this and see other people hitting the same problem and tried many fixes but still I have the same problem maybe it just don't run on the pi or maybe my setup is broke :(


Title: Re: Create a Exchange
Post by: vitorgamer58 on April 12, 2018, 01:04:46 PM
what crazy, here I was talking "listening on port 40443" or something, then it was just me getting into http://localhost:40443 e VOALÁ, Working fine


Title: Re: Create a Exchange
Post by: DigDeepMining on April 14, 2018, 11:11:02 AM
what crazy, here I was talking "listening on port 40443" or something, then it was just me getting into http://localhost:40443 e VOALÁ, Working fine

Strange I will try it again when I have some free time using http://localhost:40443 Thanks again :)


Title: Re: Create a Exchange
Post by: vitorgamer58 on April 14, 2018, 11:53:48 AM
what crazy, here I was talking "listening on port 40443" or something, then it was just me getting into http://localhost:40443 e VOALÁ, Working fine

Strange I will try it again when I have some free time using http://localhost:40443 Thanks again :)
ok, anything try opening an Issue on Github


Title: Re: Create a Exchange
Post by: SeksiStarlord on May 19, 2018, 01:54:38 AM
Do you guys can provide a link of your exchange or testnet? I am curious how it goes and looks now!


Title: Re: Create a Exchange
Post by: vitorgamer58 on May 30, 2018, 01:28:14 PM
Do you guys can provide a link of your exchange or testnet? I am curious how it goes and looks now!
we don't have exchange for now


Title: Re: Create a Exchange
Post by: vitorgamer58 on June 24, 2018, 11:32:42 PM
Guys, I'd like to list here some Open Source Exchange projects I found on the internet.

PEATIO
https://github.com/InfraexDev/peatio - Recomended Fork
Used in: Graviex (https://graviex.net/), Nlench (https://www.nlexch.com/) and Yunbi (https://yunbi.com/)

Opentrade
https://github.com/3s3s/opentrade
Used in: https://trade.multicoins.org/

Blinktrade
https://github.com/blinktrade
Used in: Foxbit (https://foxbit.com.br/)
Documentation is Null

jaonoctus exchange
https://github.com/jaonoctus/exchange
Under Development

WLOX
https://github.com/wlox/wlox/
Used in: https://1btcxe.com/

TxBits
https://github.com/txbits/txbits

Partially Source: https://www.reddit.com/r/Bitcoin/comments/37ku14/open_source_exchanges_blinktrade_vs_wlox_vs/


Title: Re: Create a Exchange
Post by: TheWolf666 on July 26, 2019, 06:03:40 PM
More: Cryptomania https://codecanyon.net/item/cryptomania-exchange-pro/23036775
and Tradebox: https://codecanyon.net/item/tradebox-cryptocurrency-buy-sell-and-trading-software/22673650

Any feedback on these?