no-image

How to implement currency code determination

◎ Requirements

Depending on the securities company, the currency code

“●●● USDJPY” or “USDJPY ●●●”

Since it may be provided as a typical string,

I want to deal with such cases.

◎ Detailed specifications

// Currency code string declaration

string symbolCode = Symbol ();

// If there is a character string "USDJPY" in the currency code

if (StringFind (symbolCode, ”USDJPY”, 0)> = 0) {
}

// If there is a character string "EURUSD" in the currency code
else if (StringFind (symbolCode, ”EURUSD”, 0)> = 0) {
}

Translate »