-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAPIConnector.java
More file actions
33 lines (30 loc) · 820 Bytes
/
APIConnector.java
File metadata and controls
33 lines (30 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package StockTradingA;
import ib.controller.APIController;
import java.util.ArrayList;
public class APIConnector implements APIController.IConnectionHandler {
@Override
public void connected() {
//Do something when connected
System.out.println("Connected");
}
@Override
public void disconnected() {
//Do something when disconnected
}
@Override
public void accountList(ArrayList<String> list) {
//Do something with the account list
}
@Override
public void error(Exception e) {
//Do something on error
}
@Override
public void message(int id, int errorCode, String errorMsg) {
//Do something with server messages
}
@Override
public void show(String string) {
//Do something with parameter
}
}