amberdata_api 1.0.0

Rust API bindings - samberdata_api
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
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
# amberdata_api rust 

 At Amberdata.io we provide a rich set of high quality, real-time, raw & augmented blockchain data. Web3api enables you to easily gain access to this data.


You can access the data in different ways:

REST - Access comprehensive historical data with our RESTful APIs, designed for seamless integration and retrieval of extensive time-series information.

Websockets - Connect to our Websockets API for instantaneous, real-time data streaming, ensuring minimal latency for dynamic and responsive applications.

FIX - Leverage the robustness of the FIX protocol to obtain reliable and secure Market Data, facilitating swift and standardized financial information exchange.

RPC - Utilize our RPC interface for direct and efficient queries to our blockchain nodes, offering you unfettered access to decentralized data with precision.

Amazon S3 - Access and download vast archives of historical data, systematically organized and delivered daily in the highly efficient Apache Parquet format via Amazon S3.

Snowflake - Harness the power of Snowflake for dynamic data analysis within a cloud-native platform, offering advanced SQL querying capabilities and seamless scalability.

BigQuery - Utilize BigQuery for comprehensive data analysis, leveraging Google's advanced infrastructure and smart analytics with interactive SQL queries.
 

 # Authentication 
  
 ```rust
use amberdata_api::Client;
let client = Client::new(String::from("API_KEY")).unwrap();
```

# get_all_addresses
Retrieves every address that has been seen on the network. Without any parameters, returns all the known addresses on the blockchain, order by time of first appearance (ie when they first transacted) in reverse order, meaning the most recent addresses first. When used with a specific address, returns information about the address and the first time (block and transaction hash) it appeared on the blockchain.
```rust
let response = client.get_all_addresses(GetAddressesRequest {
    block_number: None,
    block_number_gt: None,
    block_number_gte: None,
    block_number_lt: None,
    block_number_lte: None,
    end_date: None,
    hash: None,
    page: None,
    size: None,
    start_date: None,
    transaction_hash: None,
    type_query: None,
});
```
# address_balances_batch
Retrieves the latest account and token balances for the specified addresses.
This is super useful if you want to get an entire portfolio's summary in a single call. Get totals for ETH & all token amounts with market prices.
```rust
let response = client.address_balances_batch(GetAddressesBalancesRequest {
    addresses: "string".to_string(),
    block_number: None,
    currency: None,
    include_price: None,
    time_format: None,
});
```
# extended_public_key
Generates derived addresses based an x,y,z public address and a path.
```rust
let response = client.extended_public_key(GetAddressesExtendedAddressRequest {
    address: "string".to_string(),
    page: None,
    path: None,
    size: None,
    type_query: None,
});
```
# all_address_metrics
Get a rolling 24 hour active address count for a given blockchain.
Default metrics are for Ethereum.
```rust
let response = client.all_address_metrics();
```
# get_historical_account_balances
Retrieves the historical (time series) account balances for the specified address.
```rust
let response = client.get_historical_account_balances(GetAddressesHashAccountBalancesHistoricalRequest {
    hash: "string".to_string(),
    block_number: None,
    currency: None,
    end_date: None,
    include_price: None,
    page: None,
    size: None,
    start_date: None,
    time_format: None,
    value: None,
    value_gt: None,
    value_gte: None,
    value_lt: None,
    value_lte: None,
});
```
# get_current_account_balance
Retrieves the current account balance for the specified address.
```rust
let response = client.get_current_account_balance(GetAddressesHashAccountBalancesLatestRequest {
    hash: "string".to_string(),
    currency: None,
    include_price: None,
    real_time: None,
});
```
# get_address_adoption
Retrieves the historical adoption for the specified address on ethereum-mainnet.

Adoption is defined by the number of unique addresses interacting with this contract for the entire span of time. Example: If an address makes a transaction to a contract in June, then again in July, this address will only be counted once for the adoption totals.
```rust
let response = client.get_address_adoption(GetAddressesHashAdoptionRequest {
    hash: "string".to_string(),
    time_format: None,
    time_frame: None,
    time_period: None,
});
```
# address_balances
Retrieves the latest account and token balances for the specified address.
```rust
let response = client.address_balances(GetAddressesHashBalancesRequest {
    hash: "string".to_string(),
    currency: None,
    include_price: None,
    time_format: None,
});
```
# addresses_converter
Converts the specified address in the Bitcoin Cash & Legacy formats.
```rust
let response = client.addresses_converter(GetAddressesHashConverterRequest {
    hash: "string".to_string(),
});
```
# get_internal_messages
Retrieves internal messages where this address is either the originator or a recipient.

If you intend to traverse all the internal-messages, it is recommended to specify the flag `direction=ascending`, which will guarantee that the pagination is stable and will not change with the arrival of new internal messages.

Please note that the returned payload can sometimes contain less records than the requested size - this is due to duplicates that can occur when the *from* and the *to* of a transaction are identical.
In order to terminate the pagination effectively, please paginate until the returned payload is empty, do no rely on the size of the payload itself.
```rust
let response = client.get_internal_messages(GetAddressesHashFunctionsRequest {
    hash: "string".to_string(),
    block_number: None,
    direction: None,
    end_date: None,
    from: None,
    page: None,
    size: None,
    start_date: None,
    to: None,
    transaction_hash: None,
    validation_method: None,
});
```
# get_account_information
Retrieves information about the specified address: network(s) and blockchain(s) this address exist within.
```rust
let response = client.get_account_information(GetAddressesHashInformationRequest {
    hash: "string".to_string(),
    include_price: None,
});
```
# get_address_logs
Retrieves the logs for the transactions where this address is either the originator or a recipient.
```rust
let response = client.get_address_logs(GetAddressesHashLogsRequest {
    hash: "string".to_string(),
    block_number: None,
    end_date: None,
    page: None,
    size: None,
    start_date: None,
    topic: None,
    transaction_hash: None,
});
```
# get_address_metadata
Retrieves statistics about the specified address: balances, holdings, etc.
```rust
let response = client.get_address_metadata(GetAddressesHashMetadataRequest {
    hash: "string".to_string(),
    time_format: None,
});
```
# get_token_balances
Retrieves the historical (time series) token balances for the specified address.
```rust
let response = client.get_token_balances(GetAddressesHashTokenBalancesHistoricalRequest {
    hash: "string".to_string(),
    amount: None,
    amount_gt: None,
    amount_gte: None,
    amount_lt: None,
    amount_lte: None,
    block_number: None,
    end_date: None,
    page: None,
    size: None,
    start_date: None,
    token_address: None,
});
```
# get_address_tokens
Retrieves the tokens this address is holding.
```rust
let response = client.get_address_tokens(GetAddressesHashTokenBalancesLatestRequest {
    hash: "string".to_string(),
    currency: None,
    direction: None,
    include_price: None,
    page: None,
    size: None,
    sort_type: None,
});
```
# token_transfers_by_address_pro
Retrieves all token transfers involving the specified address.

If you intend to traverse all the token-transfers, it is recommended to specify the flag `direction=ascending`, which will guarantee that the pagination is stable and will not change with the arrival of new token-transfers.
```rust
let response = client.token_transfers_by_address_pro(GetAddressesHashTokenTransfersRequest {
    hash: "string".to_string(),
    amount: None,
    amount_gt: None,
    amount_gte: None,
    amount_lt: None,
    amount_lte: None,
    block_number: None,
    currency: None,
    direction: None,
    end_date: None,
    include_price: None,
    page: None,
    size: None,
    start_date: None,
    time_format: None,
    transaction_hash: None,
    validation_method: None,
});
```
# get_address_transactions
Retrieves the transactions where this address was either the originator or a recipient.

Note that transactions are returned in descending order by default (block number and transaction index), which means the most recent transactions are on page 0, and the oldest transactions are on the last page.
 
