🔍 /
🧮 Funções · bank · API em Inglês

bank.getCurrency()

Returns the Bank's local currency data (name, symbol, conversion rate). Direct alias of bank.moeda().

bank.getCurrency()
📝This is the same Bank API, just with English names (a 1:1 alias of the methods above, same behaviour and same rules). Use whichever style you prefer — the two can even be mixed in the same script. Here, the target user is always an explicit parameter instead of always defaulting to whoever ran the script.

Parâmetros

AssinaturaTipo(s)
bank.getCurrency()

Valor de retorno

object

Exemplo de uso

let moeda = bank.getCurrency()
print(moeda.nome, moeda.simbolo)

Observações

💡 Confira os tipos esperados na tabela de Parâmetros antes de chamar: passar um tipo diferente do esperado é a causa mais comum de erro em tempo de execução.

← Ver todas as funções de bank · API em Inglês