digdigdig3 0.1.18

Unified async Rust API for 44 exchange connectors — crypto, stocks, forex. REST + WebSocket.
Documentation
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
# CEX Connector Audit — Batch 2 (9 Connectors)


**Date**: 2026-03-12
**Files audited**: connector.rs for htx, mexc, bitget, bingx, phemex, crypto_com, upbit, bitstamp, gemini

**Legend**:
- REAL = method makes an actual API call (self.get/post/put/delete)
- STUB = returns UnsupportedOperation / NotSupported without any API call
- PARTIAL = makes an API call for some account_type branches, stubs others
- HARDCODED = returns hardcoded values (no API call, no error — just defaults)

---

## 1. HTX (`src/crypto/cex/htx/connector.rs`)


**place_order** — 6/14 REAL, 8 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST PlaceOrder) |
| Limit | REAL (POST PlaceOrder) |
| StopLimit | REAL (POST PlaceOrder, buy/sell-stop-limit) |
| PostOnly | REAL (POST PlaceOrder, buy/sell-limit-maker) |
| Ioc | REAL (POST PlaceOrder, buy/sell-ioc) |
| Fok | REAL (POST PlaceOrder, buy/sell-limit-fok) |
| StopMarket | STUB (`_` wildcard) |
| ReduceOnly | STUB (`_` wildcard) |
| TrailingStop | STUB (`_` wildcard) |
| Bracket | STUB (`_` wildcard) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

**cancel_order** — 2/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (POST CancelOrder via path variable) |
| Batch | REAL (POST CancelAllOrders with `order-ids` array) |
| All | STUB (UnsupportedOperation) |
| BySymbol | STUB (UnsupportedOperation) |

**modify_position** — 0/6 STUB (HTX is Spot-only connector)
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | STUB (NotSupported — spot trading) |
| SetMarginMode | STUB (UnsupportedOperation) |
| AddMargin | STUB (UnsupportedOperation) |
| RemoveMargin | STUB (UnsupportedOperation) |
| ClosePosition | STUB (UnsupportedOperation) |
| SetTpSl | STUB (UnsupportedOperation) |

**get_order_history**: REAL (GET OrderHistory with states filter)
**get_fees**: REAL (GET /v2/reference/transact-fee-rate)
**get_balance**: REAL (GET Balance with account-id path var)
**get_account_info**: REAL (delegates to get_balance, constructs AccountInfo)
**get_positions**: REAL (returns empty vec — spot has no positions, not an error)
**get_funding_rate**: STUB (NotSupported — spot trading)

**Optional traits**:
- `impl CancelAll for HtxConnector` — YES (REAL: POST CancelAllOrders for All/BySymbol; STUB for other scopes)
- `impl BatchOrders for HtxConnector` — YES (place_orders_batch = STUB UnsupportedOperation; cancel_orders_batch = STUB)
- `impl AmendOrder for HtxConnector` — NO

---

## 2. MEXC (`src/crypto/cex/mexc/connector.rs`)


**place_order** — 5/14 REAL, 9 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST PlaceOrder) |
| Limit | REAL (POST PlaceOrder) |
| PostOnly | REAL (POST PlaceOrder, LIMIT_MAKER) |
| Ioc | REAL (POST PlaceOrder, LIMIT+IOC) |
| Fok | REAL (POST PlaceOrder, LIMIT+FOK) |
| StopMarket | STUB (`_` wildcard) |
| StopLimit | STUB (`_` wildcard) |
| ReduceOnly | STUB (`_` wildcard) |
| TrailingStop | STUB (`_` wildcard) |
| Bracket | STUB (`_` wildcard) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

**cancel_order** — 1/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (DELETE CancelOrder) |
| All | STUB (UnsupportedOperation — use CancelAll trait) |
| BySymbol | STUB (UnsupportedOperation) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — NOT IMPLEMENTED (no `impl Positions for MexcConnector`)

