package
1.9.2
Repository: https://github.com/aleibovici/cryptopump.git
Documentation: pkg.go.dev

# Functions

DBInit export This function initializes GCP mysql database connectivity */.
DeleteSession Delete session from Session table.
DeleteThreadTransactionByOrderID function.
GetGlobal get global data.
GetLastOrderTransactionPrice Get time for last transaction the ThreadID.
GetLastOrderTransactionSide Get Side for last transaction the ThreadID.
GetOrderByOrderID Return order by OrderID (uses ThreadID as filter).
GetOrderSymbol Get symbol for ThreadID.
GetOrderTransactionCount Retrieve transaction count by Side and minutes.
GetOrderTransactionPending Get 1 order with pending FILLED status.
GetOrderTransactionSideLastTwo function.
GetProfit retrieve total and average percentage profit.
GetProfitByThreadID retrieve total and average percentage profit by ThreadID.
GetSessionStatus check for system error status.
GetThreadAmount Retrieve Thread Dollar Amount.
GetThreadCount Retrieve Running Thread Count.
GetThreadLastTransaction function returns the last BUY transaction for a Thread.
GetThreadTransactionByPrice retrieve lowest price order from Thread database.
GetThreadTransactionByPriceHigher function returns the highert Thread order above a certain treshold.
GetThreadTransactionByThreadID Retrieve transaction count by Side and minutes.
GetThreadTransactionCount Get Thread count.
GetThreadTransactionDistinct Get Thread Distinct.
GetThreadTransactiontUpmarketPriceCount function.
InitSocketConnectionPool initializes a Unix socket connection pool for a Cloud SQL instance of SQL Server.
InitTCPConnectionPool initializes a TCP connection pool for a Cloud SQL instance of SQL Server.
SaveGlobal Save initial global settings.
SaveOrder Save order to database.
SaveSession Save new session to Session table.
SaveThreadTransaction Save Thread cycle to database.
UpdateGlobal Update global settings.
UpdateOrder Update order.
UpdateSession Update existing session on Session table.