zklighter-perps 1.0.188 → 1.0.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +6 -0
- package/apis/AccountApi.ts +2 -1
- package/apis/CandlestickApi.ts +114 -0
- package/apis/GeckoApi.ts +46 -0
- package/models/Account.ts +9 -0
- package/models/ApiKey.ts +9 -0
- package/models/Candle.ts +160 -0
- package/models/Candles.ts +94 -0
- package/models/Candlestick.ts +9 -0
- package/models/DetailedAccount.ts +9 -0
- package/models/EnrichedTx.ts +9 -0
- package/models/GeckoTicker.ts +151 -0
- package/models/GeckoTickers.ts +68 -0
- package/models/LiqTrade.ts +9 -0
- package/models/Order.ts +9 -0
- package/models/OrderBookDepthWithBeginNonce.ts +104 -0
- package/models/PublicPoolShare.ts +10 -1
- package/models/ReqGetCandles.ts +123 -0
- package/models/ReqGetPublicPoolsMetadata.ts +2 -1
- package/models/SimpleOrder.ts +9 -0
- package/models/Trade.ts +9 -0
- package/models/TransferHistoryItem.ts +5 -1
- package/models/Tx.ts +9 -0
- package/models/index.ts +6 -0
- package/openapi.json +492 -12
- package/package.json +1 -1
package/openapi.json
CHANGED
|
@@ -867,6 +867,92 @@
|
|
|
867
867
|
"description": "Get if next bridge is fast"
|
|
868
868
|
}
|
|
869
869
|
},
|
|
870
|
+
"/api/v1/candles": {
|
|
871
|
+
"get": {
|
|
872
|
+
"summary": "candles",
|
|
873
|
+
"operationId": "candles",
|
|
874
|
+
"responses": {
|
|
875
|
+
"200": {
|
|
876
|
+
"description": "A successful response.",
|
|
877
|
+
"schema": {
|
|
878
|
+
"$ref": "#/definitions/Candles"
|
|
879
|
+
}
|
|
880
|
+
},
|
|
881
|
+
"400": {
|
|
882
|
+
"description": "Bad request",
|
|
883
|
+
"schema": {
|
|
884
|
+
"$ref": "#/definitions/ResultCode"
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
"parameters": [
|
|
889
|
+
{
|
|
890
|
+
"name": "market_id",
|
|
891
|
+
"in": "query",
|
|
892
|
+
"required": true,
|
|
893
|
+
"type": "integer",
|
|
894
|
+
"format": "int16"
|
|
895
|
+
},
|
|
896
|
+
{
|
|
897
|
+
"name": "resolution",
|
|
898
|
+
"in": "query",
|
|
899
|
+
"required": true,
|
|
900
|
+
"type": "string",
|
|
901
|
+
"enum": [
|
|
902
|
+
"1m",
|
|
903
|
+
"5m",
|
|
904
|
+
"15m",
|
|
905
|
+
"30m",
|
|
906
|
+
"1h",
|
|
907
|
+
"4h",
|
|
908
|
+
"12h",
|
|
909
|
+
"1d",
|
|
910
|
+
"1w"
|
|
911
|
+
]
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"name": "start_timestamp",
|
|
915
|
+
"in": "query",
|
|
916
|
+
"required": true,
|
|
917
|
+
"type": "integer",
|
|
918
|
+
"format": "int64",
|
|
919
|
+
"minimum": 0,
|
|
920
|
+
"maximum": 5000000000000
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
"name": "end_timestamp",
|
|
924
|
+
"in": "query",
|
|
925
|
+
"required": true,
|
|
926
|
+
"type": "integer",
|
|
927
|
+
"format": "int64",
|
|
928
|
+
"minimum": 0,
|
|
929
|
+
"maximum": 5000000000000
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "count_back",
|
|
933
|
+
"in": "query",
|
|
934
|
+
"required": true,
|
|
935
|
+
"type": "integer",
|
|
936
|
+
"format": "int64"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"name": "set_timestamp_to_end",
|
|
940
|
+
"in": "query",
|
|
941
|
+
"required": false,
|
|
942
|
+
"type": "boolean",
|
|
943
|
+
"format": "boolean",
|
|
944
|
+
"default": "false"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"tags": [
|
|
948
|
+
"candlestick"
|
|
949
|
+
],
|
|
950
|
+
"consumes": [
|
|
951
|
+
"multipart/form-data"
|
|
952
|
+
],
|
|
953
|
+
"description": "Get candles (optimized with shortened fields and smaller response size)"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
870
956
|
"/api/v1/candlesticks": {
|
|
871
957
|
"get": {
|
|
872
958
|
"summary": "candlesticks",
|
|
@@ -1612,6 +1698,38 @@
|
|
|
1612
1698
|
"description": "Coin Gecko Orderbook"
|
|
1613
1699
|
}
|
|
1614
1700
|
},
|
|
1701
|
+
"/api/v1/gecko/tickers": {
|
|
1702
|
+
"get": {
|
|
1703
|
+
"summary": "gecko_tickers",
|
|
1704
|
+
"operationId": "gecko_tickers",
|
|
1705
|
+
"responses": {
|
|
1706
|
+
"200": {
|
|
1707
|
+
"description": "A successful response.",
|
|
1708
|
+
"schema": {
|
|
1709
|
+
"$ref": "#/definitions/GeckoTickers"
|
|
1710
|
+
}
|
|
1711
|
+
},
|
|
1712
|
+
"400": {
|
|
1713
|
+
"description": "Bad request",
|
|
1714
|
+
"schema": {
|
|
1715
|
+
"$ref": "#/definitions/ResultCode"
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"parameters": [
|
|
1720
|
+
{
|
|
1721
|
+
"name": "auth",
|
|
1722
|
+
"in": "header",
|
|
1723
|
+
"required": true,
|
|
1724
|
+
"type": "string"
|
|
1725
|
+
}
|
|
1726
|
+
],
|
|
1727
|
+
"tags": [
|
|
1728
|
+
"gecko"
|
|
1729
|
+
],
|
|
1730
|
+
"description": "Coin Gecko Spot Tickers"
|
|
1731
|
+
}
|
|
1732
|
+
},
|
|
1615
1733
|
"/api/v1/geoLocation": {
|
|
1616
1734
|
"get": {
|
|
1617
1735
|
"summary": "geoLocation",
|
|
@@ -2343,7 +2461,8 @@
|
|
|
2343
2461
|
"all",
|
|
2344
2462
|
"user",
|
|
2345
2463
|
"protocol",
|
|
2346
|
-
"account_index"
|
|
2464
|
+
"account_index",
|
|
2465
|
+
"stake"
|
|
2347
2466
|
]
|
|
2348
2467
|
},
|
|
2349
2468
|
{
|
|
@@ -3512,6 +3631,11 @@
|
|
|
3512
3631
|
"collateral": {
|
|
3513
3632
|
"type": "string",
|
|
3514
3633
|
"example": "46342"
|
|
3634
|
+
},
|
|
3635
|
+
"transaction_time": {
|
|
3636
|
+
"type": "integer",
|
|
3637
|
+
"format": "int64",
|
|
3638
|
+
"example": "1257894000000000"
|
|
3515
3639
|
}
|
|
3516
3640
|
},
|
|
3517
3641
|
"title": "Account",
|
|
@@ -3526,7 +3650,8 @@
|
|
|
3526
3650
|
"pending_order_count",
|
|
3527
3651
|
"available_balance",
|
|
3528
3652
|
"status",
|
|
3529
|
-
"collateral"
|
|
3653
|
+
"collateral",
|
|
3654
|
+
"transaction_time"
|
|
3530
3655
|
]
|
|
3531
3656
|
},
|
|
3532
3657
|
"AccountApiKeys": {
|
|
@@ -4130,6 +4255,11 @@
|
|
|
4130
4255
|
},
|
|
4131
4256
|
"public_key": {
|
|
4132
4257
|
"type": "string"
|
|
4258
|
+
},
|
|
4259
|
+
"transaction_time": {
|
|
4260
|
+
"type": "integer",
|
|
4261
|
+
"format": "int64",
|
|
4262
|
+
"example": "1257894000000000"
|
|
4133
4263
|
}
|
|
4134
4264
|
},
|
|
4135
4265
|
"title": "ApiKey",
|
|
@@ -4137,7 +4267,8 @@
|
|
|
4137
4267
|
"account_index",
|
|
4138
4268
|
"api_key_index",
|
|
4139
4269
|
"nonce",
|
|
4140
|
-
"public_key"
|
|
4270
|
+
"public_key",
|
|
4271
|
+
"transaction_time"
|
|
4141
4272
|
]
|
|
4142
4273
|
},
|
|
4143
4274
|
"ApiToken": {
|
|
@@ -4515,6 +4646,129 @@
|
|
|
4515
4646
|
"networks"
|
|
4516
4647
|
]
|
|
4517
4648
|
},
|
|
4649
|
+
"Candle": {
|
|
4650
|
+
"type": "object",
|
|
4651
|
+
"properties": {
|
|
4652
|
+
"t": {
|
|
4653
|
+
"type": "integer",
|
|
4654
|
+
"format": "int64",
|
|
4655
|
+
"example": "1640995200",
|
|
4656
|
+
"description": " timestamp"
|
|
4657
|
+
},
|
|
4658
|
+
"o": {
|
|
4659
|
+
"type": "number",
|
|
4660
|
+
"format": "double",
|
|
4661
|
+
"example": "3024.66",
|
|
4662
|
+
"description": " open"
|
|
4663
|
+
},
|
|
4664
|
+
"h": {
|
|
4665
|
+
"type": "number",
|
|
4666
|
+
"format": "double",
|
|
4667
|
+
"example": "3034.66",
|
|
4668
|
+
"description": " high"
|
|
4669
|
+
},
|
|
4670
|
+
"l": {
|
|
4671
|
+
"type": "number",
|
|
4672
|
+
"format": "double",
|
|
4673
|
+
"example": "3014.66",
|
|
4674
|
+
"description": " low"
|
|
4675
|
+
},
|
|
4676
|
+
"c": {
|
|
4677
|
+
"type": "number",
|
|
4678
|
+
"format": "double",
|
|
4679
|
+
"example": "3024.66",
|
|
4680
|
+
"description": " close"
|
|
4681
|
+
},
|
|
4682
|
+
"O": {
|
|
4683
|
+
"type": "number",
|
|
4684
|
+
"format": "double",
|
|
4685
|
+
"example": "3024.66",
|
|
4686
|
+
"description": " open_raw"
|
|
4687
|
+
},
|
|
4688
|
+
"H": {
|
|
4689
|
+
"type": "number",
|
|
4690
|
+
"format": "double",
|
|
4691
|
+
"example": "3034.66",
|
|
4692
|
+
"description": " high_raw"
|
|
4693
|
+
},
|
|
4694
|
+
"L": {
|
|
4695
|
+
"type": "number",
|
|
4696
|
+
"format": "double",
|
|
4697
|
+
"example": "3014.66",
|
|
4698
|
+
"description": " low_raw"
|
|
4699
|
+
},
|
|
4700
|
+
"C": {
|
|
4701
|
+
"type": "number",
|
|
4702
|
+
"format": "double",
|
|
4703
|
+
"example": "3024.66",
|
|
4704
|
+
"description": " close_raw"
|
|
4705
|
+
},
|
|
4706
|
+
"v": {
|
|
4707
|
+
"type": "number",
|
|
4708
|
+
"format": "double",
|
|
4709
|
+
"example": "235.25",
|
|
4710
|
+
"description": " volume0"
|
|
4711
|
+
},
|
|
4712
|
+
"V": {
|
|
4713
|
+
"type": "number",
|
|
4714
|
+
"format": "double",
|
|
4715
|
+
"example": "93566.25",
|
|
4716
|
+
"description": " volume1"
|
|
4717
|
+
},
|
|
4718
|
+
"i": {
|
|
4719
|
+
"type": "integer",
|
|
4720
|
+
"format": "int64",
|
|
4721
|
+
"example": "1",
|
|
4722
|
+
"description": " last_trade_id"
|
|
4723
|
+
}
|
|
4724
|
+
},
|
|
4725
|
+
"title": "Candle",
|
|
4726
|
+
"required": [
|
|
4727
|
+
"t",
|
|
4728
|
+
"o",
|
|
4729
|
+
"h",
|
|
4730
|
+
"l",
|
|
4731
|
+
"c",
|
|
4732
|
+
"O",
|
|
4733
|
+
"H",
|
|
4734
|
+
"L",
|
|
4735
|
+
"C",
|
|
4736
|
+
"v",
|
|
4737
|
+
"V",
|
|
4738
|
+
"i"
|
|
4739
|
+
]
|
|
4740
|
+
},
|
|
4741
|
+
"Candles": {
|
|
4742
|
+
"type": "object",
|
|
4743
|
+
"properties": {
|
|
4744
|
+
"code": {
|
|
4745
|
+
"type": "integer",
|
|
4746
|
+
"format": "int32",
|
|
4747
|
+
"example": "200"
|
|
4748
|
+
},
|
|
4749
|
+
"message": {
|
|
4750
|
+
"type": "string"
|
|
4751
|
+
},
|
|
4752
|
+
"r": {
|
|
4753
|
+
"type": "string",
|
|
4754
|
+
"example": "15m",
|
|
4755
|
+
"description": " resolution"
|
|
4756
|
+
},
|
|
4757
|
+
"c": {
|
|
4758
|
+
"type": "array",
|
|
4759
|
+
"items": {
|
|
4760
|
+
"$ref": "#/definitions/Candle"
|
|
4761
|
+
},
|
|
4762
|
+
"description": " candles"
|
|
4763
|
+
}
|
|
4764
|
+
},
|
|
4765
|
+
"title": "Candles",
|
|
4766
|
+
"required": [
|
|
4767
|
+
"code",
|
|
4768
|
+
"r",
|
|
4769
|
+
"c"
|
|
4770
|
+
]
|
|
4771
|
+
},
|
|
4518
4772
|
"Candlestick": {
|
|
4519
4773
|
"type": "object",
|
|
4520
4774
|
"properties": {
|
|
@@ -4577,6 +4831,11 @@
|
|
|
4577
4831
|
"type": "integer",
|
|
4578
4832
|
"format": "int64",
|
|
4579
4833
|
"example": "1"
|
|
4834
|
+
},
|
|
4835
|
+
"trade_count": {
|
|
4836
|
+
"type": "integer",
|
|
4837
|
+
"format": "int64",
|
|
4838
|
+
"example": "1503241"
|
|
4580
4839
|
}
|
|
4581
4840
|
},
|
|
4582
4841
|
"title": "Candlestick",
|
|
@@ -4592,7 +4851,8 @@
|
|
|
4592
4851
|
"close_raw",
|
|
4593
4852
|
"volume0",
|
|
4594
4853
|
"volume1",
|
|
4595
|
-
"last_trade_id"
|
|
4854
|
+
"last_trade_id",
|
|
4855
|
+
"trade_count"
|
|
4596
4856
|
]
|
|
4597
4857
|
},
|
|
4598
4858
|
"Candlesticks": {
|
|
@@ -4926,6 +5186,11 @@
|
|
|
4926
5186
|
"type": "string",
|
|
4927
5187
|
"example": "46342"
|
|
4928
5188
|
},
|
|
5189
|
+
"transaction_time": {
|
|
5190
|
+
"type": "integer",
|
|
5191
|
+
"format": "int64",
|
|
5192
|
+
"example": "1257894000000000"
|
|
5193
|
+
},
|
|
4929
5194
|
"account_index": {
|
|
4930
5195
|
"type": "integer",
|
|
4931
5196
|
"format": "int64"
|
|
@@ -4988,6 +5253,7 @@
|
|
|
4988
5253
|
"available_balance",
|
|
4989
5254
|
"status",
|
|
4990
5255
|
"collateral",
|
|
5256
|
+
"transaction_time",
|
|
4991
5257
|
"account_index",
|
|
4992
5258
|
"name",
|
|
4993
5259
|
"description",
|
|
@@ -5205,6 +5471,11 @@
|
|
|
5205
5471
|
"format": "uint8",
|
|
5206
5472
|
"example": "0"
|
|
5207
5473
|
},
|
|
5474
|
+
"transaction_time": {
|
|
5475
|
+
"type": "integer",
|
|
5476
|
+
"format": "int64",
|
|
5477
|
+
"example": "1257894000000000"
|
|
5478
|
+
},
|
|
5208
5479
|
"committed_at": {
|
|
5209
5480
|
"type": "integer",
|
|
5210
5481
|
"format": "int64",
|
|
@@ -5235,6 +5506,7 @@
|
|
|
5235
5506
|
"sequence_index",
|
|
5236
5507
|
"parent_hash",
|
|
5237
5508
|
"api_key_index",
|
|
5509
|
+
"transaction_time",
|
|
5238
5510
|
"committed_at",
|
|
5239
5511
|
"verified_at"
|
|
5240
5512
|
]
|
|
@@ -5591,6 +5863,80 @@
|
|
|
5591
5863
|
"asks"
|
|
5592
5864
|
]
|
|
5593
5865
|
},
|
|
5866
|
+
"GeckoTicker": {
|
|
5867
|
+
"type": "object",
|
|
5868
|
+
"properties": {
|
|
5869
|
+
"ticker_id": {
|
|
5870
|
+
"type": "string"
|
|
5871
|
+
},
|
|
5872
|
+
"base_currency": {
|
|
5873
|
+
"type": "string"
|
|
5874
|
+
},
|
|
5875
|
+
"target_currency": {
|
|
5876
|
+
"type": "string"
|
|
5877
|
+
},
|
|
5878
|
+
"last_price": {
|
|
5879
|
+
"type": "number",
|
|
5880
|
+
"format": "double"
|
|
5881
|
+
},
|
|
5882
|
+
"base_volume": {
|
|
5883
|
+
"type": "number",
|
|
5884
|
+
"format": "double"
|
|
5885
|
+
},
|
|
5886
|
+
"target_volume": {
|
|
5887
|
+
"type": "number",
|
|
5888
|
+
"format": "double"
|
|
5889
|
+
},
|
|
5890
|
+
"pool_id": {
|
|
5891
|
+
"type": "string"
|
|
5892
|
+
},
|
|
5893
|
+
"bid": {
|
|
5894
|
+
"type": "number",
|
|
5895
|
+
"format": "double"
|
|
5896
|
+
},
|
|
5897
|
+
"ask": {
|
|
5898
|
+
"type": "number",
|
|
5899
|
+
"format": "double"
|
|
5900
|
+
},
|
|
5901
|
+
"high": {
|
|
5902
|
+
"type": "number",
|
|
5903
|
+
"format": "double"
|
|
5904
|
+
},
|
|
5905
|
+
"low": {
|
|
5906
|
+
"type": "number",
|
|
5907
|
+
"format": "double"
|
|
5908
|
+
}
|
|
5909
|
+
},
|
|
5910
|
+
"title": "GeckoTicker",
|
|
5911
|
+
"required": [
|
|
5912
|
+
"ticker_id",
|
|
5913
|
+
"base_currency",
|
|
5914
|
+
"target_currency",
|
|
5915
|
+
"last_price",
|
|
5916
|
+
"base_volume",
|
|
5917
|
+
"target_volume",
|
|
5918
|
+
"pool_id",
|
|
5919
|
+
"bid",
|
|
5920
|
+
"ask",
|
|
5921
|
+
"high",
|
|
5922
|
+
"low"
|
|
5923
|
+
]
|
|
5924
|
+
},
|
|
5925
|
+
"GeckoTickers": {
|
|
5926
|
+
"type": "object",
|
|
5927
|
+
"properties": {
|
|
5928
|
+
"tickers": {
|
|
5929
|
+
"type": "array",
|
|
5930
|
+
"items": {
|
|
5931
|
+
"$ref": "#/definitions/GeckoTicker"
|
|
5932
|
+
}
|
|
5933
|
+
}
|
|
5934
|
+
},
|
|
5935
|
+
"title": "GeckoTickers",
|
|
5936
|
+
"required": [
|
|
5937
|
+
"tickers"
|
|
5938
|
+
]
|
|
5939
|
+
},
|
|
5594
5940
|
"IsWhitelisted": {
|
|
5595
5941
|
"type": "object",
|
|
5596
5942
|
"properties": {
|
|
@@ -5789,6 +6135,10 @@
|
|
|
5789
6135
|
},
|
|
5790
6136
|
"maker_fee": {
|
|
5791
6137
|
"type": "string"
|
|
6138
|
+
},
|
|
6139
|
+
"transaction_time": {
|
|
6140
|
+
"type": "integer",
|
|
6141
|
+
"format": "int64"
|
|
5792
6142
|
}
|
|
5793
6143
|
},
|
|
5794
6144
|
"title": "LiqTrade",
|
|
@@ -5796,7 +6146,8 @@
|
|
|
5796
6146
|
"price",
|
|
5797
6147
|
"size",
|
|
5798
6148
|
"taker_fee",
|
|
5799
|
-
"maker_fee"
|
|
6149
|
+
"maker_fee",
|
|
6150
|
+
"transaction_time"
|
|
5800
6151
|
]
|
|
5801
6152
|
},
|
|
5802
6153
|
"Liquidation": {
|
|
@@ -6146,6 +6497,11 @@
|
|
|
6146
6497
|
"type": "integer",
|
|
6147
6498
|
"format": "int64",
|
|
6148
6499
|
"example": "1640995200"
|
|
6500
|
+
},
|
|
6501
|
+
"transaction_time": {
|
|
6502
|
+
"type": "integer",
|
|
6503
|
+
"format": "int64",
|
|
6504
|
+
"example": "1257894000000000"
|
|
6149
6505
|
}
|
|
6150
6506
|
},
|
|
6151
6507
|
"title": "Order",
|
|
@@ -6182,7 +6538,8 @@
|
|
|
6182
6538
|
"block_height",
|
|
6183
6539
|
"timestamp",
|
|
6184
6540
|
"created_at",
|
|
6185
|
-
"updated_at"
|
|
6541
|
+
"updated_at",
|
|
6542
|
+
"transaction_time"
|
|
6186
6543
|
]
|
|
6187
6544
|
},
|
|
6188
6545
|
"OrderBook": {
|
|
@@ -6325,6 +6682,46 @@
|
|
|
6325
6682
|
"nonce"
|
|
6326
6683
|
]
|
|
6327
6684
|
},
|
|
6685
|
+
"OrderBookDepthWithBeginNonce": {
|
|
6686
|
+
"type": "object",
|
|
6687
|
+
"properties": {
|
|
6688
|
+
"asks": {
|
|
6689
|
+
"type": "array",
|
|
6690
|
+
"items": {
|
|
6691
|
+
"$ref": "#/definitions/PriceLevel"
|
|
6692
|
+
}
|
|
6693
|
+
},
|
|
6694
|
+
"bids": {
|
|
6695
|
+
"type": "array",
|
|
6696
|
+
"items": {
|
|
6697
|
+
"$ref": "#/definitions/PriceLevel"
|
|
6698
|
+
}
|
|
6699
|
+
},
|
|
6700
|
+
"offset": {
|
|
6701
|
+
"type": "integer",
|
|
6702
|
+
"format": "int64",
|
|
6703
|
+
"example": "0"
|
|
6704
|
+
},
|
|
6705
|
+
"nonce": {
|
|
6706
|
+
"type": "integer",
|
|
6707
|
+
"format": "int64",
|
|
6708
|
+
"example": "0"
|
|
6709
|
+
},
|
|
6710
|
+
"begin_nonce": {
|
|
6711
|
+
"type": "integer",
|
|
6712
|
+
"format": "int64",
|
|
6713
|
+
"example": "0"
|
|
6714
|
+
}
|
|
6715
|
+
},
|
|
6716
|
+
"title": "OrderBookDepthWithBeginNonce",
|
|
6717
|
+
"required": [
|
|
6718
|
+
"asks",
|
|
6719
|
+
"bids",
|
|
6720
|
+
"offset",
|
|
6721
|
+
"nonce",
|
|
6722
|
+
"begin_nonce"
|
|
6723
|
+
]
|
|
6724
|
+
},
|
|
6328
6725
|
"OrderBookDetails": {
|
|
6329
6726
|
"type": "object",
|
|
6330
6727
|
"properties": {
|
|
@@ -7124,6 +7521,11 @@
|
|
|
7124
7521
|
"example": "3000"
|
|
7125
7522
|
},
|
|
7126
7523
|
"entry_usdc": {
|
|
7524
|
+
"type": "string",
|
|
7525
|
+
"example": "3000",
|
|
7526
|
+
"description": " For public pools and insurance fund"
|
|
7527
|
+
},
|
|
7528
|
+
"principal_amount": {
|
|
7127
7529
|
"type": "string",
|
|
7128
7530
|
"example": "3000"
|
|
7129
7531
|
}
|
|
@@ -7132,7 +7534,8 @@
|
|
|
7132
7534
|
"required": [
|
|
7133
7535
|
"public_pool_index",
|
|
7134
7536
|
"shares_amount",
|
|
7135
|
-
"entry_usdc"
|
|
7537
|
+
"entry_usdc",
|
|
7538
|
+
"principal_amount"
|
|
7136
7539
|
]
|
|
7137
7540
|
},
|
|
7138
7541
|
"ReferralCode": {
|
|
@@ -7778,6 +8181,56 @@
|
|
|
7778
8181
|
"value"
|
|
7779
8182
|
]
|
|
7780
8183
|
},
|
|
8184
|
+
"ReqGetCandles": {
|
|
8185
|
+
"type": "object",
|
|
8186
|
+
"properties": {
|
|
8187
|
+
"market_id": {
|
|
8188
|
+
"type": "integer",
|
|
8189
|
+
"format": "int16"
|
|
8190
|
+
},
|
|
8191
|
+
"resolution": {
|
|
8192
|
+
"type": "string",
|
|
8193
|
+
"enum": [
|
|
8194
|
+
"1m",
|
|
8195
|
+
"5m",
|
|
8196
|
+
"15m",
|
|
8197
|
+
"30m",
|
|
8198
|
+
"1h",
|
|
8199
|
+
"4h",
|
|
8200
|
+
"12h",
|
|
8201
|
+
"1d",
|
|
8202
|
+
"1w"
|
|
8203
|
+
]
|
|
8204
|
+
},
|
|
8205
|
+
"start_timestamp": {
|
|
8206
|
+
"type": "integer",
|
|
8207
|
+
"format": "int64",
|
|
8208
|
+
"maximum": 5000000000000
|
|
8209
|
+
},
|
|
8210
|
+
"end_timestamp": {
|
|
8211
|
+
"type": "integer",
|
|
8212
|
+
"format": "int64",
|
|
8213
|
+
"maximum": 5000000000000
|
|
8214
|
+
},
|
|
8215
|
+
"count_back": {
|
|
8216
|
+
"type": "integer",
|
|
8217
|
+
"format": "int64"
|
|
8218
|
+
},
|
|
8219
|
+
"set_timestamp_to_end": {
|
|
8220
|
+
"type": "boolean",
|
|
8221
|
+
"format": "boolean",
|
|
8222
|
+
"default": "false"
|
|
8223
|
+
}
|
|
8224
|
+
},
|
|
8225
|
+
"title": "ReqGetCandles",
|
|
8226
|
+
"required": [
|
|
8227
|
+
"market_id",
|
|
8228
|
+
"resolution",
|
|
8229
|
+
"start_timestamp",
|
|
8230
|
+
"end_timestamp",
|
|
8231
|
+
"count_back"
|
|
8232
|
+
]
|
|
8233
|
+
},
|
|
7781
8234
|
"ReqGetCandlesticks": {
|
|
7782
8235
|
"type": "object",
|
|
7783
8236
|
"properties": {
|
|
@@ -7935,6 +8388,10 @@
|
|
|
7935
8388
|
"ticker_id"
|
|
7936
8389
|
]
|
|
7937
8390
|
},
|
|
8391
|
+
"ReqGetGeckoTickers": {
|
|
8392
|
+
"type": "object",
|
|
8393
|
+
"title": "ReqGetGeckoTickers"
|
|
8394
|
+
},
|
|
7938
8395
|
"ReqGetL1Metadata": {
|
|
7939
8396
|
"type": "object",
|
|
7940
8397
|
"properties": {
|
|
@@ -8165,7 +8622,8 @@
|
|
|
8165
8622
|
"all",
|
|
8166
8623
|
"user",
|
|
8167
8624
|
"protocol",
|
|
8168
|
-
"account_index"
|
|
8625
|
+
"account_index",
|
|
8626
|
+
"stake"
|
|
8169
8627
|
]
|
|
8170
8628
|
},
|
|
8171
8629
|
"index": {
|
|
@@ -9181,6 +9639,11 @@
|
|
|
9181
9639
|
"type": "integer",
|
|
9182
9640
|
"format": "int64",
|
|
9183
9641
|
"example": "1640995200"
|
|
9642
|
+
},
|
|
9643
|
+
"transaction_time": {
|
|
9644
|
+
"type": "integer",
|
|
9645
|
+
"format": "int64",
|
|
9646
|
+
"example": "1257894000000000"
|
|
9184
9647
|
}
|
|
9185
9648
|
},
|
|
9186
9649
|
"title": "SimpleOrder",
|
|
@@ -9191,7 +9654,8 @@
|
|
|
9191
9654
|
"initial_base_amount",
|
|
9192
9655
|
"remaining_base_amount",
|
|
9193
9656
|
"price",
|
|
9194
|
-
"order_expiry"
|
|
9657
|
+
"order_expiry",
|
|
9658
|
+
"transaction_time"
|
|
9195
9659
|
]
|
|
9196
9660
|
},
|
|
9197
9661
|
"SpotMarketStats": {
|
|
@@ -9624,6 +10088,11 @@
|
|
|
9624
10088
|
"type": "boolean",
|
|
9625
10089
|
"format": "boolean",
|
|
9626
10090
|
"example": "true"
|
|
10091
|
+
},
|
|
10092
|
+
"transaction_time": {
|
|
10093
|
+
"type": "integer",
|
|
10094
|
+
"format": "int64",
|
|
10095
|
+
"example": "1257894000000000"
|
|
9627
10096
|
}
|
|
9628
10097
|
},
|
|
9629
10098
|
"title": "Trade",
|
|
@@ -9651,7 +10120,8 @@
|
|
|
9651
10120
|
"maker_position_size_before",
|
|
9652
10121
|
"maker_entry_quote_before",
|
|
9653
10122
|
"maker_initial_margin_fraction_before",
|
|
9654
|
-
"maker_position_sign_changed"
|
|
10123
|
+
"maker_position_sign_changed",
|
|
10124
|
+
"transaction_time"
|
|
9655
10125
|
]
|
|
9656
10126
|
},
|
|
9657
10127
|
"Trades": {
|
|
@@ -9764,7 +10234,11 @@
|
|
|
9764
10234
|
"L2BurnSharesOutflow",
|
|
9765
10235
|
"L2MintSharesInflow",
|
|
9766
10236
|
"L2MintSharesOutflow",
|
|
9767
|
-
"L2SelfTransfer"
|
|
10237
|
+
"L2SelfTransfer",
|
|
10238
|
+
"L2StakeAssetInflow",
|
|
10239
|
+
"L2StakeAssetOutflow",
|
|
10240
|
+
"L2UnstakeAssetInflow",
|
|
10241
|
+
"L2UnstakeAssetOutflow"
|
|
9768
10242
|
]
|
|
9769
10243
|
},
|
|
9770
10244
|
"from_l1_address": {
|
|
@@ -9900,6 +10374,11 @@
|
|
|
9900
10374
|
"type": "integer",
|
|
9901
10375
|
"format": "uint8",
|
|
9902
10376
|
"example": "0"
|
|
10377
|
+
},
|
|
10378
|
+
"transaction_time": {
|
|
10379
|
+
"type": "integer",
|
|
10380
|
+
"format": "int64",
|
|
10381
|
+
"example": "1257894000000000"
|
|
9903
10382
|
}
|
|
9904
10383
|
},
|
|
9905
10384
|
"title": "Tx",
|
|
@@ -9919,7 +10398,8 @@
|
|
|
9919
10398
|
"executed_at",
|
|
9920
10399
|
"sequence_index",
|
|
9921
10400
|
"parent_hash",
|
|
9922
|
-
"api_key_index"
|
|
10401
|
+
"api_key_index",
|
|
10402
|
+
"transaction_time"
|
|
9923
10403
|
]
|
|
9924
10404
|
},
|
|
9925
10405
|
"TxHash": {
|