**get_order_history**: REAL (GET AllOrders)
**get_fees**: REAL (GET TradeFee)
**get_balance**: REAL (GET Account)
**get_account_info**: REAL (GET Account, extracts canTrade/Withdraw/Deposit and commissions)
**get_positions**: N/A — Positions trait not implemented
**get_funding_rate**: N/A — Positions trait not implemented

**Optional traits**:
- `impl CancelAll for MexcConnector` — YES (REAL for All+symbol/BySymbol; returns error for All without symbol; STUB for other scopes)
- `impl BatchOrders for MexcConnector` — YES (place_orders_batch = REAL via POST BatchOrders; cancel_orders_batch = STUB)
- `impl AmendOrder for MexcConnector` — NO

---

## 3. Bitget (`src/crypto/cex/bitget/connector.rs`)


**place_order** — 11/14 REAL, 3 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST SpotCreateOrder / FuturesCreateOrder) |
| Limit | REAL (POST, spot+futures) |
| PostOnly | REAL (POST, force=post_only) |
| Ioc | REAL (POST, force=ioc) |
| Fok | REAL (POST, force=fok) |
| Gtd | REAL (POST, mapped to GTC limit — expire_time noted but not natively supported) |
| ReduceOnly | REAL (futures only; spot returns UnsupportedOperation inline, not a wildcard stub) |
| StopMarket | REAL (futures only; POST FuturesPlanOrder, planType=normal_plan, orderType=market) |
| StopLimit | REAL (futures only; POST FuturesPlanOrder, planType=normal_plan, orderType=limit) |
| TrailingStop | REAL (futures only; POST FuturesPlanOrder, planType=track_plan) |
| Bracket | REAL (futures only; POST FuturesCreateOrder with presetStopSurplusPrice) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |

**cancel_order** — 2/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (POST SpotCancelOrder / FuturesCancelOrder) |
| Batch | REAL (POST SpotBatchCancelOrders / FuturesBatchCancelOrders) |
| All | STUB (UnsupportedOperation — use CancelAll trait) |
| BySymbol | STUB (UnsupportedOperation) |

**modify_position** — 6/6 REAL
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | REAL (POST FuturesSetLeverage; spots return inline UnsupportedOperation) |
| SetMarginMode | REAL (POST FuturesSetMarginMode) |
| AddMargin | REAL (POST FuturesSetMargin, operationType=add) |
| RemoveMargin | REAL (POST FuturesSetMargin, operationType=reduce) |
| ClosePosition | REAL (POST FuturesClosePositions) |
| SetTpSl | REAL (POST tpsl-order endpoint) |

**get_order_history**: REAL (GET SpotAllOrders / FuturesAllOrders)
**get_fees**: REAL (GET TradeRate for symbol; GET VipFeeRate for no-symbol)
**get_balance**: REAL (GET SpotAccounts / FuturesAccount)
**get_account_info**: REAL (delegates to get_balance, returns hardcoded commission)
**get_positions**: REAL (GET FuturesPosition / FuturesPositions; Spot returns UnsupportedOperation)
**get_funding_rate**: REAL (GET FundingRate; Spot returns UnsupportedOperation)

**Optional traits**:
- `impl CancelAll for BitgetConnector` — YES (REAL for All/BySymbol; STUB for other scopes)
- `impl AmendOrder for BitgetConnector` — YES (REAL: POST SpotAmendOrder / FuturesAmendOrder)
- `impl BatchOrders for BitgetConnector` — YES (place_orders_batch = REAL; cancel_orders_batch = REAL)

---

## 4. BingX (`src/crypto/cex/bingx/connector.rs`)


**place_order** — 9/14 REAL, 5 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST SpotOrder / SwapOrder) |
| Limit | REAL (POST, GTC) |
| PostOnly | REAL (futures only; spot returns inline UnsupportedOperation) |
| Ioc | REAL (LIMIT+IOC) |
| Fok | REAL (LIMIT+FOK) |
| StopMarket | REAL (futures only; STOP_MARKET) |
| StopLimit | REAL (futures only; STOP) |
| TrailingStop | REAL (futures only; TRAILING_STOP_MARKET) |
| ReduceOnly | REAL (futures only; LIMIT/MARKET+reduceOnly=true) |
| Bracket | REAL (futures only; LIMIT/MARKET with embedded takeProfit/stopLoss JSON) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