If you intend to traverse all the transactions, it is recommended to specify the flag `direction=ascending`, which will guarantee that the pagination is stable and will not change with the arrival of new transactions.
```rust
let response = client.get_address_transactions(GetAddressesHashTransactionsRequest {
    hash: "string".to_string(),
    block_number: None,
    decode_transactions: None,
    direction: None,
    end_date: None,
    from: None,
    include_functions: None,
    include_logs: None,
    include_price: None,
    include_token_transfers: None,
    page: None,
    size: None,
    start_date: None,
    to: None,
    validation_method: None,
});
```
# get_address_usage
Retrieves the historical usage for the specified address.
Usage is defined by the number of unique addresses interacting with this contract for a specific window of time. Example: If an address makes a transaction to a contract in June, then again in July, this address will be counted once for each period in the usage totals.
```rust
let response = client.get_address_usage(GetAddressesHashUsageRequest {
    hash: "string".to_string(),
    time_format: None,
    time_frame: None,
    time_period: None,
});
```
# blockchains_metrics_latest
Get metrics for a specific blockchain.
```rust
let response = client.blockchains_metrics_latest();
```
# get_all_blocks
Retrieves all the blocks within the specified range.
```rust
let response = client.get_all_blocks(GetBlocksRequest {
    end_number: "string".to_string(),
    start_number: "string".to_string(),
    size: None,
    validation_method: None,
});
```
# blocks_metrics_historical
Get metrics for historical confirmed blocks for a given blockchain.
Default metrics are for Ethereum over a 1d tick / 365d lookback period. Changing the header blockchain ID will return that blockchains metrics.
```rust
let response = client.blocks_metrics_historical(GetBlocksMetricsHistoricalRequest {
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# blocks_metrics
Get metrics for recent confirmed blocks for a given blockchain.
Default metrics are for Ethereum over a 24h period. Changing the header blockchain ID will return that blockchains metrics.
```rust
let response = client.blocks_metrics(GetBlocksMetricsLatestRequest {
    time_format: None,
    time_interval: None,
});
```
# get_block
Retrieves the block specified by its id (number or hash).
```rust
let response = client.get_block(GetBlocksIdRequest {
    id: "string".to_string(),
    time_format: None,
    validation_method: None,
});
```
# get_block_functions
Retrieves all the functions which were called at the specified block number or hash.
```rust
let response = client.get_block_functions(GetBlocksIdFunctionsRequest {
    id: "string".to_string(),
    validation_method: None,
});
```
# get_block_logs
Retrieves all the logs at the specified block number or hash.
```rust
let response = client.get_block_logs(GetBlocksIdLogsRequest {
    id: "string".to_string(),
    transaction_hash: None,
    validation_method: None,
});
```
# get_blocks_token_transfers
Retrieves all the tokens which were transferred at the specified block number.
```rust
let response = client.get_blocks_token_transfers(GetBlocksIdTokenTransfersRequest {
    id: "string".to_string(),
    amount: None,
    amount_gt: None,
    amount_gte: None,
    amount_lt: None,
    amount_lte: None,
    currency: None,
    from: None,
    to: None,
    token_address: None,
    transaction_hash: None,
});
```
# get_block_transactions
Retrieves all the transactions included in a specified block id.
```rust
let response = client.get_block_transactions(GetBlocksIdTransactionsRequest {
    id: "string".to_string(),
    decode_transactions: None,
    end_date: None,
    include_functions: None,
    include_logs: None,
    include_price: None,
    include_token_transfers: None,
    page: None,
    size: None,
    start_date: None,
    validation_method: None,
});
```
# get_contract_details
Retrieves all the detailed information for the specified contract (ABI, bytecode, sourcecode...).
```rust
let response = client.get_contract_details(GetContractsHashRequest {
    hash: "string".to_string(),
});
```
# get_contract_functions
Retrieves the functions of the specified contract (if available) - if not available on chain, the byte code is decompiled and a list of functions is extracted from it.
```rust
let response = client.get_contract_functions(GetContractsHashFunctionsRequest {
    hash: "string".to_string(),
});
```
# uniswap_v3_liquidity_distribution
This API provides the **current** distribution of the liquidity in a specified Uniswap v3 pool.
```rust
let response = client.uniswap_v3_liquidity_distribution(GetDefiDexUniswapv3PoolsPoolAddressLiquidityDistributionRequest {
    pool_address: "string".to_string(),
    active_tick: None,
    price0_usd_max: None,
    price0_usd_min: None,
    price1_usd_max: None,
    price1_usd_min: None,
});
```
# defi_dex_pool_lens
This API retrieves information about all of the actions that occurred for a specific liquidity pool on the protocol within a certain timespan.
```rust
let response = client.defi_dex_pool_lens(GetDefiDexProtocolIdPoolsPoolAddressRequest {
    protocol_id: "string".to_string(),
    pool_address: "string".to_string(),
    action: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_dex_protocol_lens
This API retrieves information about all of the actions that occurred on the protocol within a certain timespan.
```rust
let response = client.defi_dex_protocol_lens(GetDefiDexProtocolIdProtocolRequest {
    protocol_id: "string".to_string(),
    action: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_dex_wallet_lens
This API retrieves information about all of the actions taken by a specific wallet on the protocol within a certain timespan.
```rust
let response = client.defi_dex_wallet_lens(GetDefiDexProtocolIdWalletsWalletAddressRequest {
    protocol_id: "string".to_string(),
    wallet_address: "string".to_string(),
    action: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_lending_information_assets
This API lists the supported assets across the available lending protocols and provides snapshots of aggregate metrics.
```rust
let response = client.defi_lending_information_assets(GetDefiLendingAssetsInformationRequest {
    asset: None,
    blockchain: None,
    end_date: None,
    market: None,
    protocol: None,
});
```
# defi_lending_information_protocols
This API lists the supported DeFi lending protocols and provides snapshots of aggregate metrics.
```rust
let response = client.defi_lending_information_protocols(GetDefiLendingProtocolsInformationRequest {
    blockchain: None,
    end_date: None,
    protocol: None,
});
```
# profit_and_loss_analytics_in_defi_lending
Analyze a wallet's historical yield, net worth and interest owed from lending and borrowing assets across different DeFi protocols.
```rust
let response = client.profit_and_loss_analytics_in_defi_lending(GetDefiLendingWalletsWalletAddressReturnsRequest {
    wallet_address: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# lending_asset_summary_metrics
This API provides aggregated insights into the asset markets across various lending protocols.
```rust
let response = client.lending_asset_summary_metrics(GetDefiLendingProtocolIdAssetsAssetIdMetricsSummaryRequest {
    protocol_id: "string".to_string(),
    asset_id: "string".to_string(),
    end_date: None,
    market: None,
    start_date: None,
    time_format: None,
});
```
# defi_lending_asset_lens
This API retrieves information about all of the actions that occurred for a specific asset on the protocol within a certain timespan.
```rust
let response = client.defi_lending_asset_lens(GetDefiLendingProtocolIdAssetsAssetRequest {
    protocol_id: "string".to_string(),
    asset: "string".to_string(),
    action: None,
    direction: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_lending_governance_lens
This API retrieves information about all of the governance actions that occurred for the protocol within a certain timespan.
```rust
let response = client.defi_lending_governance_lens(GetDefiLendingProtocolIdGovernanceRequest {
    protocol_id: "string".to_string(),
    address: None,
    direction: None,
    end_date: None,
    proposal_id: None,
    size: None,
    start_date: None,
    support: None,
    time_format: None,
});
```
# lending_protocol_metrics_summary
This API provides aggregated insights into the lending protocols.
```rust
let response = client.lending_protocol_metrics_summary(GetDefiLendingProtocolIdMetricsSummaryRequest {
    protocol_id: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# defi_lending_protocol_lens
This API retrieves information about all of the actions that occurred on the protocol within a certain timespan.
```rust
let response = client.defi_lending_protocol_lens(GetDefiLendingProtocolIdProtocolRequest {
    protocol_id: "string".to_string(),
    action: None,
    direction: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# track_positions_lending_wallet
This API retrieves the balances of a given address within supported lending protocols.
```rust
let response = client.track_positions_lending_wallet(GetDefiLendingProtocolIdWalletsAddressPortfolioRequest {
    protocol_id: "string".to_string(),
    address: "string".to_string(),
    block_number: None,
    end_date: None,
    time_format: None,
});
```
# defi_lending_wallet_lens
This API retrieves information about all of the actions taken by a specific wallet on the protocol within a certain timespan.
```rust
let response = client.defi_lending_wallet_lens(GetDefiLendingProtocolIdWalletsWalletAddressRequest {
    protocol_id: "string".to_string(),
    wallet_address: "string".to_string(),
    action: None,
    direction: None,
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# stablecoins_in_defi_lending_aggregate_insights
Easily analyze a stablecoin's metrics across multiple DeFi lending protocols.
```rust
let response = client.stablecoins_in_defi_lending_aggregate_insights(GetDefiStablecoinsAssetSymbolLendingMetricsSummaryRequest {
    asset_symbol: "string".to_string(),
    end_date: None,
    protocol: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# defi_information_dex_exchanges
Retrieves list of supported Ethereum decentralized exchanges (DEX).
```rust
let response = client.defi_information_dex_exchanges(GetMarketDefiDexExchangesRequest {
    exchange: None,
    sort_by: None,
});
```
# defi_information_dex_pairs
Retrieves supported DEX Pairs.
```rust
let response = client.defi_information_dex_pairs(GetMarketDefiDexPairsRequest {
    exchange: "string".to_string(),
    asset: None,
    pair: None,
    size: None,
});
```
# dex_liquidity_positions_pairs_latest
Retrieves the latest Liquidity Positions within the specified pool.

Positions are ordered by providers, in descending order.
```rust
let response = client.dex_liquidity_positions_pairs_latest(GetMarketDefiLiquidityPositionsPairsPairLatestRequest {
    pair: "string".to_string(),
    size: None,
    time_format: None,
});
```
# dex_liquidity_positions_providers_latest
Retrieves the latest Liquidity Positions of a liquidity provider across all pools.

Positions are ordered by pools, in descending order.
```rust
let response = client.dex_liquidity_positions_providers_latest(GetMarketDefiLiquidityPositionsProvidersAddressLatestRequest {
    address: "string".to_string(),
    size: None,
    time_format: None,
});
```
# defi_liquidity_information
Retrieves information about supported exchange-pairs for liquidity.
```rust
let response = client.defi_liquidity_information(GetMarketDefiLiquidityInformationRequest {
    exchange: None,
    include_dates: None,
    include_metadata: None,
    size: None,
    time_format: None,
});
```
# defi_liquidity_pool_total_return
Aggregates fees earned and impermanent loss for each liquidity provider in a pool to calculate pool level fees earned and impermanent loss. These values are calculated daily at midnight UTC.
```rust
let response = client.defi_liquidity_pool_total_return(GetMarketDefiLiquidityPoolDailyReturnAddressRequest {
    address: "string".to_string(),
    date: None,
    time_format: None,
});
```
# defi_dex_liquidity_provider_return_since_inception
Retrieves a liquidity provider's return since inception (the first time they provided liquidity or received LP tokens) including fees earned, impermanent loss and related metadata. These values are calculated daily at midnight UTC.
```rust
let response = client.defi_dex_liquidity_provider_return_since_inception(GetMarketDefiLiquidityProvidersDailyReturnLiquidityPoolAddressRequest {
    liquidity_pool_address: "string".to_string(),
    addresses: None,
    date: None,
    time_format: None,
});
```
# defi_dex_liquidity_provider_historical_return
Retrieves a liquidity provider’s return in a time interval including fees earned, impermanent loss and related metadata.
```rust
let response = client.defi_dex_liquidity_provider_historical_return(GetMarketDefiLiquidityProvidersReturnLiquidityPoolAddressRequest {
    liquidity_pool_address: "string".to_string(),
    addresses: "string".to_string(),
    end_date: "1970-01-01T00:00:00".to_string(),
    start_date: "1970-01-01T00:00:00".to_string(),
});
```
# dex_liquidity_provider_events
For a given wallet (EOA), this endpoint returns all events associated with the EOA's liquidity events across pools (mint, burn and swap).
```rust
let response = client.dex_liquidity_provider_events(GetMarketDefiLiquidityProvidersProviderAddressEventsRequest {
    provider_address: "string".to_string(),
    end_date: None,
    exchange: None,
    include_all_transaction_events: None,
    include_metadata: None,
    page: None,
    pair: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_liquidity_snapshots
Retrieves a snapshot (a point in time) of the liquidity of the tokens in a pool.
```rust
let response = client.defi_liquidity_snapshots(GetMarketDefiLiquidityPoolAddressSnapshotsRequest {
    pool_address: "string".to_string(),
    end_date: None,
    size: None,
    start_date: None,
    time_format: None,
});
```
# defi_liquidity_historical
Retrieves the historical (time series) liquidity for the specified pair.
```rust
let response = client.defi_liquidity_historical(GetMarketDefiLiquidityPoolHistoricalRequest {
    pool: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# defi_liquidity_latest
Retrieves the latest liquidity information for the specified pool including both token liquidity prices.
```rust
let response = client.defi_liquidity_latest(GetMarketDefiLiquidityPoolLatestRequest {
    pool: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# defi_metrics_assets_historical
Retrieves historical daily metrics for the specified asset (for example DAI).
```rust
let response = client.defi_metrics_assets_historical(GetMarketDefiMetricsExchangesExchangeAssetsAssetHistoricalRequest {
    exchange: "string".to_string(),
    asset: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# defi_metrics_assets_latest
Retrieves the latest daily metrics for the specified asset (for example DAI).
```rust
let response = client.defi_metrics_assets_latest(GetMarketDefiMetricsExchangesExchangeAssetsAssetLatestRequest {
    exchange: "string".to_string(),
    asset: "string".to_string(),
    time_format: None,
});
```
# defi_metrics_exchanges_historical
Retrieves historical daily exchange metrics for the specified decentralized exchange.
```rust
let response = client.defi_metrics_exchanges_historical(GetMarketDefiMetricsExchangesExchangeHistoricalRequest {
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# defi_metrics_exchanges_latest
Retrieves the latest exchange daily metrics for the specified decentralized exchange.
```rust
let response = client.defi_metrics_exchanges_latest(GetMarketDefiMetricsExchangesExchangeLatestRequest {
    exchange: "string".to_string(),
    time_format: None,
});
```
# defi_metrics_pairs_historical
Retrieves historical daily metrics for the specified pair (for example DAI_WETH).
```rust
let response = client.defi_metrics_pairs_historical(GetMarketDefiMetricsExchangesExchangePairsPairHistoricalRequest {
    exchange: "string".to_string(),
    pair: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# defi_metrics_pairs_latest
Retrieves the latest minute by minute metrics for the specified pair (for example DAI_WETH).
```rust
let response = client.defi_metrics_pairs_latest(GetMarketDefiMetricsExchangesExchangePairsPairLatestRequest {
    exchange: "string".to_string(),
    pair: "string".to_string(),
    time_format: None,
});
```
# defi_ohlcv_information
Retrieves information about supported exchange-pairs for ohlcv.
```rust
let response = client.defi_ohlcv_information(GetMarketDefiOhlcvInformationRequest {
    exchange: None,
    include_dates: None,
    include_metadata: None,
    page: None,
    size: None,
    time_format: None,
});
```
# defi_ohlcv_historical
Retrieves the historical (time series) open-high-low-close for the specified pair. Includes data for  exchanges depending on where the pair is traded.
Base & Quote information is using the first and second asset in a pool/pair, which is the represented price.
```rust
let response = client.defi_ohlcv_historical(GetMarketDefiOhlcvPoolHistoricalRequest {
    pool: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# defi_ohlcv_latest
Retrieves the latest open-high-low-close for the specified pair. Includes data for exchanges depending on where the pair is traded.
Asset information is included in the payload.
Base & Quote information is using the first and second asset in a pool/pair, which is the represented price.
```rust
let response = client.defi_ohlcv_latest(GetMarketDefiOhlcvPoolLatestRequest {
    pool: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# defi_prices_assets_information
Retrieves the list of all available market asset price data sets.
```rust
let response = client.defi_prices_assets_information();
```
# defi_prices_assets_historical
Retrieves the historical minute by minute price for the specified asset (for example DAI) in WETH.

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.defi_prices_assets_historical(GetMarketDefiPricesAssetAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# defi_prices_assets_latest
Retrieves the latest minute by minute price for the specified asset (for example DAI) in WETH.

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.defi_prices_assets_latest(GetMarketDefiPricesAssetAssetLatestRequest {
    asset: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# defi_prices_pairs_historical
Retrieves the historical minute by minute price for the specified pair (for example DAI_WETH).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.defi_prices_pairs_historical(GetMarketDefiPricesPairsBasesBaseQuotesQuoteHistoricalRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# defi_prices_pairs_latest_copy
Retrieves the latest minute by minute price for the specified pair (for example DAI_WETH).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.defi_prices_pairs_latest_copy(GetMarketDefiPricesPairsBasesBaseQuotesQuoteLatestRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    time_format: None,
});
```
# defi_prices_pairs_information
Retrieves the list of all available market pair price data sets.

NOTE: DeFi Price is a reference rate established by liquidity data.
```rust
let response = client.defi_prices_pairs_information(GetMarketDefiPricesPairsInformationRequest {
    base: None,
    quote: None,
    size: None,
    time_format: None,
});
```
# defi_trades_information
Retrieves the list of all available Swaps datasets.
```rust
let response = client.defi_trades_information(GetMarketDefiTradesInformationRequest {
    exchange: None,
    size: None,
    time_format: None,
});
```
# defi_trades_historical
Retrieves the historical (time series) trade data for the specified pool/pair.
- Asset information can be used from the metadata payload.
- Base & Quote information is using the first and second asset in a pool/pair, which is the represented price.
```rust
let response = client.defi_trades_historical(GetMarketDefiTradesPoolHistoricalRequest {
    pool: "string".to_string(),
    end_date: None,
    exchange: None,
    page: None,
    size: None,
    start_date: None,
});
```
# dex_twap_assets_information
Retrieves the list of all available market asset twap data sets.
```rust
let response = client.dex_twap_assets_information();
```
# dex_twap_assets_historical
Retrieves the historical minute by minute twap for the specified asset (for example DAI).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.dex_twap_assets_historical(GetMarketDefiTwapAssetAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# dex_twap_assets_latest
Retrieves the latest minute by minute twap for the specified asset (for example DAI).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.dex_twap_assets_latest(GetMarketDefiTwapAssetAssetLatestRequest {
    asset: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# dex_twap_pairs_historical
Retrieves the historical TWAP for the specified base, quote pair - this is the global TWAP across all supported contracts.

Default results are over 1 minute intervals with a 60 minutes lookback period.

TWAP is calculated as a time weighted moving average across all contracts.
```rust
let response = client.dex_twap_pairs_historical(GetMarketDefiTwapPairsBasesBaseQuotesQuoteHistoricalRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# dex_twap_pairs_latest
Retrieves the latest TWAP for the specified base, quote pair - this is the global TWAP across all supported contracts based on minutely data.

Price is calculated as a time weighted moving average.
```rust
let response = client.dex_twap_pairs_latest(GetMarketDefiTwapPairsBasesBaseQuotesQuoteLatestRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# dex_twap_pairs_information
Retrieves the list of all available DeFi pair TWAP data sets.
```rust
let response = client.dex_twap_pairs_information(GetMarketDefiTwapPairsInformationRequest {
    base: None,
    quote: None,
    size: None,
    time_format: None,
});
```
# dex_vwap_assets_information
Retrieves the list of all available market asset vwap data sets.
```rust
let response = client.dex_vwap_assets_information();
```
# dex_vwap_assets_historical
Retrieves the historical minute by minute twap for the specified asset (for example DAI).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.dex_vwap_assets_historical(GetMarketDefiVwapAssetAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# dex_vwap_assets_latest
Retrieves the latest minute by minute vwap for the specified aset (for example DAI).

NOTE: DeFi Price is a reference rate established by trade data.
```rust
let response = client.dex_vwap_assets_latest(GetMarketDefiVwapAssetAssetLatestRequest {
    asset: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# dex_vwap_pairs_historical
Retrieves the historical VWAP for the specified base, quote pair - this is the global VWAP across all supported contracts.

Default results are over 1 minute intervals with 60 minutes lookback period.

VWAP is calculated as a volume weighted moving average across all contracts.
```rust
let response = client.dex_vwap_pairs_historical(GetMarketDefiVwapPairsBasesBaseQuotesQuoteHistoricalRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# defi_vwap_pairs_latest
Retrieves the latest VWAP for the specified base, quote pair - this is the global VWAP across all supported contracts based on minutely data.

Price is calculated as a volume weighted moving average.
```rust
let response = client.defi_vwap_pairs_latest(GetMarketDefiVwapPairsBasesBaseQuotesQuoteLatestRequest {
    base: "string".to_string(),
    quote: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# defi_vwap_pairs_information
Retrieves the list of all available market pair VWAP data sets.
```rust
let response = client.defi_vwap_pairs_information(GetMarketDefiVwapPairsInformationRequest {
    base: None,
    quote: None,
    size: None,
    time_format: None,
});
```
# get_market_exchanges
Retrieves information about supported exchange-pairs for these types of data:
• ohlcv (open-high-low-close-volume)
• order book snapshot
• order book event
• ticker
• trade
```rust
let response = client.get_market_exchanges(GetMarketExchangesRequest {
    exchange: None,
    include_dates: None,
    pair: None,
    time_format: None,
});
```
# futures_exchanges_pairs
Retrieves information about supported exchange & instruments for these types of data:
• funding rates
• liquidations
• long short ratio
• ohlcv (open-high-low-close-volume)
• open interest
• order book snapshot
• order book event
• ticker
• trade
```rust
let response = client.futures_exchanges_pairs(GetMarketFuturesExchangesInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    instrument: None,
    size: None,
    time_format: None,
});
```
# futures_exchanges_reference
Retrieves reference information for each of the instruments.
```rust
let response = client.futures_exchanges_reference(GetMarketFuturesExchangesReferenceRequest {
    end_date: None,
    exchange: None,
    include_inactive: None,
    include_original_reference: None,
    instrument: None,
    size: None,
    start_date: None,
});
```
# batch_historical_ent
Retrieves the historical time series funding rates for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ent(GetMarketFuturesFundingRatesExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ent
Retrieves the latest funding rates for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ent(GetMarketFuturesFundingRatesExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
});
```
# futures_funding_rates_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_funding_rates_information(GetMarketFuturesFundingRatesInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_funding_rates_historical
Retrieves the historical time series funding rates for the specified instrument and exchange(s).
```rust
let response = client.futures_funding_rates_historical(GetMarketFuturesFundingRatesInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# futures_funding_rates_latest
Retrieves the latest funding rates for the specified instrument.
```rust
let response = client.futures_funding_rates_latest(GetMarketFuturesFundingRatesInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# futures_insurance_fund_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_insurance_fund_information(GetMarketFuturesInsuranceFundInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_insurance_fund_historical
Retrieves the historical insurance fund for the specified instrument and exchange(s).
```rust
let response = client.futures_insurance_fund_historical(GetMarketFuturesInsuranceFundInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# futures_insurance_fund_latest
Retrieves the latest Insurance Fund for the specified instrument and exchange(s).
```rust
let response = client.futures_insurance_fund_latest(GetMarketFuturesInsuranceFundInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# futures_liquidations_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_liquidations_information(GetMarketFuturesLiquidationsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_liquidations_historical
Retrieves the historical time series liquidations for the specified instrument and exchange(s).
```rust
let response = client.futures_liquidations_historical(GetMarketFuturesLiquidationsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# futures_liquidations_latest
Retrieves the latest liquidations for the specified instrument and exchange(s).
```rust
let response = client.futures_liquidations_latest(GetMarketFuturesLiquidationsInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# futures_long_short_ratio_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_long_short_ratio_information(GetMarketFuturesLongShortRatioInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_long_short_ratio_historical
Retrieves the historical time series Long/Short Ratio data for the specified instrument and exchange(s).
```rust
let response = client.futures_long_short_ratio_historical(GetMarketFuturesLongShortRatioInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_frame: None,
    time_interval: None,
});
```
# futures_long_short_ratio_latest
Retrieves the latest Long/Short Ratio data for the specified instrument.
```rust
let response = client.futures_long_short_ratio_latest(GetMarketFuturesLongShortRatioInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
    time_frame: None,
});
```
# ohlcv_ond
Retrieves the historical time series OHLCV data for the specified exchange and instrument(s).
```rust
let response = client.ohlcv_ond(GetMarketFuturesOhlcvExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ond
Retrieves the latest Open High Low Close Volume data for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ond(GetMarketFuturesOhlcvExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
    time_interval: None,
});
```
# futures_ohlcv_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_ohlcv_information(GetMarketFuturesOhlcvInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_ohlcv_historical
Retrieves the historical time series OHLCV data for the specified instrument and exchange(s).
```rust
let response = client.futures_ohlcv_historical(GetMarketFuturesOhlcvInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# futures_ohlcv_latest
Retrieves the latest Open High Low Close Volume data for the specified instrument.
```rust
let response = client.futures_ohlcv_latest(GetMarketFuturesOhlcvInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
    time_interval: None,
});
```
# batch_historical_ent_1
Retrieves the historical time series open interest for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ent_1(GetMarketFuturesOpenInterestExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ent_2
Retrieves the latest open interest for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ent_2(GetMarketFuturesOpenInterestExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
});
```
# futures_open_interest_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_open_interest_information(GetMarketFuturesOpenInterestInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_open_interest_historical
Retrieves the historical time series open interest for the specified instrument and exchange(s).
```rust
let response = client.futures_open_interest_historical(GetMarketFuturesOpenInterestInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# futures_open_interest_latest
Retrieves the latest open interest for the specified instrument.
```rust
let response = client.futures_open_interest_latest(GetMarketFuturesOpenInterestInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# futures_order_book_events_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_order_book_events_information(GetMarketFuturesOrderBookEventsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_order_book_events_historical
Retrieves the historical time series order book events (bid and ask) for the specified instrument and exchange(s).

Note: This endpoint returns a maximum of 1 hour of historical data per request.  The parameters startDate and endDate can be used to specify any arbitrary time range.
```rust
let response = client.futures_order_book_events_historical(GetMarketFuturesOrderBookEventsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# futures_order_book_snapshots_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_order_book_snapshots_information(GetMarketFuturesOrderBookSnapshotsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_order_book_snapshots_historical
Retrieves the historical time series order book snapshots (bid and ask) for the specified instrument and exchange(s).

Note: This endpoint returns a maximum of 10 minutes of historical data per request.  The parameters startDate and endDate can be used to specify any arbitrary time range.
```rust
let response = client.futures_order_book_snapshots_historical(GetMarketFuturesOrderBookSnapshotsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    timestamp: None,
});
```
# futures_tickers_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_tickers_information(GetMarketFuturesTickersInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_tickers_historical
Retrieves the historical time series tickers for the specified instrument and exchange(s).
```rust
let response = client.futures_tickers_historical(GetMarketFuturesTickersInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# futures_tickers_latest
Retrieves the latest tickers for the specified instrument and exchange(s).
```rust
let response = client.futures_tickers_latest(GetMarketFuturesTickersInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# futures_trades_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.futures_trades_information(GetMarketFuturesTradesInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# futures_trades_historical
Retrieves the historical (time series) trade data for the specified instrument.

Note: This endpoint returns a max of 1 hour historical data per request. In order to get more than 1 hour you must use the startDate & endDate parameters to move the time frame window to get the next n hours/days/months of data.
```rust
let response = client.futures_trades_historical(GetMarketFuturesTradesInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# market_metrics_exchanges_volumes_historical
Retrieves the total volume traded by the exchanges in USD.
```rust
let response = client.market_metrics_exchanges_volumes_historical(GetMarketMetricsExchangesVolumesHistoricalRequest {
    direction: None,
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# market_metrics_exchanges_volumes_latest
Retrieves the total volume traded by the exchanges in USD over a rolling 24h period, updated hourly. The timestamp returned represents the beginning of the daily bar, following the same approach as OHLCV.
```rust
let response = client.market_metrics_exchanges_volumes_latest(GetMarketMetricsExchangesVolumesLatestRequest {
    direction: None,
    exchange: None,
    time_format: None,
});
```
# market_metrics_exchanges_assets_volumes_historical
Retrieves the daily volume of assets on each exchange.

***Note**: This endpoint excludes data from LMAX.
```rust
let response = client.market_metrics_exchanges_assets_volumes_historical(GetMarketMetricsExchangesExchangeAssetsVolumesHistoricalRequest {
    exchange: "string".to_string(),
    asset: None,
    direction: None,
    end_date: None,
    quote_volume: None,
    start_date: None,
    time_format: None,
});
```
# market_metrics_exchanges_assets_volumes_latest
Retrieves the daily volume of assets on each exchange over a rolling 24h period, updated hourly. The timestamp returned represents the beginning of the daily bar, following the same approach as OHLCV. **Note**: This endpoint excludes data from LMAX.
```rust
let response = client.market_metrics_exchanges_assets_volumes_latest(GetMarketMetricsExchangesExchangeAssetsVolumesLatestRequest {
    exchange: "string".to_string(),
    asset: None,
    curated_assets: None,
    direction: None,
    quote_volume: None,
    time_format: None,
});
```
# market_metrics_exchanges_pairs_volumes_historical
Retrieves the daily volume of pairs on each exchange.
```rust
let response = client.market_metrics_exchanges_pairs_volumes_historical(GetMarketMetricsExchangesExchangePairsVolumesHistoricalRequest {
    exchange: "string".to_string(),
    direction: None,
    end_date: None,
    pair: None,
    start_date: None,
    time_format: None,
});
```
# market_metrics_exchanges_pairs_volumes_latest
Retrieves the daily volume of pairs on each exchange over a rolling 24h period, updated hourly. The timestamp returned represents the beginning of the daily bar, following the same approach as OHLCV.
```rust
let response = client.market_metrics_exchanges_pairs_volumes_latest(GetMarketMetricsExchangesExchangePairsVolumesLatestRequest {
    exchange: "string".to_string(),
    direction: None,
    pair: None,
    time_format: None,
});
```
# implied_yield_latest
Retrieves the implied yield of all available non-perpetual contracts for an asset on an exchange.

***Note**: Implied yield is only calculated for instruments which have not expired yet.
```rust
let response = client.implied_yield_latest(GetMarketMetricsAssetImpliedYieldLatestRequest {
    asset: "string".to_string(),
    futures_exchange: "string".to_string(),
    spot_exchange: "string".to_string(),
    time_format: None,
});
```
# market_metrics_asset_supply_historical
Retrieves historical supply data for blockchains and tokens from October 2019 forward. ***Note**: We get supply values directly from our data/nodes. Blockchains included in our supply data are: Ethereum, Bitcoin and Litecoin.
```rust
let response = client.market_metrics_asset_supply_historical(GetMarketMetricsAssetSupplyHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# market_metrics_asset_supply_latest
Retrieves latest supply data for blockchains and tokens.***Note**: We get supply values directly from our data/nodes. Blockchains included in our supply data are: Ethereum, Bitcoin and Litecoin.
```rust
let response = client.market_metrics_asset_supply_latest(GetMarketMetricsAssetSupplyLatestRequest {
    asset: "string".to_string(),
});
```
# implied_yield_historical
Retrieves the historical basis APR for an instrument on an exchange.

***Note**: Implied yield is only calculated for instruments which have not expired yet.
```rust
let response = client.implied_yield_historical(GetMarketMetricsInstrumentImpliedYieldHistoricalRequest {
    instrument: "string".to_string(),
    futures_exchange: "string".to_string(),
    spot_exchange: "string".to_string(),
    time_format: None,
});
```
# market_asset_metrics_historical_nvt_pro
Get the NVT metric for a specific asset symbol over a period of time.
```rust
let response = client.market_asset_metrics_historical_nvt_pro(GetMarketMetricsSymbolHistoricalNvtRequest {
    symbol: "string".to_string(),
    end_date: None,
    start_date: None,
    time_frame: None,
});
```
# market_asset_metrics_historical_sharpe_pro
Get the Sharpe metric for a specific asset symbol over a period of time.
```rust
let response = client.market_asset_metrics_historical_sharpe_pro(GetMarketMetricsSymbolHistoricalSharpeRequest {
    symbol: "string".to_string(),
    end_date: None,
    start_date: None,
    time_frame: None,
});
```
# market_asset_metrics_historical_stock_to_flow_pro
Get the Stock to Flow metric for a specific asset symbol over a period of time.
```rust
let response = client.market_asset_metrics_historical_stock_to_flow_pro(GetMarketMetricsSymbolHistoricalStockToFlowRequest {
    symbol: "string".to_string(),
    end_date: None,
    start_date: None,
    time_frame: None,
});
```
# market_asset_metrics_latest
Get advanced metrics like NVT, Sharpe and Stock to Flow for a specific asset symbol.
```rust
let response = client.market_asset_metrics_latest(GetMarketMetricsSymbolLatestRequest {
    symbol: "string".to_string(),
});
```
# options_exchanges_pairs
Retrieves information about supported exchange & instruments for these types of data:
• liquidations
• ohlcv (open-high-low-close-volume)
• open interest
• order book snapshot
• order book event
• ticker
• trade
```rust
let response = client.options_exchanges_pairs(GetMarketOptionsExchangesInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    instrument: None,
    size: None,
    time_format: None,
});
```
# options_exchanges_reference
Retrieves reference information for each of the pairs.
```rust
let response = client.options_exchanges_reference(GetMarketOptionsExchangesReferenceRequest {
    end_date: None,
    exchange: None,
    include_inactive: None,
    include_original_reference: None,
    instrument: None,
    size: None,
    start_date: None,
});
```
# options_liquidations_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_liquidations_information(GetMarketOptionsLiquidationsInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    show_only_traded_instruments: None,
    time_format: None,
});
```
# options_liquidations_historical
Retrieves the historical time series liquidations for the specified instrument and exchange(s).
```rust
let response = client.options_liquidations_historical(GetMarketOptionsLiquidationsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# options_liquidations_latest
Retrieves the latest liquidations for the specified instrument and exchange(s).
```rust
let response = client.options_liquidations_latest(GetMarketOptionsLiquidationsInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# batch_historical_ond_1
Retrieves the historical time series OHLCV data for the specified exchange and instrument(s). **Note:** Block trades are included in the calculation of OHCLV for Deribit.
```rust
let response = client.batch_historical_ond_1(GetMarketOptionsOhlcvExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ond_1
Retrieves the latest Open High Low Close Volume data for the specified exchange. Instruments with no activity in the past 24 hours are ignored. **Note:** Block trades are included in the calculation of OHCLV for Deribit.
```rust
let response = client.latest_by_exchange_ond_1(GetMarketOptionsOhlcvExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
    time_interval: None,
});
```
# options_ohlcv_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_ohlcv_information(GetMarketOptionsOhlcvInformationRequest {
    exchange: None,
    include_inactive: None,
    show_only_traded_instruments: None,
    time_format: None,
    time_interval: None,
});
```
# options_ohlcv_historical
Retrieves the historical time series OHLCV data for the specified instrument and exchange(s). **Note:** Block trades are included in the calculation of OHCLV for Deribit.
```rust
let response = client.options_ohlcv_historical(GetMarketOptionsOhlcvInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# options_ohlcv_latest
Retrieves the latest Open High Low Close Volume data for the specified instrument. **Note:** Block trades are included in the calculation of OHCLV for Deribit.
```rust
let response = client.options_ohlcv_latest(GetMarketOptionsOhlcvInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
    time_interval: None,
});
```
# batch_historical_ent_2
Retrieves the historical time series open interest for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ent_2(GetMarketOptionsOpenInterestExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ent_3
Retrieves the latest open interest for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ent_3(GetMarketOptionsOpenInterestExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
});
```
# options_open_interest_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_open_interest_information(GetMarketOptionsOpenInterestInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# options_open_interest_historical
Retrieves the historical time series open interest for the specified instrument and exchange(s).
```rust
let response = client.options_open_interest_historical(GetMarketOptionsOpenInterestInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# options_open_interest_latest
Retrieves the latest open interest for the specified instrument.
```rust
let response = client.options_open_interest_latest(GetMarketOptionsOpenInterestInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# options_order_book_events_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_order_book_events_information(GetMarketOptionsOrderBookEventsInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    time_format: None,
});
```
# options_order_book_events_historical
Retrieves the historical time series order book events (bid and ask) for the specified instrument and exchange(s).
```rust
let response = client.options_order_book_events_historical(GetMarketOptionsOrderBookEventsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# options_order_book_snapshots_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_order_book_snapshots_information(GetMarketOptionsOrderBookSnapshotsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# options_order_book_snapshots_historical
Retrieves the historical time series order book snapshots (bid and ask) for the specified instrument and exchange(s).
```rust
let response = client.options_order_book_snapshots_historical(GetMarketOptionsOrderBookSnapshotsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    timestamp: None,
});
```
# options_tickers_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_tickers_information(GetMarketOptionsTickersInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    time_format: None,
});
```
# options_tickers_historical
Retrieves the historical time series tickers for the specified instrument and exchange(s).
```rust
let response = client.options_tickers_historical(GetMarketOptionsTickersInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# options_tickers_latest
Retrieves the latest tickers for the specified instrument and exchange(s).
```rust
let response = client.options_tickers_latest(GetMarketOptionsTickersInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    time_format: None,
});
```
# options_trades_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.options_trades_information(GetMarketOptionsTradesInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    show_only_traded_instruments: None,
    time_format: None,
});
```
# options_trades_historical
Retrieves the historical (time series) trade data for the specified instrument.
```rust
let response = client.options_trades_historical(GetMarketOptionsTradesInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# get_market_pairs
Retrieves information about supported exchange-pairs for these types of data:
• ohlcv (open-high-low-close-volume)
• order book snapshot
• order book event
• ticker
• trade
```rust
let response = client.get_market_pairs(GetMarketPairsRequest {
    exchange: None,
    include_dates: None,
    pair: None,
    time_format: None,
});
```
# market_rankings_historical
Retrieves the top ranked assets, tokens and native coins, by a specific metric.
```rust
let response = client.market_rankings_historical(GetMarketRankingsHistoricalRequest {
    date: "string".to_string(),
    page: None,
    size: None,
});
```
# market_rankings
Retrieves the top ranked assets, tokens and native coins, by a specific metric.
```rust
let response = client.market_rankings(GetMarketRankingsLatestRequest {
    allowed_assets: None,
    direction: None,
    page: None,
    size: None,
    sort_type: None,
    type_query: None,
});
```
# spot_exchanges_reference
Retrieves reference information for each of the pairs.
```rust
let data = GetMarketSpotExchangesReferenceBody {raw_body: None};
let response = client.spot_exchanges_reference(GetMarketSpotExchangesReferenceRequest {
    data: data,
    exchange: None,
    include_inactive: None,
    include_original_reference: None,
    pair: None,
});
```
# batch_historical_ond
Retrieves the historical (time series) open-high-low-close for the specified exchange and pairs. **Note:** The timestamp returned refers to the start of the candle.
```rust
let response = client.batch_historical_ond(GetMarketSpotOhlcvExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    pair: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange
Retrieves the latest open-high-low-close for the specified exchange.
Pairs with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange(GetMarketSpotOhlcvExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    pair: None,
    time_format: None,
    time_interval: None,
});
```
# get_market_ohlc_information
Retrieves information about supported exchange-pairs for ohlcv. Includes data for both centralized and decentralized exchange data.
```rust
let response = client.get_market_ohlc_information(GetMarketSpotOhlcvInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    time_format: None,
    time_interval: None,
});
```
# get_historical_ohlc
Retrieves the historical (time series) open-high-low-close for the specified pair. **Note:** The timestamp returned refers to the start of the candle.
```rust
let response = client.get_historical_ohlc(GetMarketSpotOhlcvPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# get_ohlcv_pair_latest
Retrieves the latest open-high-low-close for the specified pair.
```rust
let response = client.get_ohlcv_pair_latest(GetMarketSpotOhlcvPairLatestRequest {
    pair: "string".to_string(),
    exchange: None,
    time_format: None,
    time_interval: None,
});
```
# order_book_updates
Retrieves order book update/events (bid and ask). The volume of this data is very large for many exchanges and pairs.
```rust
let response = client.order_book_updates(GetMarketSpotOrderBookEventsPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# snapshots_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.snapshots_information(GetMarketSpotOrderBookSnapshotsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# get_market_orders
Retrieves the order book data for the specified pair.
```rust
let response = client.get_market_orders(GetMarketSpotOrderBookSnapshotsPairHistoricalRequest {
    pair: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    max_level: None,
    start_date: None,
    time_format: None,
    timestamp: None,
});
```
# spot_prices_assets_information
Retrieves the list of all the available supported assets and time range availability.
```rust
let response = client.spot_prices_assets_information(GetMarketSpotPricesAssetsInformationRequest {
    asset: None,
    include_inactive: None,
    page: None,
    time_format: None,
});
```
# spot_prices_assets_historical
Retrieves the historical price for the specified asset - the price is calculated across all exchanges which supports this asset, including all cross rates pairs.

Price of an asset is calculated as the VWAP (Volume Weighted Average Price) across all exchanges supporting this asset, with a 1 bar lookback period.
```rust
let response = client.spot_prices_assets_historical(GetMarketSpotPricesAssetsAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_prices_assets_latest
Retrieves the latest price for the specified asset - the global price is calculated across all exchanges which supports this asset, including all cross rates pairs.

Price of an asset is calculated as the VWAP (Volume Weighted Average Price) across all exchanges supporting this asset, with a 1 bar lookback period.
```rust
let response = client.spot_prices_assets_latest(GetMarketSpotPricesAssetsAssetLatestRequest {
    asset: "string".to_string(),
    time_format: None,
});
```
# spot_prices_pairs_information
Retrieves the list of all the available supported pairs and time range availability.
```rust
let response = client.spot_prices_pairs_information(GetMarketSpotPricesPairsInformationRequest {
    include_inactive: None,
    pair: None,
    time_format: None,
});
```
# spot_prices_pairs_historical
Retrieves the historical price for the specified pair - the price is calculated across all exchanges which supports this pair, including all cross rates pairs.

Price of a pair is calculated as the VWAP (Volume Weighted Average Price) across all exchanges supporting this pair, with a 1 bar lookback period. If the parameter exchange is specified, the data returned is the VWAP for that pair on that exchange.
```rust
let response = client.spot_prices_pairs_historical(GetMarketSpotPricesPairsPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    include_cross_rates: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_prices_pairs_latest
Retrieves the latest price for the specified pair - the price is calculated across all exchanges which supports this pair.

Price of a pair is calculated as the VWAP (Volume Weighted Average Price) across all exchanges supporting this pair, with a 1 bar lookback period.

If the parameter exchange is specified, the data returned is the price for that pair on that exchange.
```rust
let response = client.spot_prices_pairs_latest(GetMarketSpotPricesPairsPairLatestRequest {
    pair: "string".to_string(),
    exchange: None,
    include_cross_rates: None,
    time_format: None,
});
```
# spot_reference_quotes_historical
Retrieves the historical reference quotes for the specified pair.

The default granularity is up to 1 second intervals (depending on the [exchange](https://docs.amberdata.io/docs/reference-quote#availability)).
```rust
let response = client.spot_reference_quotes_historical(GetMarketSpotReferenceQuotesPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: "1970-01-01T00:00:00".to_string(),
    start_date: "1970-01-01T00:00:00".to_string(),
    include_sources: None,
    sources: None,
    time_format: None,
});
```
# get_all_market_tickers
Retrieves the list of all available market tickers.
```rust
let response = client.get_all_market_tickers(GetMarketSpotTickersInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# get_market_ticker_pair_historical
Retrieves the historical ticker, bid/ask/mid/last, for the specified pair.
```rust
let response = client.get_market_ticker_pair_historical(GetMarketSpotTickersPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# get_latest_market_ticker
Retrieves the latest market ticker Bid/Ask/Mid/Last for the specified pair.
```rust
let response = client.get_latest_market_ticker(GetMarketSpotTickersPairLatestRequest {
    pair: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# trades
Retrieves the list of all available market trade data sets.
```rust
let response = client.trades(GetMarketSpotTradesInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    time_format: None,
});
```
# market_trades
Retrieves the historical (time series) trade data for the specified pair.
```rust
let response = client.market_trades(GetMarketSpotTradesPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# spot_twap_assets_information
Retrieves the list of all the available supported assets and time range availability.
```rust
let response = client.spot_twap_assets_information(GetMarketSpotTwapAssetsInformationRequest {
    asset: None,
    time_format: None,
});
```
# spot_twap_assets_historical
Retrieves the historical TWAP for the specified asset - this is the global TWAP across all exchanges which supports this asset, including all cross rates pairs.

Price is calculated as a time weighted moving average across all exchanges.
```rust
let response = client.spot_twap_assets_historical(GetMarketSpotTwapAssetsAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_twap_assets_latest
Retrieves the latest TWAP for the specified asset  - this is the global TWAP across all exchanges which supports this asset, including all cross rates pairs, based on minutely data.

TWAP is calculated as a time weighted moving average across all exchanges.
```rust
let response = client.spot_twap_assets_latest(GetMarketSpotTwapAssetsAssetLatestRequest {
    asset: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# spot_twap_pairs_information
Retrieves the list of all the available supported pairs and time range availability.
```rust
let response = client.spot_twap_pairs_information(GetMarketSpotTwapPairsInformationRequest {
    pair: None,
    time_format: None,
});
```
# spot_twap_pairs_historical
Retrieves the historical TWAP for the specified pair - this is the global TWAP across all exchanges which supports this pair, including all cross rates pairs.

Price is calculated as a time weighted moving average across all exchanges.

If the parameter `exchange` is specified, the data returned is the TWAP for that pair on that exchange.
```rust
let response = client.spot_twap_pairs_historical(GetMarketSpotTwapPairsPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    include_cross_rates: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_twap_pairs_latest
Retrieves the latest TWAP for the specified pair - this is the global TWAP across all exchanges which supports this pair, based on minutely data.

Price is calculated as a time weighted moving average across all exchanges.

If the parameter `exchange` is specified, the data returned is the TWAP for that pair on that exchange.
```rust
let response = client.spot_twap_pairs_latest(GetMarketSpotTwapPairsPairLatestRequest {
    pair: "string".to_string(),
    exchange: None,
    include_cross_rates: None,
    lookback_period: None,
    time_format: None,
});
```
# spot_vwap_assets_information
Retrieves the list of all the available supported assets and time range availability.
```rust
let response = client.spot_vwap_assets_information(GetMarketSpotVwapAssetsInformationRequest {
    asset: None,
    time_format: None,
});
```
# spot_vwap_assets_historical
Retrieves the historical VWAP for the specified asset - this is the global VWAP across all exchanges which supports this asset, including all cross rates pairs.

Price is calculated as a volume weighted moving average across all exchanges.
```rust
let response = client.spot_vwap_assets_historical(GetMarketSpotVwapAssetsAssetHistoricalRequest {
    asset: "string".to_string(),
    end_date: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_vwap_assets_latest
Retrieves the latest VWAP for the specified asset  - this is the global VWAP across all exchanges which supports this asset, including all cross rates pairs, based on minutely data.

VWAP is calculated as a volume weighted moving average across all exchanges.
```rust
let response = client.spot_vwap_assets_latest(GetMarketSpotVwapAssetsAssetLatestRequest {
    asset: "string".to_string(),
    lookback_period: None,
    time_format: None,
});
```
# spot_vwap_pairs_information
Retrieves the list of all the available supported pairs and time range availability.
```rust
let response = client.spot_vwap_pairs_information(GetMarketSpotVwapPairsInformationRequest {
    pair: None,
    time_format: None,
});
```
# spot_vwap_pairs_historical
Retrieves the historical VWAP for the specified pair - this is the global VWAP across all exchanges which supports this pair, including all cross rates pairs.

Price is calculated as a volume weighted moving average across all exchanges.

If the parameter `exchange` is specified, the data returned is the VWAP for that pair on that exchange.
```rust
let response = client.spot_vwap_pairs_historical(GetMarketSpotVwapPairsPairHistoricalRequest {
    pair: "string".to_string(),
    end_date: None,
    exchange: None,
    include_cross_rates: None,
    lookback_period: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# spot_vwap_pairs_latest
Retrieves the latest VWAP for the specified pair - this is the global VWAP across all exchanges which supports this pair, based on minutely data.

Price is calculated as a volume weighted moving average across all exchanges.

If the parameter `exchange` is specified, the data returned is the VWAP for that pair on that exchange.
```rust
let response = client.spot_vwap_pairs_latest(GetMarketSpotVwapPairsPairLatestRequest {
    pair: "string".to_string(),
    exchange: None,
    include_cross_rates: None,
    lookback_period: None,
    time_format: None,
});
```
# swaps_exchanges_pairs
Retrieves information about supported exchange & pairs for these types of data:
• funding rates
• liquidations
• ohlcv (open-high-low-close-volume)
• open interest
• order book snapshot
• order book event
• ticker
• trade
```rust
let response = client.swaps_exchanges_pairs(GetMarketSwapsExchangesInformationRequest {
    exchange: None,
    include_dates: None,
    include_inactive: None,
    instrument: None,
    size: None,
    time_format: None,
});
```
# swaps_exchanges_reference
Retrieves reference information for each of the pairs.
```rust
let response = client.swaps_exchanges_reference(GetMarketSwapsExchangesReferenceRequest {
    end_date: None,
    exchange: None,
    include_inactive: None,
    include_original_reference: None,
    instrument: None,
    size: None,
    start_date: None,
});
```
# batch_historical_ent_3
Retrieves the historical time series funding rates for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ent_3(GetMarketSwapsFundingRatesExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# latest_by_exchange_ent_1
Retrieves the latest funding rates for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ent_1(GetMarketSwapsFundingRatesExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
});
```
# swaps_funding_rates_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_funding_rates_information(GetMarketSwapsFundingRatesInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_funding_rates_historical
Retrieves the historical time series funding rates for the specified instrument and exchange(s).
```rust
let response = client.swaps_funding_rates_historical(GetMarketSwapsFundingRatesInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# swaps_funding_rates_latest
Retrieves the latest funding rates for the specified instrument.
```rust
let response = client.swaps_funding_rates_latest(GetMarketSwapsFundingRatesInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# swaps_insurance_fund_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_insurance_fund_information(GetMarketSwapsInsuranceFundInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_insurance_fund_historical
Retrieves the historical insurance fund for the specified instrument and exchange(s).
```rust
let response = client.swaps_insurance_fund_historical(GetMarketSwapsInsuranceFundInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# swaps_insurance_fund_latest
Retrieves the latest Insurance Fund for the specified instrument and exchange(s).
```rust
let response = client.swaps_insurance_fund_latest(GetMarketSwapsInsuranceFundInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# swaps_liquidations_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_liquidations_information(GetMarketSwapsLiquidationsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_liquidations_historical
Retrieves the historical time series liquidations for the specified instrument and exchange(s).
```rust
let response = client.swaps_liquidations_historical(GetMarketSwapsLiquidationsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# swaps_liquidations_latest
Retrieves the latest liquidations for the specified instrument and exchange(s).
```rust
let response = client.swaps_liquidations_latest(GetMarketSwapsLiquidationsInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# batch_historical_ond_2
Retrieves the historical time series OHLCV data for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ond_2(GetMarketSwapsOhlcvExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_ond
Retrieves the latest Open High Low Close Volume data for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_ond(GetMarketSwapsOhlcvExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
    time_interval: None,
});
```
# swaps_ohlcv_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_ohlcv_information(GetMarketSwapsOhlcvInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_ohlcv_historical
Retrieves the historical time series OHLCV data for the specified instrument and exchange(s).
```rust
let response = client.swaps_ohlcv_historical(GetMarketSwapsOhlcvInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# swaps_ohlcv_latest
Retrieves the latest Open High Low Close Volume data for the specified instrument.
```rust
let response = client.swaps_ohlcv_latest(GetMarketSwapsOhlcvInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
    time_interval: None,
});
```
# batch_historical_ent_4
Retrieves the historical time series open interest for the specified exchange and instrument(s).
```rust
let response = client.batch_historical_ent_4(GetMarketSwapsOpenInterestExchangeExchangeHistoricalRequest {
    exchange: "string".to_string(),
    instrument: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# latest_by_exchange_ent_4
Retrieves the latest open interest for the specified exchange.
Instruments with no activity in the past 24 hours are ignored.
```rust
let response = client.latest_by_exchange_ent_4(GetMarketSwapsOpenInterestExchangeExchangeLatestRequest {
    exchange: "string".to_string(),
    instrument: None,
    time_format: None,
});
```
# swaps_open_interest_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_open_interest_information(GetMarketSwapsOpenInterestInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_open_interest_historical
Retrieves the historical time series open interest for the specified instrument and exchange(s).
```rust
let response = client.swaps_open_interest_historical(GetMarketSwapsOpenInterestInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# swaps_open_interest_latest
Retrieves the latest open interest for the specified instrument.
```rust
let response = client.swaps_open_interest_latest(GetMarketSwapsOpenInterestInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# swaps_order_book_events_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_order_book_events_information(GetMarketSwapsOrderBookEventsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_order_book_events_historical
Retrieves the historical time series order book events (bid and ask) for the specified instrument and exchange(s).

Note: This endpoint returns a maximum of 1 hour of historical data per request. The parameters startDate and endDate can be used to specify any arbitrary time range.
```rust
let response = client.swaps_order_book_events_historical(GetMarketSwapsOrderBookEventsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# swaps_order_book_snapshots_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_order_book_snapshots_information(GetMarketSwapsOrderBookSnapshotsInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_order_book_snapshots_historical
Retrieves the historical time series order book snapshots (bid and ask) for the specified instrument and exchange(s).

Note: This endpoint returns a maximum of 10 minutes of historical data per request.  The parameters startDate and endDate can be used to specify any arbitrary time range.
```rust
let response = client.swaps_order_book_snapshots_historical(GetMarketSwapsOrderBookSnapshotsInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    timestamp: None,
});
```
# swaps_tickers_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_tickers_information(GetMarketSwapsTickersInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_tickers_historical
Retrieves the historical time series tickers for the specified instrument and exchange(s).
```rust
let response = client.swaps_tickers_historical(GetMarketSwapsTickersInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    end_date: None,
    exchange: None,
    start_date: None,
    time_format: None,
});
```
# swaps_tickers_latest
Retrieves the latest liquidations for the specified instrument and exchange(s).
```rust
let response = client.swaps_tickers_latest(GetMarketSwapsTickersInstrumentLatestRequest {
    instrument: "string".to_string(),
    exchange: None,
    time_format: None,
});
```
# swaps_trades_information
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_trades_information(GetMarketSwapsTradesInformationRequest {
    exchange: None,
    include_inactive: None,
    time_format: None,
});
```
# swaps_trades_historical
Retrieves the list of all the available exchanges, supported instruments and time range availability.
```rust
let response = client.swaps_trades_historical(GetMarketSwapsTradesInstrumentHistoricalRequest {
    instrument: "string".to_string(),
    exchange: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
});
```
# get_historical_token_price
Retrieves the historical prices (and other market information) for the specified token from October 2019 forward.

Note: This endpoint returns a max of 6 months of historical data. In order to get more than 6 months you must use the `startDate`  & `endDate` parameters to move the time frame window to get the next ***n*** days/months of data.
```rust
let response = client.get_historical_token_price(GetMarketTokensPricesSymbolHistoricalRequest {
    symbol: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# get_current_token_price
Retrieves the latest price (and other market information) for the specified token.
Tokens with no activity in the past 24 hours are ignored.
```rust
let response = client.get_current_token_price(GetMarketTokensPricesSymbolLatestRequest {
    symbol: "string".to_string(),
    time_format: None,
});
```
# get_4_byte_signature
Retrieves detailed information about the specified signature hash.
```rust
let response = client.get_4_byte_signature(GetSignaturesHashRequest {
    hash: "string".to_string(),
});
```
# token_metrics_historical
Retrieves the historical metrics for the specified ERC token symbol.
```rust
let response = client.token_metrics_historical(GetTokensMetricsSymbolHistoricalRequest {
    symbol: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# token_metrics_latest
Retrieves the latest metrics for the specified ERC token symbol.
```rust
let response = client.token_metrics_latest(GetTokensMetricsSymbolLatestRequest {
    symbol: "string".to_string(),
    time_frame: None,
});
```
# get_token_rankings
Retrieves the top ranked Ethereum tokens by a specific metric.
```rust
let response = client.get_token_rankings(GetTokensRankingsRequest {
    direction: None,
    page: None,
    size: None,
    sort_type: None,
    time_interval: None,
    type_query: None,
});
```
# token_rankings_historical
Retrieves the top ranked Ethereum tokens by a specific metric, with a lookback window. Useful for viewing token trends.
```rust
let response = client.token_rankings_historical(GetTokensRankingsHistoricalRequest {
    direction: None,
    end_date: None,
    sort_type: None,
    start_date: None,
    top_n: None,
});
```
# get_historical_token_holders
Retrieves the historical (time series) token holders for the specified token address.
```rust
let response = client.get_historical_token_holders(GetTokensHashHoldersHistoricalRequest {
    hash: "string".to_string(),
    holder_addresses: "string".to_string(),
    currency: None,
    include_price: None,
    time_format: None,
    time_frame: None,
});
```
# get_token_holders
Retrieves the token holders for the specified address.
```rust
let response = client.get_token_holders(GetTokensHashHoldersLatestRequest {
    hash: "string".to_string(),
    currency: None,
    include_price: None,
    num_tokens: None,
    num_tokens_gt: None,
    num_tokens_gte: None,
    num_tokens_lt: None,
    num_tokens_lte: None,
    page: None,
    size: None,
    time_format: None,
    timestamp_gt: None,
    timestamp_gte: None,
    timestamp_lt: None,
    timestamp_lte: None,
    token_address: None,
});
```
# get_historical_token_supply
Retrieves the historical token supplies (and derivatives) for the specified address.

Note: This endpoint returns a max of 6 months of historical data. In order to get more than 6 months you must use the `startDate`  & `endDate` parameters to move the time frame window to get the next ***n*** days/months of data.
```rust
let response = client.get_historical_token_supply(GetTokensHashSuppliesHistoricalRequest {
    hash: "string".to_string(),
    end_date: None,
    start_date: None,
    time_format: None,
    time_interval: None,
});
```
# get_token_supply_latest
Retrieves the latest token supplies (and derivatives) for the specified address.
```rust
let response = client.get_token_supply_latest(GetTokensHashSuppliesLatestRequest {
    hash: "string".to_string(),
});
```
# get_token_transfers
Retrieves all token transfers involving the specified token address.
```rust
let response = client.get_token_transfers(GetTokensHashTransfersRequest {
    hash: "string".to_string(),
    amount: None,
    amount_gt: None,
    amount_gte: None,
    amount_lt: None,
    amount_lte: None,
    block_number: None,
    currency: None,
    decode_transactions: None,
    direction: None,
    end_date: None,
    include_price: None,
    page: None,
    size: None,
    start_date: None,
    time_format: None,
    token_address: None,
    transaction_hash: None,
    validation_method: None,
});
```
# get_token_velocity
Retrieves the historical velocity for the specified address.
```rust
let response = client.get_token_velocity(GetTokensHashVelocityRequest {
    hash: "string".to_string(),
    time_format: None,
    time_frame: None,
});
```
# get_token_volume
Retrieves the historical number of transfers for the specified address.
```rust
let response = client.get_token_volume(GetTokensHashVolumeRequest {
    hash: "string".to_string(),
    time_format: None,
    time_frame: None,
});
```
# get_all_transactions
Retrieves all transactions matching the specified filters.
```rust
let response = client.get_all_transactions(GetTransactionsRequest {
    currency: None,
    decode_transactions: None,
    end_date: None,
    include_functions: None,
    include_logs: None,
    include_price: None,
    include_token_transfers: None,
    size: None,
    start_date: None,
    status: None,
    validation_method: None,
});
```
# mempool_all
Retrieves the mempool for a specific blockchain matching the specified filters. Default results are for Ethereum, however, please make sure your "x-amberdata-blockchain-id" header matches the blockchain you want to retrieve data for.

*Note: Mempool data is available for Ethereum, Bitcoin or Litecoin.
```rust
let response = client.mempool_all(GetTransactions2Request {
    currency: None,
    end_date: None,
    include_functions: None,
    include_logs: None,
    include_price: None,
    include_token_transfers: None,
    page: None,
    size: None,
    start_date: None,
    status: None,
    validation_method: None,
});
```
# transactions_metrics_historical
Get metrics for historical confirmed transactions for a given blockchain.
Default metrics are for Ethereum over a 1d tick / 365d lookback period. Changing the header blockchain ID will return that blockchains metrics.
```rust
let response = client.transactions_metrics_historical(GetTransactionsMetricsHistoricalRequest {
    end_date: None,
    start_date: None,
    time_format: None,
    time_frame: None,
});
```
# transactions_metrics
Get metrics for recent confirmed transactions for a given blockchain.
Default metrics are for Ethereum over a 24h period. Changing the header blockchain ID will return that blockchains metrics.
```rust
let response = client.transactions_metrics(GetTransactionsMetricsLatestRequest {
    include_price: None,
    time_format: None,
});
```
# get_historical_transaction_volume
Retrieves the historical (time series) volume of transactions.
```rust
let response = client.get_historical_transaction_volume(GetTransactionsVolumeRequest {
    time_format: None,
    time_frame: None,
});
```
# get_transaction
Retrieves the transaction information for the specified hash.
```rust
let response = client.get_transaction(GetTransactionsHashRequest {
    hash: "string".to_string(),
    decode_transactions: None,
    include_functions: None,
    include_logs: None,
    include_price: None,
    include_token_transfers: None,
    validation_method: None,
});
```
# transaction_token_transfers
Retrieves the token transfers that took place in the specified transaction.
```rust
let response = client.transaction_token_transfers(GetTransactionsHashTokenTransfersRequest {
    hash: "string".to_string(),
});
```
# uncle_all
Retrieves all the uncles within the specified range.
```rust
let response = client.uncle_all(GetUnclesRequest {
    page: None,
    size: None,
});
```
# uncle_single
Retrieves the uncle specified by its hash.
```rust
let response = client.uncle_single(GetUnclesHashRequest {
    hash: "string".to_string(),
});
```