>>> import sys
>>> sys.path.append("/usr/local/oanda_fxtrade.jar") # add the jar to your path
>>>
>>> import com.oanda.fxtrade.api.test.Example1 as main1
>>> import com.oanda.fxtrade.api.test.Example2 as cancel
main1("JPY",9,'-1')
TypeError: main1("JPY",9,'-1'): expected 0 args; got 3
这似乎没有错误 - 但我真的需要一些参数
cancel()
线程[Thread-0,5,main]
内部java类
public final class Example1 extends Thread {
private Example1() {
super();
}
public static void main(String[] args) throws Exception {
FXClient fxclient = API.createFXGame();
String username = "foo";
String password = "foo";
String sel=args[0];
String str1=args[1];
String str2=args[2];
main1.main("JPY 9 -1")
TypeError: main(): 1st arg 不能被强制转换为 String[]
好的,我想我已经进入了一个新的水平