**cancel_order** — 1/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (DELETE SpotOrder / SwapOrder) |
| All | STUB (UnsupportedOperation — use CancelAll trait) |
| BySymbol | STUB (UnsupportedOperation) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — 3/6 REAL
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | REAL (POST SwapLeverage; Spot returns inline UnsupportedOperation) |
| SetMarginMode | REAL (POST SwapMarginType) |
| ClosePosition | REAL (POST SwapOrder with closePosition=true) |
| AddMargin | STUB (`_` wildcard) |
| RemoveMargin | STUB (`_` wildcard) |
| SetTpSl | STUB (`_` wildcard) |

**get_order_history**: REAL (GET SwapAllOrders or SpotHistoryOrders)
**get_fees**: REAL (GET SpotCommissionRate; falls back to hardcoded 0.001 if call fails)
**get_balance**: REAL (GET SpotBalance / SwapBalance)
**get_account_info**: REAL (delegates to get_balance; uses hardcoded 0.1 fee)
**get_positions**: REAL (GET SwapPositions; Spot returns UnsupportedOperation)
**get_funding_rate**: REAL (GET SwapFundingRate; Spot returns UnsupportedOperation)

**Optional traits**:
- `impl CancelAll for BingxConnector` — YES (REAL: DELETE SpotCancelAllOrders / SwapCancelAllOrders for All/BySymbol)
- `impl AmendOrder for BingxConnector` — YES (REAL: POST SwapAmend; Spot returns UnsupportedOperation)
- `impl BatchOrders for BingxConnector` — NO

---

## 5. Phemex (`src/crypto/cex/phemex/connector.rs`)


**place_order** — 8/14 REAL, 6 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST SpotCreateOrder / ContractCreateOrder) |
| Limit | REAL (POST, GoodTillCancel) |
| PostOnly | REAL (Limit+PostOnly timeInForce, both Spot and Contract) |
| Ioc | REAL (ImmediateOrCancel, both Spot/Contract, with/without price) |
| Fok | REAL (FillOrKill, both Spot/Contract) |
| StopMarket | REAL (Contract only; ordType=Stop; Spot returns inline UnsupportedOperation) |
| StopLimit | REAL (Contract only; ordType=StopLimit) |
| ReduceOnly | REAL (Contract only; reduceOnly=true) |
| TrailingStop | STUB (grouped wildcard) |
| Oco | STUB (grouped wildcard) |
| Bracket | STUB (grouped wildcard) |
| Iceberg | STUB (grouped wildcard) |
| Twap | STUB (grouped wildcard) |
| Gtd | STUB (grouped wildcard) |

**cancel_order** — 3/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (DELETE SpotCancelOrder / ContractCancelOrder) |
| All | REAL (DELETE SpotCancelAllOrders / ContractCancelAllOrders) |
| BySymbol | REAL (DELETE same endpoints with symbol param) |
| Batch | STUB (UnsupportedOperation — use CancelAll trait) |

**modify_position** — 5/6 REAL
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | REAL (PUT SetLeverage) |
| SetMarginMode | REAL (PUT SetLeverage with 0 for cross / positive for isolated) |
| AddMargin | REAL (POST AssignBalance, add=true) |
| RemoveMargin | REAL (POST AssignBalance, add=false) |
| ClosePosition | REAL (POST ContractCreateOrder with reduceOnly=true, qty=999999999) |
| SetTpSl | STUB (UnsupportedOperation — "place separate TP/SL orders") |

**get_order_history**: REAL (GET ContractClosedOrders)
**get_fees**: HARDCODED (returns static 0.01%/0.06% — "Phemex doesn't expose a public fee endpoint")
**get_balance**: REAL (GET SpotWallets or ContractAccount)
**get_account_info**: REAL (delegates to get_balance)
**get_positions**: REAL (GET Positions with currency=BTC)
**get_funding_rate**: REAL (GET FundingRateHistory)

