package
1.4.2901-rc1
Repository: https://github.com/diadata-org/diadata.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

AfterDay returns true if date1 is a date after date2, irrespective of the daytime.
Average returns the average of @samples.
No description provided by the author
CheckWeekDay returns true if @date is not weekend and false otherwise.
CloseHTTPResp is a wrapper for closing http response bodies while complying with the linter.
ComputeMedian returns the median of @samples.
Contains takes a slice of strings and a string and checks if it is contained in the slice.
ContainsDay returns true if day @date is contained in slice @s, independent of the daytime.
No description provided by the author
CountDays returns the number of days between @dateInit and @dateFinal, both given as converted from a string in the format yyyy-mm-dd, excluding the last day.
DiscardOutliers discards every data point from @prices and @volumes that deviates from the price median by more than @basispoints basis points.
DownloadResource is a simple utility that downloads a resource from @url and stores it into @filepath.
EthFilterTXs returns transactions filtered by log records.
Generate returns a random name from the list of adjectives, colors and surnames.
GetCoinPrice Gets the price in USD of coin through our API.
No description provided by the author
GetHolidays returns "holidays" as non-weekend complement of given days @workdays.
GetRequest performs a get request on @url and returns the response body as a slice of byte data.
GetRequest performs a get request on @url and returns the response body as a slice of byte data.
No description provided by the author
GetTomorrow returns the day before @date in the world of strings, formatted as @layout.
GetYesterday returns the day before @date in the world of strings, formatted as @layout.
GraphQLGet returns the body of the result of a graphQL GET query.
No description provided by the author
No description provided by the author
HTTPRequest returns the request body and defers the closing compliant to linting.
No description provided by the author
IsInBin returns true in case @timestamp is in half-open interval @bin.
MakeBins returns a slice of @TimeBin according to block sizes and time shifts.
MakeTimerange parses Unix timestamps given as strings.
MakeTimeRanges returns @numRanges start- and endtimes partitioning [@timeInit, @timeFinal] in intervals of identical size.
MaxString return the maximum of a slice of strings along with its index.
MinString return the maximum of a slice of strings along with its index.
No description provided by the author
NewFloat64Slice returns the wrapped float64slice that can be argsorted.
No description provided by the author
OpenseaGetRequest returns the data for a get request on @url with an Opensea API key.
PostRequest performs a POST request on @url and returns the response body as a slice of byte data.
SameDays returns true if @date1 is the same date as @date2, independent of the daytime.
SliceDifference returns the elements in @slice1 that aren't in @slice2.
No description provided by the author
StrToUnixtime converts a string corresponding to an int to Unix time.
TypedDataAndHash is a helper function that calculates a hash for typed data conforming to EIP-712.
UniqueStrings returns a subslice of @s such that each entry only appears once.
No description provided by the author
No description provided by the author
No description provided by the author
ValidTimeRange returns true if the interval [@starttime, @endtime] is at most @maxDuration.
No description provided by the author
No description provided by the author
vwap returns the volume weighted average price for the slices @prices and @volumes.

# Constants

No description provided by the author
No description provided by the author

# Structs

ArgsortableSlice is a wrapper struct around the sort interface.
No description provided by the author
EthFilteredTx holds limited info for found transactions.
EthTxFilterCriteria used for filtering transaction records.
EthTxFilterResult describes filter results and holds found transactions.
NameValueType is a very simple struct with Name, Value and Type.
No description provided by the author
Type is the inner type of an EIP-712 message.
No description provided by the author
TypedDataDomain represents the domain part of an EIP-712 message.
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author