MCPcopy Index your code
hub / github.com/ccxt/ccxt / handleTimeInForce

Method handleTimeInForce

java/lib/src/main/java/io/github/ccxt/Exchange.java:12803–12823  ·  view source on GitHub ↗
(Object... optionalArgs)

Source from the content-addressed store, hash-verified

12801 }
12802
12803 public Object handleTimeInForce(Object... optionalArgs)
12804 {
12805 /**
12806 * @ignore
12807 * @method
12808 * Must add timeInForce to this.options to use this method
12809 * @returns {string} returns the exchange specific value for timeInForce
12810 */
12811 Object parameters = Helpers.getArg(optionalArgs, 0, new java.util.HashMap<String, Object>() {{}});
12812 Object timeInForce = this.safeStringUpper(parameters, "timeInForce"); // supported values GTC, IOC, PO
12813 if (Helpers.isTrue(!Helpers.isEqual(timeInForce, null)))
12814 {
12815 Object exchangeValue = this.safeString(Helpers.GetValue(this.options, "timeInForce"), timeInForce);
12816 if (Helpers.isTrue(Helpers.isEqual(exchangeValue, null)))
12817 {
12818 throw new ExchangeError((String)Helpers.add(Helpers.add(Helpers.add(this.id, " does not support timeInForce \""), timeInForce), "\"")) ;
12819 }
12820 return exchangeValue;
12821 }
12822 return null;
12823 }
12824
12825 public Object convertTypeToAccount(Object account)
12826 {

Callers 4

createOrderRequestMethod · 0.45
createUtaOrderRequestMethod · 0.45
createOrderRequestMethod · 0.45

Calls 7

getArgMethod · 0.95
safeStringUpperMethod · 0.95
isTrueMethod · 0.95
isEqualMethod · 0.95
safeStringMethod · 0.95
GetValueMethod · 0.95
addMethod · 0.95

Tested by

no test coverage detected