**Optional traits**:
- `impl CancelAll for PhemexConnector` — YES (REAL: DELETE SpotCancelAllOrders / ContractCancelAllOrders for All/BySymbol)
- `impl AmendOrder for PhemexConnector` — YES (REAL: PUT SpotAmendOrder / ContractAmendOrder)
- `impl BatchOrders for PhemexConnector` — NO

---

## 6. Crypto.com (`src/crypto/cex/crypto_com/connector.rs`)


**place_order** — 7/14 REAL, 7 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST CreateOrder) |
| Limit | REAL (POST CreateOrder, GOOD_TILL_CANCEL) |
| StopMarket | REAL (POST CreateOrder, type=STOP_LOSS) |
| StopLimit | REAL (POST CreateOrder, type=STOP_LIMIT) |
| PostOnly | REAL (POST CreateOrder, exec_inst=POST_ONLY) |
| Ioc | REAL (POST CreateOrder, IMMEDIATE_OR_CANCEL) |
| Fok | REAL (POST CreateOrder, FILL_OR_KILL) |
| TrailingStop | STUB (grouped wildcard) |
| Oco | STUB (grouped wildcard) |
| Bracket | STUB (grouped wildcard) |
| Iceberg | STUB (grouped wildcard) |
| Twap | STUB (grouped wildcard) |
| Gtd | STUB (grouped wildcard) |
| ReduceOnly | STUB (grouped wildcard) |

**cancel_order** — 3/4 REAL (cancel_order handles All/BySymbol inline — no separate CancelAll needed in Trading trait itself)
| CancelScope | Status |
|-------------|--------|
| Single | REAL (POST CancelOrder) |
| All | REAL (POST CancelAllOrders, optional instrument_name) |
| BySymbol | REAL (POST CancelAllOrders, with instrument_name) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — 4/6 REAL
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | REAL (POST ChangeAccountLeverage) |
| SetMarginMode | REAL (POST ChangeIsolatedMarginLeverage, leverage=0 for cross) |
| ClosePosition | REAL (POST ClosePosition, type=MARKET) |
| AddMargin | STUB (UnsupportedOperation — "endpoint not yet mapped") |
| RemoveMargin | STUB (UnsupportedOperation) |
| SetTpSl | STUB (UnsupportedOperation — "place separate TP/SL orders") |

**get_order_history**: REAL (POST GetOrderHistory)
**get_fees**: REAL (POST GetFeeRate or GetInstrumentFeeRate depending on symbol)
**get_balance**: REAL (POST UserBalance)
**get_account_info**: REAL (delegates to get_balance, uses hardcoded 0.075% fee)
**get_positions**: REAL (POST GetPositions; Spot returns UnsupportedOperation)
**get_funding_rate**: REAL (POST GetValuations)

**Optional traits**:
- `impl CancelAll for CryptoComConnector` — YES (REAL: POST CancelAllOrders for All/BySymbol)
- `impl AmendOrder for CryptoComConnector` — YES (REAL: POST AmendOrder)
- `impl BatchOrders for CryptoComConnector` — NO

---

## 7. Upbit (`src/crypto/cex/upbit/connector.rs`)


**place_order** — 2/14 REAL, 12 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST CreateOrder, ord_type=price/market by side) |
| Limit | REAL (POST CreateOrder, ord_type=limit) |
| PostOnly | STUB (`_` wildcard) |
| Ioc | STUB (`_` wildcard) |
| Fok | STUB (`_` wildcard) |
| StopMarket | STUB (`_` wildcard) |
| StopLimit | STUB (`_` wildcard) |
| ReduceOnly | STUB (`_` wildcard) |
| TrailingStop | STUB (`_` wildcard) |
| Bracket | STUB (`_` wildcard) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

Note: Upbit is Spot-only — no futures order types are expected.

**cancel_order** — 1/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (DELETE CancelOrder with uuid) |
| All | STUB (UnsupportedOperation) |
| BySymbol | STUB (UnsupportedOperation) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — NOT IMPLEMENTED (no Positions trait on Upbit)

