Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/fsxfreak/Bitorex
Browse files Browse the repository at this point in the history
  • Loading branch information
Leon Cheung committed Dec 29, 2013
2 parents 7705342 + 6c33b31 commit 4f241b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 59 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ Bitorex

Bitorex is a small weekend pet project to satisfy my renewed interest in Bitcoin and a newfound curiosity for trading currency and stocks in general. It simulates a Bitcoin exchange, where you can make buy (long) or sell (short) trades.

Bitorex runs in the Windows command line. Trade requests are done by pressing a button (W, E, R, T) and typing a number. No fancy command prompt graphics library was used, so everything is displayed and inputted using stdout and stdin.
Bitorex runs in the Windows command line. Trade requests are done by pressing a button (W, S, E, F) and typing a number. No fancy command prompt graphics library was used, so everything is displayed and inputted using stdout and stdin.

## Exploring

The source for Bitorex is found under src/.
* ```account.hpp``` - Declares the Account struct, where the trader's money and trade history is stored.
* ```account.cpp``` - Defines all the boilerplate for Account and some printing functions.
* ```exchange.hpp``` - Declares the Exchange struct, where the ticker is updated and orders are placed. Here the FEE constant is defined.
* ```exchange.hpp``` - Declares the Exchange struct, where the ticker is updated and orders are placed. Here the `FEE` constant is defined.
* ```exchange.cpp``` - Here's where the main bulk of the code is. Defines self-contained functions for pulling from HTTPS webpages and parsing JSON. Also defines functions that update the ticker, place orders, prints information, and gets user input.
* ```main.cpp``` - Contains ```main()```. Handles read/write of the trader's account, as well as starting the exchange.

Expand Down Expand Up @@ -57,8 +57,8 @@ Sorry, I don't have any specific step-by-step instructions. Download a precompil
```
Quit - Q
Buy - W
Sell - E
Close buy - S
Sell - E
Close sell - D
Save - A
```
Expand Down Expand Up @@ -93,7 +93,7 @@ In the future, I want to make an actual GUI with graph displays, ask/bid tickers

The MIT License (MIT)

Copyright (c) <2013> <Leon Cheung>
Copyright (c) 2013 Leon Cheung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
55 changes: 0 additions & 55 deletions include/README_2

This file was deleted.

0 comments on commit 4f241b8

Please sign in to comment.