(self, client: Client, message)
| 1244 | return self.filter_by_symbols_since_limit(newPositions, symbols, since, limit, True) |
| 1245 | |
| 1246 | def handle_positions(self, client: Client, message): |
| 1247 | # |
| 1248 | # { |
| 1249 | # "action": "snapshot", |
| 1250 | # "arg": { |
| 1251 | # "instType": "USDT-FUTURES", |
| 1252 | # "channel": "positions", |
| 1253 | # "instId": "default" |
| 1254 | # }, |
| 1255 | # "data": [ |
| 1256 | # { |
| 1257 | # "posId": "926036334386778112", |
| 1258 | # "instId": "BTCUSDT", |
| 1259 | # "marginCoin": "USDT", |
| 1260 | # "marginSize": "2.19245", |
| 1261 | # "marginMode": "crossed", |
| 1262 | # "holdSide": "long", |
| 1263 | # "posMode": "hedge_mode", |
| 1264 | # "total": "0.001", |
| 1265 | # "available": "0.001", |
| 1266 | # "frozen": "0", |
| 1267 | # "openPriceAvg": "43849", |
| 1268 | # "leverage": 20, |
| 1269 | # "achievedProfits": "0", |
| 1270 | # "unrealizedPL": "-0.0032", |
| 1271 | # "unrealizedPLR": "-0.00145955438", |
| 1272 | # "liquidationPrice": "17629.684814834", |
| 1273 | # "keepMarginRate": "0.004", |
| 1274 | # "marginRate": "0.007634649185", |
| 1275 | # "cTime": "1652331666985", |
| 1276 | # "uTime": "1701913016923", |
| 1277 | # "autoMargin": "off" |
| 1278 | # }, |
| 1279 | # ... |
| 1280 | # ] |
| 1281 | # "ts": 1701913043767 |
| 1282 | # } |
| 1283 | # |
| 1284 | # uta |
| 1285 | # |
| 1286 | # { |
| 1287 | # "data": [ |
| 1288 | # { |
| 1289 | # "symbol": "BTCUSDT", |
| 1290 | # "leverage": "20", |
| 1291 | # "openFeeTotal": "", |
| 1292 | # "mmr": "", |
| 1293 | # "breakEvenPrice": "", |
| 1294 | # "available": "0", |
| 1295 | # "liqPrice": "", |
| 1296 | # "marginMode": "crossed", |
| 1297 | # "unrealisedPnl": "0", |
| 1298 | # "markPrice": "94987.1", |
| 1299 | # "createdTime": "1736378720620", |
| 1300 | # "avgPrice": "0", |
| 1301 | # "totalFundingFee": "0", |
| 1302 | # "updatedTime": "1736378720620", |
| 1303 | # "marginCoin": "USDT", |
nothing calls this directly
no test coverage detected