**get_order_history**: REAL (GET ListOrders with state=done)
**get_fees**: STUB (UnsupportedOperation — "Upbit does not provide a fee query API endpoint")
**get_balance**: REAL (GET Balances with optional asset filter)
**get_account_info**: REAL (delegates to get_balance, uses hardcoded 0.05% fee)
**get_positions**: N/A — Positions trait not implemented
**get_funding_rate**: N/A — Positions trait not implemented

**Optional traits**:
- `impl CancelAll for UpbitConnector` — YES (REAL: DELETE BatchCancelOrders for All/BySymbol)
- `impl AmendOrder for UpbitConnector` — NO
- `impl BatchOrders for UpbitConnector` — NO

---

## 8. Bitstamp (`src/crypto/cex/bitstamp/connector.rs`)


**place_order** — 2/14 REAL, 12 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST BuyMarket / SellMarket) |
| Limit | REAL (POST BuyLimit / SellLimit) |
| PostOnly | STUB (`_` wildcard) |
| Ioc | STUB (`_` wildcard) |
| Fok | STUB (`_` wildcard) |
| StopMarket | STUB (`_` wildcard) |
| StopLimit | STUB (`_` wildcard) |
| ReduceOnly | STUB (`_` wildcard) |
| TrailingStop | STUB (`_` wildcard) |
| Bracket | STUB (`_` wildcard) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

Note: Bitstamp is primarily Spot — no futures order types expected.

**cancel_order** — 1/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (POST CancelOrder with id) |
| All | STUB (UnsupportedOperation) |
| BySymbol | STUB (UnsupportedOperation) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — NOT IMPLEMENTED (no Positions trait on Bitstamp)

**get_order_history**: REAL (POST UserTransactions)
**get_fees**: REAL (POST TradingFees)
**get_balance**: REAL (POST Balance)
**get_account_info**: REAL (POST Balance, constructs from balances, hardcoded 0.5% fee)
**get_positions**: N/A — Positions trait not implemented
**get_funding_rate**: N/A — Positions trait not implemented

**Optional traits**:
- `impl CancelAll for BitstampConnector` — YES (REAL: POST CancelAllOrders globally — no per-symbol scope, all scopes go to same endpoint)
- `impl AmendOrder for BitstampConnector` — NO
- `impl BatchOrders for BitstampConnector` — NO

---

## 9. Gemini (`src/crypto/cex/gemini/connector.rs`)


**place_order** — 6/14 REAL, 8 STUB
| OrderType | Status |
|-----------|--------|
| Market | REAL (POST NewOrder, type="exchange market") |
| Limit | REAL (POST NewOrder, type="exchange limit") |
| StopLimit | REAL (POST NewOrder, type="exchange stop limit") |
| PostOnly | REAL (POST NewOrder, options=["maker-or-cancel"]) |
| Ioc | REAL (POST NewOrder, options=["immediate-or-cancel"]) |
| Fok | REAL (POST NewOrder, options=["fill-or-kill"]) |
| StopMarket | STUB (`_` wildcard) |
| ReduceOnly | STUB (`_` wildcard) |
| TrailingStop | STUB (`_` wildcard) |
| Bracket | STUB (`_` wildcard) |
| Oco | STUB (`_` wildcard) |
| Iceberg | STUB (`_` wildcard) |
| Twap | STUB (`_` wildcard) |
| Gtd | STUB (`_` wildcard) |

**cancel_order** — 1/4 REAL
| CancelScope | Status |
|-------------|--------|
| Single | REAL (POST CancelOrder with order_id) |
| All | STUB (UnsupportedOperation) |
| BySymbol | STUB (UnsupportedOperation) |
| Batch | STUB (UnsupportedOperation) |

**modify_position** — 0/6 STUB
| PositionModification | Status |
|----------------------|--------|
| SetLeverage | STUB (NotSupported — "Gemini doesn't have a set leverage endpoint") |
| SetMarginMode | STUB (`_` wildcard → UnsupportedOperation) |
| AddMargin | STUB (`_` wildcard) |
| RemoveMargin | STUB (`_` wildcard) |
| ClosePosition | STUB (`_` wildcard) |
| SetTpSl | STUB (`_` wildcard) |

