-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathArbitrage.java
More file actions
34 lines (28 loc) · 1.43 KB
/
Arbitrage.java
File metadata and controls
34 lines (28 loc) · 1.43 KB
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
34
package examples.market;
// java examples/market/Arbitrage.java YOUR_TOKEN
//
// Споры и продажи на маркете.
import com.lolzteam.LolzteamClient;
import com.lolzteam.models.*;
public class Arbitrage {
public static void main(String[] args) throws Exception {
String token = args[0];
LolzteamClient client = LolzteamClient.create(token);
System.out.println("--- мои споры (как покупатель) ---");
try {
ItemList resp = client.market().listOrders(null, null, null, "paid", null, null, null, null, null, null, null, null, null, null, null);
System.out.println("orders: " + resp.getItems());
} catch (Exception e) {
System.err.println("err: " + e.getMessage());
}
System.out.println("\n--- мои продажи (как продавец) ---");
try {
ItemList resp = client.market().listUser(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null);
System.out.println("items: " + resp.getItems());
} catch (Exception e) {
System.err.println("skip: " + e.getMessage());
}
System.out.println("\nНОТА: создание спора не выполнено (используй managingCreateClaim для создания)");
System.out.println("done");
}
}