Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cbyn/bitfx
/ functions
Functions
180 in github.com/cbyn/bitfx
⨍
Functions
180
◇
Types & classes
16
↓ 22 callers
Method
Position
Return position set above
exchange/exchange.go:22
↓ 20 callers
Method
SetPosition
Position setter method
exchange/exchange.go:20
↓ 19 callers
Method
SetMaxPos
Max allowed position setter method
exchange/exchange.go:24
↓ 12 callers
Method
MaxPos
Return max allowed position set above
exchange/exchange.go:26
↓ 11 callers
Function
notEqual
Used for float equality
bitfinex/bitfinex_test.go:27
↓ 9 callers
Method
GetOrderStatus
Return status of an existing order on the exchange
exchange/exchange.go:46
↓ 9 callers
Method
SendOrder
Send an order to the exchange action = "buy" or "sell" otype = "limit" or "market"
exchange/exchange.go:42
↓ 8 callers
Method
CommunicateBook
Send the latest available exchange.Book on the supplied channel
exchange/exchange.go:38
↓ 8 callers
Method
Done
Close all connections
exchange/exchange.go:50
↓ 8 callers
Method
Priority
Return exchange priority for order execution Lower priority number is executed first Equal priority results in concurrent execution
exchange/exchange.go:16
↓ 8 callers
Function
fillOrKill
Handle communication for a FOK order
bitarb/bitarb.go:499
↓ 8 callers
Function
updatePL
Update P&L
bitarb/bitarb.go:491
↓ 7 callers
Method
Fee
Return percent fee charged for taking a market
exchange/exchange.go:18
↓ 7 callers
Function
notEqual
Used for float equality
btcchina/btcchina_test.go:16
↓ 7 callers
Function
notEqual
Used for float equality
okcoin/okcoin_test.go:16
↓ 6 callers
Method
CurrencyCode
Return the fiat currency code USD = 0 CNY = 1
exchange/exchange.go:36
↓ 6 callers
Function
filterBook
Filter book down to relevant data for trading decisions Adjusts market amounts according to MaxOrder
bitarb/bitarb.go:258
↓ 6 callers
Function
findBestArb
Find best arbitrage opportunity Adjusts market amounts according to exchange positions
bitarb/bitarb.go:407
↓ 5 callers
Method
CancelOrder
Cancel an existing order on the exchange
exchange/exchange.go:44
↓ 5 callers
Method
Currency
Return the fiat currency in use
exchange/exchange.go:32
↓ 5 callers
Function
isError
Called on any error
bitarb/bitarb.go:564
↓ 4 callers
Method
AvailFunds
Return fiat currency funds available for purchases
exchange/exchange.go:28
↓ 4 callers
Method
AvailShort
Return amount of cryptocurrency available for short selling
exchange/exchange.go:30
↓ 4 callers
Method
HasCryptoFee
Return true if fees are charged in cryptocurrency on purchases
exchange/exchange.go:48
↓ 4 callers
Function
calcNetPosition
Calculate total position across exchanges
bitarb/bitarb.go:126
↓ 4 callers
Function
findBestAsk
Find best ask able to buy Adjusts market amount according to exchange position
bitarb/bitarb.go:384
↓ 4 callers
Function
findBestBid
Find best bid able to sell Adjusts market amount according to exchange position
bitarb/bitarb.go:364
↓ 3 callers
Function
calcNeededArb
Calculate arb needed for a trade based on existing positions
bitarb/bitarb.go:442
↓ 3 callers
Method
connectSocketIO
Connect to Socket.IO
btcchina/btcchina.go:146
↓ 3 callers
Method
constructSign
Construct sign for authentication
okcoin/okcoin.go:383
↓ 3 callers
Method
getBook
Get book data with an HTTP request
bitfinex/bitfinex.go:145
↓ 3 callers
Function
getQuote
Returns quote for requested currency
forex/forex.go:52
↓ 3 callers
Method
post
Authenticated POST
btcchina/btcchina.go:450
↓ 3 callers
Method
post
Authenticated POST
bitfinex/bitfinex.go:332
↓ 3 callers
Function
printResults
Print relevant data to terminal
bitarb/bitarb.go:544
↓ 2 callers
Function
New
New returns a pointer to a Client instance
okcoin/okcoin.go:49
↓ 2 callers
Method
convertToBook
Convert websocket data to an exchange.Book
btcchina/btcchina.go:276
↓ 2 callers
Method
convertToBook
Convert websocket data to an exchange.Book
okcoin/okcoin.go:186
↓ 2 callers
Method
maintainWS
Maintain a WebSocket connection
okcoin/okcoin.go:402
↓ 2 callers
Method
newWS
Get a new WebSocket connection subscribed to specified channel
okcoin/okcoin.go:487
↓ 2 callers
Method
persistentNewWS
Connect WebSocket with repeated tries on failure
okcoin/okcoin.go:514
↓ 1 callers
Function
CommunicateFX
CommunicateFX sends the latest FX quote to the supplied channel
forex/forex.go:26
↓ 1 callers
Function
New
New returns a pointer to a Client instance
btcchina/btcchina.go:40
↓ 1 callers
Function
New
New returns a pointer to a Client instance
bitfinex/bitfinex.go:31
↓ 1 callers
Method
String
Implement Stringer interface
exchange/exchange.go:12
↓ 1 callers
Function
bookChanged
Returns true if the book has changed
bitfinex/bitfinex.go:198
↓ 1 callers
Function
checkStdin
Check for any user input
okbook/okbook.go:58
↓ 1 callers
Function
checkStdin
Check for any user input
btcbook/btcbook.go:58
↓ 1 callers
Function
checkStdin
Check for user input
bitarb/bitarb.go:164
↓ 1 callers
Function
checkStdin
Check for any user input
bfbook/bfbook.go:46
↓ 1 callers
Function
clearScreen
Clear the terminal between prints
okbook/okbook.go:85
↓ 1 callers
Function
clearScreen
Clear the terminal between prints
btcbook/btcbook.go:85
↓ 1 callers
Function
clearScreen
Clear the terminal between prints
bitarb/bitarb.go:557
↓ 1 callers
Function
clearScreen
Clear the terminal between prints
bfbook/bfbook.go:73
↓ 1 callers
Function
closeLogFile
Close log file on exit
bitarb/bitarb.go:593
↓ 1 callers
Function
considerTrade
Trade on net position exits and arb opportunities
bitarb/bitarb.go:296
↓ 1 callers
Function
get
Unauthenticated GET
forex/forex.go:90
↓ 1 callers
Method
get
Unauthenticated GET
bitfinex/bitfinex.go:373
↓ 1 callers
Function
handleData
Handle all data communication
bitarb/bitarb.go:171
↓ 1 callers
Function
handleFX
Handle FX quotes
bitarb/bitarb.go:223
↓ 1 callers
Function
printBook
Print book data from each exchange
okbook/okbook.go:65
↓ 1 callers
Function
printBook
Print book data from each exchange
btcbook/btcbook.go:65
↓ 1 callers
Function
printBook
Print book data from each exchange
bfbook/bfbook.go:53
↓ 1 callers
Method
runBookLoop
Book WebSocket read loop
okcoin/okcoin.go:178
↓ 1 callers
Function
runLoop
HTTP read loop
forex/forex.go:37
↓ 1 callers
Method
runLoop
Websocket read loop
btcchina/btcchina.go:203
↓ 1 callers
Method
runLoop
HTTP read loop
bitfinex/bitfinex.go:125
↓ 1 callers
Function
saveStatus
Save status to file
bitarb/bitarb.go:573
↓ 1 callers
Function
sendPair
Logic for sending a pair of orders
bitarb/bitarb.go:460
↓ 1 callers
Function
setConfig
Set config info
bitarb/bitarb.go:67
↓ 1 callers
Function
setExchanges
Initialize exchanges
bitarb/bitarb.go:87
↓ 1 callers
Function
setLog
Set file for logging
bitarb/bitarb.go:77
↓ 1 callers
Function
setStatus
Set status from previous run if file exists
bitarb/bitarb.go:101
↓ 1 callers
Function
testServer
Returns a mock HTTP server
bitfinex/bitfinex_test.go:19
Method
AvailFunds
AvailFunds returns the exchange available funds
btcchina/btcchina.go:110
Method
AvailFunds
AvailFunds returns the exchange available funds
bitfinex/bitfinex.go:99
Method
AvailFunds
AvailFunds returns the exchange available funds
okcoin/okcoin.go:152
Method
AvailShort
AvailShort returns the exchange quantity available for short selling
btcchina/btcchina.go:115
Method
AvailShort
AvailShort returns the exchange quantity available for short selling
bitfinex/bitfinex.go:104
Method
AvailShort
AvailShort returns the exchange quantity available for short selling
okcoin/okcoin.go:157
Method
CancelOrder
CancelOrder cancels an order on the exchange
btcchina/btcchina.go:369
Method
CancelOrder
CancelOrder cancels an order on the exchange
bitfinex/bitfinex.go:253
Method
CancelOrder
CancelOrder cancels an order on the exchange
okcoin/okcoin.go:275
Method
CommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
btcchina/btcchina.go:125
Method
CommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
bitfinex/bitfinex.go:114
Method
CommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
okcoin/okcoin.go:167
Method
Currency
Currency returns the exchange currency
btcchina/btcchina.go:90
Method
Currency
Currency returns the exchange currency
bitfinex/bitfinex.go:79
Method
Currency
Currency returns the exchange currency
okcoin/okcoin.go:132
Method
CurrencyCode
CurrencyCode returns the exchange currency code
btcchina/btcchina.go:95
Method
CurrencyCode
CurrencyCode returns the exchange currency code
bitfinex/bitfinex.go:84
Method
CurrencyCode
CurrencyCode returns the exchange currency code
okcoin/okcoin.go:137
Method
Done
Done closes all connections
btcchina/btcchina.go:60
Method
Done
Done closes all connections
bitfinex/bitfinex.go:49
Method
Done
Done closes all connections
okcoin/okcoin.go:99
Method
Fee
Fee returns the exchange order fee
btcchina/btcchina.go:75
Method
Fee
Fee returns the exchange order fee
bitfinex/bitfinex.go:64
Method
Fee
Fee returns the exchange order fee
okcoin/okcoin.go:117
Method
GetOrderStatus
GetOrderStatus gets the status of an order on the exchange
btcchina/btcchina.go:401
Method
GetOrderStatus
GetOrderStatus gets the status of an order on the exchange
bitfinex/bitfinex.go:287
next →
1–100 of 180, ranked by callers