MCPcopy
hub / github.com/thrasher-corp/gocryptotrader / NewCode

Function NewCode

currency/code.go:260–262  ·  view source on GitHub ↗

NewCode returns a new currency registered code

(c string)

Source from the content-addressed store, hash-verified

258
259// NewCode returns a new currency registered code
260func NewCode(c string) Code {
261 return storage.ValidateCode(c)
262}
263
264// String conforms to the stringer interface
265func (i *Item) String() string {

Callers 15

TestGetFeeFunction · 0.92
TestGetRecentTradesFunction · 0.92
TestGetOpenInterestFunction · 0.92
wsHandleDataMethod · 0.92
bitmex.goFile · 0.92
TestGetDepositAddressFunction · 0.92
UpdateAccountBalancesMethod · 0.92

Calls 1

ValidateCodeMethod · 0.80

Tested by 15

TestGetFeeFunction · 0.74
TestGetRecentTradesFunction · 0.74
TestGetOpenInterestFunction · 0.74
TestGetDepositAddressFunction · 0.74
TestGetFeeFunction · 0.74
TestGetFeeFunction · 0.74
TestMarketPairFunction · 0.74
TestGetFeeFunction · 0.74
TestFetchDepositAddressFunction · 0.74
TestMainFunction · 0.74