**get_order_history**: REAL (POST PastTrades)
**get_fees**: REAL (POST NotionalVolume)
**get_balance**: REAL (POST Balances)
**get_account_info**: HARDCODED (returns static `can_trade=true`, `maker_commission=0.0`, no API call)
**get_positions**: REAL (POST Positions)
**get_funding_rate**: REAL (GET FundingAmount)

**Optional traits**:
- `impl CancelAll for GeminiConnector` — YES (REAL: POST CancelAllOrders globally — ignores scope)
- `impl AmendOrder for GeminiConnector` — NO
- `impl BatchOrders for GeminiConnector` — NO

---

## Summary Table


| Connector | place_order (REAL/14) | cancel_order (REAL/4) | modify_position (REAL/6) | order_history | fees | balance | account_info | positions | funding_rate | CancelAll | AmendOrder | BatchOrders |
|-----------|----------------------|-----------------------|--------------------------|---------------|------|---------|--------------|-----------|--------------|-----------|------------|-------------|
| HTX | 6/14 | 2/4 | 0/6 (spot) | REAL | REAL | REAL | REAL | REAL (empty) | STUB | YES | NO | YES (stub impl) |
| MEXC | 5/14 | 1/4 | N/A | REAL | REAL | REAL | REAL | N/A | N/A | YES | NO | YES |
| Bitget | 11/14 | 2/4 | 6/6 | REAL | REAL | REAL | REAL | REAL | REAL | YES | YES | YES |
| BingX | 9/14 | 1/4 | 3/6 | REAL | REAL | REAL | REAL | REAL | REAL | YES | YES | NO |
| Phemex | 8/14 | 3/4 | 5/6 | REAL | HARDCODED | REAL | REAL | REAL | REAL | YES | YES | NO |
| Crypto.com | 7/14 | 3/4 | 4/6 | REAL | REAL | REAL | REAL | REAL | REAL | YES | YES | NO |
| Upbit | 2/14 | 1/4 | N/A | REAL | STUB | REAL | REAL | N/A | N/A | YES | NO | NO |
| Bitstamp | 2/14 | 1/4 | N/A | REAL | REAL | REAL | REAL | N/A | N/A | YES | NO | NO |
| Gemini | 6/14 | 1/4 | 0/6 | REAL | REAL | REAL | HARDCODED | REAL | REAL | YES | NO | NO |

---

## Key Findings


1. **Bitget** is the most complete connector: 11/14 order types, full modify_position (6/6), all optional traits present.
2. **BingX** is second: 9/14 order types, 3/6 modify_position (missing AddMargin, RemoveMargin, SetTpSl).
3. **Phemex** and **Crypto.com** are competitive at 7-8/14 and 4-5/6 modify_position.
4. **Upbit** and **Bitstamp** are Spot-only minimal connectors: 2/14 order types, no futures features.
5. **HTX** is Spot-only, 6/14 order types — has stop/ioc/fok, but no futures.
6. **MEXC** is 5/14 — missing all advanced order types (stop, trailing, reduce-only).
7. **Gemini** is 6/14 — has stop-limit and execution options (IOC/FOK/PostOnly) but no futures mechanics.

### Common gaps across all connectors:

- `Oco`, `Iceberg`, `Twap` — STUB everywhere
- `Gtd` — STUB in most (only Bitget has it as a semi-real mapping to GTC)
- `cancel_order(Batch)` — mostly STUB in cancel_order directly; handled differently in CancelAll/BatchOrders traits

### Fees edge cases:

- **Phemex** `get_fees` returns hardcoded 0.01%/0.06% — no API call
- **Gemini** `get_account_info` returns hardcoded 0% fees + empty balances — should call Balances endpoint
- **Upbit** `get_fees` always returns UnsupportedOperation (no fee API exists on Upbit)