(Object... optionalArgs)
| 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 | { |
no test coverage detected