MCPcopy Create free account
hub / github.com/ccxt/ccxt / capitalize

Method capitalize

python/ccxt/base/exchange.py:1040–1046  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

1038
1039 @staticmethod
1040 def capitalize(string): # first character only, rest characters unchanged
1041 # the native pythonic .capitalize() method lowercases all other characters
1042 # which is an unwanted behaviour, therefore we use this custom implementation
1043 # check it yourself: print('foobar'.capitalize(), 'fooBar'.capitalize())
1044 if string:
1045 return string[0].upper() + string[1:]
1046 return string
1047
1048 @staticmethod
1049 def strip(string):

Callers 15

test_capitalizeFunction · 0.95
__init__Method · 0.95
testCapitalizeFunction · 0.95
constructorMethod · 0.95
defineRestApiEndpointMethod · 0.95
defineRestApiMethod · 0.95
getResponseHeadersMethod · 0.95
handleOptionAndParamsMethod · 0.95
get_accountMethod · 0.45
create_order_requestMethod · 0.45
create_order_requestMethod · 0.45

Calls

no outgoing calls

Tested by 2

test_capitalizeFunction · 0.76
exchange_propFunction · 0.36