MCPcopy Create free account

hub / github.com/cbyn/bitfx / functions

Functions180 in github.com/cbyn/bitfx

↓ 22 callersMethodPosition
Return position set above
exchange/exchange.go:22
↓ 20 callersMethodSetPosition
Position setter method
exchange/exchange.go:20
↓ 19 callersMethodSetMaxPos
Max allowed position setter method
exchange/exchange.go:24
↓ 12 callersMethodMaxPos
Return max allowed position set above
exchange/exchange.go:26
↓ 11 callersFunctionnotEqual
Used for float equality
bitfinex/bitfinex_test.go:27
↓ 9 callersMethodGetOrderStatus
Return status of an existing order on the exchange
exchange/exchange.go:46
↓ 9 callersMethodSendOrder
Send an order to the exchange action = "buy" or "sell" otype = "limit" or "market"
exchange/exchange.go:42
↓ 8 callersMethodCommunicateBook
Send the latest available exchange.Book on the supplied channel
exchange/exchange.go:38
↓ 8 callersMethodDone
Close all connections
exchange/exchange.go:50
↓ 8 callersMethodPriority
Return exchange priority for order execution Lower priority number is executed first Equal priority results in concurrent execution
exchange/exchange.go:16
↓ 8 callersFunctionfillOrKill
Handle communication for a FOK order
bitarb/bitarb.go:499
↓ 8 callersFunctionupdatePL
Update P&L
bitarb/bitarb.go:491
↓ 7 callersMethodFee
Return percent fee charged for taking a market
exchange/exchange.go:18
↓ 7 callersFunctionnotEqual
Used for float equality
btcchina/btcchina_test.go:16
↓ 7 callersFunctionnotEqual
Used for float equality
okcoin/okcoin_test.go:16
↓ 6 callersMethodCurrencyCode
Return the fiat currency code USD = 0 CNY = 1
exchange/exchange.go:36
↓ 6 callersFunctionfilterBook
Filter book down to relevant data for trading decisions Adjusts market amounts according to MaxOrder
bitarb/bitarb.go:258
↓ 6 callersFunctionfindBestArb
Find best arbitrage opportunity Adjusts market amounts according to exchange positions
bitarb/bitarb.go:407
↓ 5 callersMethodCancelOrder
Cancel an existing order on the exchange
exchange/exchange.go:44
↓ 5 callersMethodCurrency
Return the fiat currency in use
exchange/exchange.go:32
↓ 5 callersFunctionisError
Called on any error
bitarb/bitarb.go:564
↓ 4 callersMethodAvailFunds
Return fiat currency funds available for purchases
exchange/exchange.go:28
↓ 4 callersMethodAvailShort
Return amount of cryptocurrency available for short selling
exchange/exchange.go:30
↓ 4 callersMethodHasCryptoFee
Return true if fees are charged in cryptocurrency on purchases
exchange/exchange.go:48
↓ 4 callersFunctioncalcNetPosition
Calculate total position across exchanges
bitarb/bitarb.go:126
↓ 4 callersFunctionfindBestAsk
Find best ask able to buy Adjusts market amount according to exchange position
bitarb/bitarb.go:384
↓ 4 callersFunctionfindBestBid
Find best bid able to sell Adjusts market amount according to exchange position
bitarb/bitarb.go:364
↓ 3 callersFunctioncalcNeededArb
Calculate arb needed for a trade based on existing positions
bitarb/bitarb.go:442
↓ 3 callersMethodconnectSocketIO
Connect to Socket.IO
btcchina/btcchina.go:146
↓ 3 callersMethodconstructSign
Construct sign for authentication
okcoin/okcoin.go:383
↓ 3 callersMethodgetBook
Get book data with an HTTP request
bitfinex/bitfinex.go:145
↓ 3 callersFunctiongetQuote
Returns quote for requested currency
forex/forex.go:52
↓ 3 callersMethodpost
Authenticated POST
btcchina/btcchina.go:450
↓ 3 callersMethodpost
Authenticated POST
bitfinex/bitfinex.go:332
↓ 3 callersFunctionprintResults
Print relevant data to terminal
bitarb/bitarb.go:544
↓ 2 callersFunctionNew
New returns a pointer to a Client instance
okcoin/okcoin.go:49
↓ 2 callersMethodconvertToBook
Convert websocket data to an exchange.Book
btcchina/btcchina.go:276
↓ 2 callersMethodconvertToBook
Convert websocket data to an exchange.Book
okcoin/okcoin.go:186
↓ 2 callersMethodmaintainWS
Maintain a WebSocket connection
okcoin/okcoin.go:402
↓ 2 callersMethodnewWS
Get a new WebSocket connection subscribed to specified channel
okcoin/okcoin.go:487
↓ 2 callersMethodpersistentNewWS
Connect WebSocket with repeated tries on failure
okcoin/okcoin.go:514
↓ 1 callersFunctionCommunicateFX
CommunicateFX sends the latest FX quote to the supplied channel
forex/forex.go:26
↓ 1 callersFunctionNew
New returns a pointer to a Client instance
btcchina/btcchina.go:40
↓ 1 callersFunctionNew
New returns a pointer to a Client instance
bitfinex/bitfinex.go:31
↓ 1 callersMethodString
Implement Stringer interface
exchange/exchange.go:12
↓ 1 callersFunctionbookChanged
Returns true if the book has changed
bitfinex/bitfinex.go:198
↓ 1 callersFunctioncheckStdin
Check for any user input
okbook/okbook.go:58
↓ 1 callersFunctioncheckStdin
Check for any user input
btcbook/btcbook.go:58
↓ 1 callersFunctioncheckStdin
Check for user input
bitarb/bitarb.go:164
↓ 1 callersFunctioncheckStdin
Check for any user input
bfbook/bfbook.go:46
↓ 1 callersFunctionclearScreen
Clear the terminal between prints
okbook/okbook.go:85
↓ 1 callersFunctionclearScreen
Clear the terminal between prints
btcbook/btcbook.go:85
↓ 1 callersFunctionclearScreen
Clear the terminal between prints
bitarb/bitarb.go:557
↓ 1 callersFunctionclearScreen
Clear the terminal between prints
bfbook/bfbook.go:73
↓ 1 callersFunctioncloseLogFile
Close log file on exit
bitarb/bitarb.go:593
↓ 1 callersFunctionconsiderTrade
Trade on net position exits and arb opportunities
bitarb/bitarb.go:296
↓ 1 callersFunctionget
Unauthenticated GET
forex/forex.go:90
↓ 1 callersMethodget
Unauthenticated GET
bitfinex/bitfinex.go:373
↓ 1 callersFunctionhandleData
Handle all data communication
bitarb/bitarb.go:171
↓ 1 callersFunctionhandleFX
Handle FX quotes
bitarb/bitarb.go:223
↓ 1 callersFunctionprintBook
Print book data from each exchange
okbook/okbook.go:65
↓ 1 callersFunctionprintBook
Print book data from each exchange
btcbook/btcbook.go:65
↓ 1 callersFunctionprintBook
Print book data from each exchange
bfbook/bfbook.go:53
↓ 1 callersMethodrunBookLoop
Book WebSocket read loop
okcoin/okcoin.go:178
↓ 1 callersFunctionrunLoop
HTTP read loop
forex/forex.go:37
↓ 1 callersMethodrunLoop
Websocket read loop
btcchina/btcchina.go:203
↓ 1 callersMethodrunLoop
HTTP read loop
bitfinex/bitfinex.go:125
↓ 1 callersFunctionsaveStatus
Save status to file
bitarb/bitarb.go:573
↓ 1 callersFunctionsendPair
Logic for sending a pair of orders
bitarb/bitarb.go:460
↓ 1 callersFunctionsetConfig
Set config info
bitarb/bitarb.go:67
↓ 1 callersFunctionsetExchanges
Initialize exchanges
bitarb/bitarb.go:87
↓ 1 callersFunctionsetLog
Set file for logging
bitarb/bitarb.go:77
↓ 1 callersFunctionsetStatus
Set status from previous run if file exists
bitarb/bitarb.go:101
↓ 1 callersFunctiontestServer
Returns a mock HTTP server
bitfinex/bitfinex_test.go:19
MethodAvailFunds
AvailFunds returns the exchange available funds
btcchina/btcchina.go:110
MethodAvailFunds
AvailFunds returns the exchange available funds
bitfinex/bitfinex.go:99
MethodAvailFunds
AvailFunds returns the exchange available funds
okcoin/okcoin.go:152
MethodAvailShort
AvailShort returns the exchange quantity available for short selling
btcchina/btcchina.go:115
MethodAvailShort
AvailShort returns the exchange quantity available for short selling
bitfinex/bitfinex.go:104
MethodAvailShort
AvailShort returns the exchange quantity available for short selling
okcoin/okcoin.go:157
MethodCancelOrder
CancelOrder cancels an order on the exchange
btcchina/btcchina.go:369
MethodCancelOrder
CancelOrder cancels an order on the exchange
bitfinex/bitfinex.go:253
MethodCancelOrder
CancelOrder cancels an order on the exchange
okcoin/okcoin.go:275
MethodCommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
btcchina/btcchina.go:125
MethodCommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
bitfinex/bitfinex.go:114
MethodCommunicateBook
CommunicateBook sends the latest available book data on the supplied channel
okcoin/okcoin.go:167
MethodCurrency
Currency returns the exchange currency
btcchina/btcchina.go:90
MethodCurrency
Currency returns the exchange currency
bitfinex/bitfinex.go:79
MethodCurrency
Currency returns the exchange currency
okcoin/okcoin.go:132
MethodCurrencyCode
CurrencyCode returns the exchange currency code
btcchina/btcchina.go:95
MethodCurrencyCode
CurrencyCode returns the exchange currency code
bitfinex/bitfinex.go:84
MethodCurrencyCode
CurrencyCode returns the exchange currency code
okcoin/okcoin.go:137
MethodDone
Done closes all connections
btcchina/btcchina.go:60
MethodDone
Done closes all connections
bitfinex/bitfinex.go:49
MethodDone
Done closes all connections
okcoin/okcoin.go:99
MethodFee
Fee returns the exchange order fee
btcchina/btcchina.go:75
MethodFee
Fee returns the exchange order fee
bitfinex/bitfinex.go:64
MethodFee
Fee returns the exchange order fee
okcoin/okcoin.go:117
MethodGetOrderStatus
GetOrderStatus gets the status of an order on the exchange
btcchina/btcchina.go:401
MethodGetOrderStatus
GetOrderStatus gets the status of an order on the exchange
bitfinex/bitfinex.go:287
next →1–100 of 180, ranked by callers