Bitcoin Forum
May 06, 2024, 06:01:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [ANN] TxBits - an open-source Bitcoin exchange - developers and testers wanted  (Read 3629 times)
txbits (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 19, 2014, 04:12:36 AM
 #1

I am announcing the release of the source code to our new open-source Bitcoin exchange. We invite developers and testers to get involved with the project.

Project site: https://txbits.org
Source code: https://github.com/txbits/txbits
Try our beta on the testnet: https://testnet.txbits.com
1714975291
Hero Member
*
Offline Offline

Posts: 1714975291

View Profile Personal Message (Offline)

Ignore
1714975291
Reply with quote  #2

1714975291
Report to moderator
1714975291
Hero Member
*
Offline Offline

Posts: 1714975291

View Profile Personal Message (Offline)

Ignore
1714975291
Reply with quote  #2

1714975291
Report to moderator
1714975291
Hero Member
*
Offline Offline

Posts: 1714975291

View Profile Personal Message (Offline)

Ignore
1714975291
Reply with quote  #2

1714975291
Report to moderator
No Gods or Kings. Only Bitcoin
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
SirLolicon
Sr. Member
****
Offline Offline

Activity: 322
Merit: 250

Sound Engineer for Hire


View Profile
September 19, 2014, 04:17:57 AM
 #2

Sure I wanna help test Smiley

EDIT: Seems to be working just fine.
looking great for an open source coin exchange Smiley good job!

EDIT #2: I think you should make the homepage of TXBits show a different display once you're already logged in since it asks for a user and pass in the front page, though you can always go back to the dashboard in the header, it's much better for the sake of professionalism

txbits (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 19, 2014, 04:30:12 AM
 #3

Good point. I put in an issue: https://github.com/txbits/txbits/issues/1
h0lybyte
Hero Member
*****
Offline Offline

Activity: 924
Merit: 511


View Profile
September 19, 2014, 04:57:46 AM
 #4

You can pre-compress all the static files (HTML, PNG, CSS ect...) into {filename}.{filetype}.gz and then have Nginx automatically fetch and return the .gz files for the static content. This can save you CPU and bandwidth (also make your site super SUPER fast)

http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:nginx:nginx_performance_tuning <-- I think you should include that on your github for Nginx Smiley

txbits (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
September 19, 2014, 05:02:05 AM
 #5

I didn't know you can do that. That's a good idea. For now our CPU is at 3-5% with everything running on the same server, but once we have to handle more traffic, I'll try that.
dplusf
Sr. Member
****
Offline Offline

Activity: 258
Merit: 250


View Profile
September 19, 2014, 08:20:51 AM
 #6

i just want to say that you guys are great! amazing great.
open source is changing the world. code is changing the world.

just openend a test account.
ohyeahok
Sr. Member
****
Offline Offline

Activity: 338
Merit: 250


View Profile
October 05, 2014, 08:34:30 PM
 #7

interesting. I will be watching this thread.
Snail2
Legendary
*
Offline Offline

Activity: 1512
Merit: 1000



View Profile
October 05, 2014, 09:31:11 PM
 #8

Working nicely for me. I like it Smiley.
nwfella
Legendary
*
Offline Offline

Activity: 1582
Merit: 1000

Well hello there!


View Profile
November 05, 2014, 08:52:12 AM
 #9

Just forked a copy of source off GitHub.  Gotta love the pioneering spirit of the open-source community.

¯¯̿̿¯̿̿'̿̿̿̿̿̿̿'̿̿'̿̿̿̿̿'̿̿̿)͇̿̿)̿̿̿̿ '̿̿̿̿̿̿\̵͇̿̿\=(•̪̀●́)=o/̵͇̿̿/'̿̿ ̿ ̿̿

Gimme the crypto!!
gweedo
Legendary
*
Offline Offline

Activity: 1498
Merit: 1000


View Profile
November 05, 2014, 11:08:48 PM
 #10

How do you know what commercial grade exchanges are? What work experience have you working with commercial grade exchanges?

I see you are using bigdecimal, why are you not using integer math? I would use primitive objects like longs to do all math operations.

I don't see any trading engine or even an outline, I hope you are not using scala for the trading engine, that should be written in C or C++ to be anything considered commercial grade.

I haven't really looked into security, but I would treat this as a hobby project not a commercial grade anything.
bluepoodle
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
November 12, 2014, 07:40:34 PM
 #11

Working nicely for me. I like it Smiley.
Were you able to donwload the script and install it to your server? If so, can you help me install it to mine?
bluepoodle
Newbie
*
Offline Offline

Activity: 44
Merit: 0



View Profile
November 12, 2014, 07:43:40 PM
 #12

Can anyone help me install this to my server?
zathey
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 17, 2015, 08:50:18 PM
 #13

I see you are using bigdecimal, why are you not using integer math? I would use primitive objects like longs to do all math operations.

There are advantages and disadvantages in using integer math. We decided that the performance and size benefits did not outweigh the extra complexities and potential bugs with using integer values. O(n) operations will still be O(n), regardless of the object types.

I don't see any trading engine or even an outline, I hope you are not using scala for the trading engine, that should be written in C or C++ to be anything considered commercial grade.

Trading engine is in the SQL files. The trading engine is written in PL/pgSQL. The lookups are done using a cursor on the orders table. The orders table is indexed using sorted multi-column partial indexes so the engine may read the orders from the index without doing any sorting. This was verified with EXPLAIN ANALYZE in Postgres.

I haven't really looked into security, but I would treat this as a hobby project not a commercial grade anything.

Some details on security: https://github.com/txbits/txbits/wiki/Security

Can anyone help me install this to my server?

Use the wiki for instructions on setting up a development environment. Wait for a stable release before deploying it to a server.
zathey
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
January 18, 2015, 04:06:07 PM
 #14

I don't know scala too well, but being from java, I would say integer math on operations would be the best. Also how are you storing balances? Again I would say that should be in integer math. Their are any performance hits you take when doing integer math. It just means you should have a class for displaying it in a pretty string format (eg: 7.0533 BTC).

Balances are stored as numerics in PostgreSQL. They are read by the frontend with JDBC into Java BigDecimal objects, which we wrap into Scala BigDecimals. There is not much math done on BigDecimal objects as the majority of calculations happen in the database.

This will fail under heavy loads or volume. I would suggest having a trade matching aglo, hold every trade in redis, then dump that redis database into pgSQL once you have completed a trade. This would be the best way to handle that. Remember Mt. Gox was using php and mysql, which no better than yours, and that failed under heavy volumes.

There is a trade matching algorithm, I wrote it in PL/pgSQL. How would using Redis make this faster? Writing the data into Postgres after completing a trade would result in a disk access the same as using Postgres by itself. Postgres can cache indexes of tables in memory so lookups should be fast, especially with the use of sorted partial indexes. Additionally I have concerns with using something like Redis as it is not a transactional database and is not ACID compliant. With Postgres, I can be certain that orders will be matched based on the time inserted at a particular price and that a user can only place an order if there is sufficient funds on the account. The language you use does not mean as much as the algorithms you implement. I could write an exchange entirely in C++ but that does not mean my code will be efficient.

Very nice, I would say give details  (like how do you hash the password (Bcrypt, SHA 512)?)

Passwords are salted 8 iteration blowfish-based hashes and even the salted hashes are never visible to any of our servers except for the database where they are stored. It's easy to change the hashing algorithm if you would like. We wrote our own database functions to do 2FA as well. Unlike most exchanges that implement 2FA on their frontend, for example in PHP or Java, we implement it in SQL. This means that in order to place a withdrawal, your 2FA token must be passed to the withdraw function on the database. Withdrawals are processed by a separate server so in the unlikely event that the frontend web server is compromised, an attacker cannot issue withdrawals without your PIN. The frontend can only execute the stored procedures needed to do its job so it cannot execute arbitrary SQL queries or dump the database.
JollyTrades
Hero Member
*****
Offline Offline

Activity: 602
Merit: 500



View Profile
March 06, 2017, 11:13:07 PM
 #15

I saw there is an exchange called Crypto Trade which is powered by TxBits. Wondering if there's anyone maintaining the project.
ianj
Member
**
Offline Offline

Activity: 109
Merit: 10


View Profile
October 10, 2017, 01:03:34 PM
 #16

Why did development stall on this - its looks good so far, even if it is not mature

Are there obvious good contenders that are also open source ?
ianj
Member
**
Offline Offline

Activity: 109
Merit: 10


View Profile
October 15, 2017, 01:29:03 PM
 #17

I don't see any trading engine or even an outline, I hope you are not using scala for the trading engine, that should be written in C or C++ to be anything considered commercial grade.

You have no idea what you are on about if you think you NEED C++ for an exchange trading engine

A good Java/Scala programmer can produce something 10 faster than a poor C++ solution

At BEST you can expect a C++ solution to be 30% faster than a Java design from the same person (that is only because you have more influence on pipelining in C++), only the Java version can be developed 2-5x faster

Any highly optimal design will be SEVERAL ORDERS OF MAGNITUDE faster than SQL using modern techniques

But you are right in that using integer values can be significantly faster than float/double (which also have serious precision problems) and far far more efficient than BigDecimal

But its easy for us to heckle from the sidelines - well done on producing something Smiley
Florcrypto
Newbie
*
Offline Offline

Activity: 16
Merit: 0


View Profile
November 11, 2017, 08:43:18 PM
 #18

it's look like so cool!i wish your project can good develop!
PokerDiceMan
Hero Member
*****
Offline Offline

Activity: 602
Merit: 501


Undeads.com - P2E Runner Game


View Profile
November 11, 2017, 09:36:57 PM
 #19

why script if youre product if open source
and how i can create bitcoin exchange use youre service , can explain step by step

💀|.
   ▄▄▄▄█▄▄              ▄▄█▀▀  ▄▄▄▄▄█      ▄▄    ▄█▄
  ▀▀▀████████▄  ▄██    ███▀ ▄████▀▀▀     ▄███   ▄███
    ███▀▄▄███▀ ███▀   ███▀  ▀█████▄     ▄███   ████▄
  ▄███████▀   ███   ▄███       ▀▀████▄▄███████████▀
▀▀███▀▀███    ███ ▄████       ▄▄████▀▀████   ▄███
 ██▀    ▀██▄  ██████▀▀   ▄▄█████▀▀   ███▀   ▄██▀
          ▀▀█  ▀▀▀▀ ▄██████▀▀       ███▀    █▀
                                      ▀
.
.PLAY2EARN.RUNNER.GAME.
||VIRAL
REF.SYSTEM
GAME
|
████████████████████████████
████████████████████████████
████████████████████████████
██████ ▄▀██████████  ███████
███████▄▀▄▀██████  █████████
█████████▄▀▄▀██  ███████████
███████████▄▀▄ █████████████
███████████  ▄▀▄▀███████████
█████████  ████▄▀▄▀█████████
███████  ████████▄▀ ████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████████████████████████
████████▀▀▄██████▄▀▀████████
███████  ▀        ▀  ███████
██████                ██████
█████▌   ███    ███   ▐█████
█████▌   ▀▀▀    ▀▀▀   ▐█████
██████                ██████
███████▄  ▀██████▀  ▄███████
████████████████████████████
████████████████████████████
████████████████████████████
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!