zklighter-perps 1.0.261 → 1.0.263
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/.circleci/config.yml +26 -11
- package/.circleci/openapi_postprocess.py +273 -129
- package/.openapi-generator/FILES +7 -0
- package/README.md +80 -0
- package/apis/AtomicordersApi.ts +355 -0
- package/apis/CandlestickApi.ts +1 -2
- package/apis/index.ts +1 -0
- package/models/AtomicOrder.ts +95 -0
- package/models/AtomicOrderLeg.ts +88 -0
- package/models/OrderBook.ts +9 -0
- package/models/PerpsMarketStats.ts +18 -0
- package/models/PerpsOrderBookDetail.ts +9 -0
- package/models/ReqGetAtomicOrder.ts +69 -0
- package/models/ReqGetCandles.ts +1 -2
- package/models/ReqListAtomicOrders.ts +60 -0
- package/models/RespAtomicOrder.ts +85 -0
- package/models/RespAtomicOrderList.ts +85 -0
- package/models/SpotMarketStats.ts +18 -0
- package/models/SpotOrderBookDetail.ts +9 -0
- package/models/index.ts +6 -0
- package/openapi.json +441 -5
- package/package.json +7 -3
- package/tsconfig.json +35 -0
package/openapi.json
CHANGED
|
@@ -701,6 +701,207 @@
|
|
|
701
701
|
"description": "Get asset details"
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
+
"/api/v1/atomic-orders/create": {
|
|
705
|
+
"post": {
|
|
706
|
+
"summary": "atomic-orders_create",
|
|
707
|
+
"operationId": "atomic-orders_create",
|
|
708
|
+
"responses": {
|
|
709
|
+
"200": {
|
|
710
|
+
"description": "A successful response.",
|
|
711
|
+
"schema": {
|
|
712
|
+
"$ref": "#/definitions/RespAtomicOrder"
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"400": {
|
|
716
|
+
"description": "Bad request",
|
|
717
|
+
"schema": {
|
|
718
|
+
"$ref": "#/definitions/ResultCode"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
"parameters": [
|
|
723
|
+
{
|
|
724
|
+
"name": "body",
|
|
725
|
+
"in": "body",
|
|
726
|
+
"required": true,
|
|
727
|
+
"schema": {
|
|
728
|
+
"$ref": "#/definitions/ReqCreateAtomicOrder"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
],
|
|
732
|
+
"tags": [
|
|
733
|
+
"atomicorders"
|
|
734
|
+
],
|
|
735
|
+
"consumes": [
|
|
736
|
+
"multipart/form-data"
|
|
737
|
+
],
|
|
738
|
+
"description": "Create an atomic order in an account's collection"
|
|
739
|
+
}
|
|
740
|
+
},
|
|
741
|
+
"/api/v1/atomic-orders/delete": {
|
|
742
|
+
"post": {
|
|
743
|
+
"summary": "atomic-orders_delete",
|
|
744
|
+
"operationId": "atomic-orders_delete",
|
|
745
|
+
"responses": {
|
|
746
|
+
"200": {
|
|
747
|
+
"description": "A successful response.",
|
|
748
|
+
"schema": {
|
|
749
|
+
"$ref": "#/definitions/ResultCode"
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
"400": {
|
|
753
|
+
"description": "Bad request",
|
|
754
|
+
"schema": {
|
|
755
|
+
"$ref": "#/definitions/ResultCode"
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
},
|
|
759
|
+
"parameters": [
|
|
760
|
+
{
|
|
761
|
+
"name": "body",
|
|
762
|
+
"in": "body",
|
|
763
|
+
"required": true,
|
|
764
|
+
"schema": {
|
|
765
|
+
"$ref": "#/definitions/ReqDeleteAtomicOrder"
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"tags": [
|
|
770
|
+
"atomicorders"
|
|
771
|
+
],
|
|
772
|
+
"consumes": [
|
|
773
|
+
"multipart/form-data"
|
|
774
|
+
],
|
|
775
|
+
"description": "Delete an atomic order from an account's collection by id"
|
|
776
|
+
}
|
|
777
|
+
},
|
|
778
|
+
"/api/v1/atomic-orders/get": {
|
|
779
|
+
"get": {
|
|
780
|
+
"summary": "atomic-orders_get",
|
|
781
|
+
"operationId": "atomic-orders_get",
|
|
782
|
+
"responses": {
|
|
783
|
+
"200": {
|
|
784
|
+
"description": "A successful response.",
|
|
785
|
+
"schema": {
|
|
786
|
+
"$ref": "#/definitions/RespAtomicOrder"
|
|
787
|
+
}
|
|
788
|
+
},
|
|
789
|
+
"400": {
|
|
790
|
+
"description": "Bad request",
|
|
791
|
+
"schema": {
|
|
792
|
+
"$ref": "#/definitions/ResultCode"
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"parameters": [
|
|
797
|
+
{
|
|
798
|
+
"name": "authorization",
|
|
799
|
+
"description": " make required after integ is done",
|
|
800
|
+
"in": "query",
|
|
801
|
+
"required": false,
|
|
802
|
+
"type": "string"
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "auth",
|
|
806
|
+
"description": " made optional to support header auth clients",
|
|
807
|
+
"in": "query",
|
|
808
|
+
"required": false,
|
|
809
|
+
"type": "string"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
"name": "id",
|
|
813
|
+
"in": "query",
|
|
814
|
+
"required": true,
|
|
815
|
+
"type": "integer",
|
|
816
|
+
"format": "int64"
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"tags": [
|
|
820
|
+
"atomicorders"
|
|
821
|
+
],
|
|
822
|
+
"consumes": [
|
|
823
|
+
"multipart/form-data"
|
|
824
|
+
],
|
|
825
|
+
"description": "Get a single atomic order of an account by id"
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"/api/v1/atomic-orders/list": {
|
|
829
|
+
"get": {
|
|
830
|
+
"summary": "atomic-orders_list",
|
|
831
|
+
"operationId": "atomic-orders_list",
|
|
832
|
+
"responses": {
|
|
833
|
+
"200": {
|
|
834
|
+
"description": "A successful response.",
|
|
835
|
+
"schema": {
|
|
836
|
+
"$ref": "#/definitions/RespAtomicOrderList"
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"400": {
|
|
840
|
+
"description": "Bad request",
|
|
841
|
+
"schema": {
|
|
842
|
+
"$ref": "#/definitions/ResultCode"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"parameters": [
|
|
847
|
+
{
|
|
848
|
+
"name": "authorization",
|
|
849
|
+
"description": " make required after integ is done",
|
|
850
|
+
"in": "query",
|
|
851
|
+
"required": false,
|
|
852
|
+
"type": "string"
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"name": "auth",
|
|
856
|
+
"description": " made optional to support header auth clients",
|
|
857
|
+
"in": "query",
|
|
858
|
+
"required": false,
|
|
859
|
+
"type": "string"
|
|
860
|
+
}
|
|
861
|
+
],
|
|
862
|
+
"tags": [
|
|
863
|
+
"atomicorders"
|
|
864
|
+
],
|
|
865
|
+
"description": "Get the atomic order collection of an account"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"/api/v1/atomic-orders/update": {
|
|
869
|
+
"post": {
|
|
870
|
+
"summary": "atomic-orders_update",
|
|
871
|
+
"operationId": "atomic-orders_update",
|
|
872
|
+
"responses": {
|
|
873
|
+
"200": {
|
|
874
|
+
"description": "A successful response.",
|
|
875
|
+
"schema": {
|
|
876
|
+
"$ref": "#/definitions/RespAtomicOrder"
|
|
877
|
+
}
|
|
878
|
+
},
|
|
879
|
+
"400": {
|
|
880
|
+
"description": "Bad request",
|
|
881
|
+
"schema": {
|
|
882
|
+
"$ref": "#/definitions/ResultCode"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"parameters": [
|
|
887
|
+
{
|
|
888
|
+
"name": "body",
|
|
889
|
+
"in": "body",
|
|
890
|
+
"required": true,
|
|
891
|
+
"schema": {
|
|
892
|
+
"$ref": "#/definitions/ReqUpdateAtomicOrder"
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
],
|
|
896
|
+
"tags": [
|
|
897
|
+
"atomicorders"
|
|
898
|
+
],
|
|
899
|
+
"consumes": [
|
|
900
|
+
"multipart/form-data"
|
|
901
|
+
],
|
|
902
|
+
"description": "Update an atomic order in an account's collection"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
704
905
|
"/api/v1/block": {
|
|
705
906
|
"get": {
|
|
706
907
|
"summary": "block",
|
|
@@ -956,8 +1157,7 @@
|
|
|
956
1157
|
"1h",
|
|
957
1158
|
"4h",
|
|
958
1159
|
"12h",
|
|
959
|
-
"1d"
|
|
960
|
-
"1w"
|
|
1160
|
+
"1d"
|
|
961
1161
|
]
|
|
962
1162
|
},
|
|
963
1163
|
{
|
|
@@ -6018,6 +6218,74 @@
|
|
|
6018
6218
|
"total_supplied"
|
|
6019
6219
|
]
|
|
6020
6220
|
},
|
|
6221
|
+
"AtomicOrder": {
|
|
6222
|
+
"type": "object",
|
|
6223
|
+
"properties": {
|
|
6224
|
+
"id": {
|
|
6225
|
+
"type": "integer",
|
|
6226
|
+
"format": "int64",
|
|
6227
|
+
"example": "1"
|
|
6228
|
+
},
|
|
6229
|
+
"account_index": {
|
|
6230
|
+
"type": "integer",
|
|
6231
|
+
"format": "int64",
|
|
6232
|
+
"example": "3"
|
|
6233
|
+
},
|
|
6234
|
+
"name": {
|
|
6235
|
+
"type": "string",
|
|
6236
|
+
"example": "eth-btc spread"
|
|
6237
|
+
},
|
|
6238
|
+
"legs": {
|
|
6239
|
+
"type": "array",
|
|
6240
|
+
"items": {
|
|
6241
|
+
"$ref": "#/definitions/AtomicOrderLeg"
|
|
6242
|
+
}
|
|
6243
|
+
}
|
|
6244
|
+
},
|
|
6245
|
+
"title": "AtomicOrder",
|
|
6246
|
+
"required": [
|
|
6247
|
+
"id",
|
|
6248
|
+
"account_index",
|
|
6249
|
+
"name",
|
|
6250
|
+
"legs"
|
|
6251
|
+
]
|
|
6252
|
+
},
|
|
6253
|
+
"AtomicOrderLeg": {
|
|
6254
|
+
"type": "object",
|
|
6255
|
+
"properties": {
|
|
6256
|
+
"market_id": {
|
|
6257
|
+
"type": "integer",
|
|
6258
|
+
"format": "int16",
|
|
6259
|
+
"example": "1"
|
|
6260
|
+
},
|
|
6261
|
+
"is_ask": {
|
|
6262
|
+
"type": "integer",
|
|
6263
|
+
"format": "int8",
|
|
6264
|
+
"example": "1",
|
|
6265
|
+
"enum": [
|
|
6266
|
+
"0",
|
|
6267
|
+
"1"
|
|
6268
|
+
]
|
|
6269
|
+
},
|
|
6270
|
+
"base_amount": {
|
|
6271
|
+
"type": "number",
|
|
6272
|
+
"format": "double",
|
|
6273
|
+
"example": "1.5"
|
|
6274
|
+
},
|
|
6275
|
+
"percentage": {
|
|
6276
|
+
"type": "number",
|
|
6277
|
+
"format": "double",
|
|
6278
|
+
"example": "50"
|
|
6279
|
+
}
|
|
6280
|
+
},
|
|
6281
|
+
"title": "AtomicOrderLeg",
|
|
6282
|
+
"required": [
|
|
6283
|
+
"market_id",
|
|
6284
|
+
"is_ask",
|
|
6285
|
+
"base_amount",
|
|
6286
|
+
"percentage"
|
|
6287
|
+
]
|
|
6288
|
+
},
|
|
6021
6289
|
"Auth": {
|
|
6022
6290
|
"type": "object",
|
|
6023
6291
|
"properties": {
|
|
@@ -8638,6 +8906,10 @@
|
|
|
8638
8906
|
"type": "integer",
|
|
8639
8907
|
"format": "uint8",
|
|
8640
8908
|
"example": "4"
|
|
8909
|
+
},
|
|
8910
|
+
"created_at": {
|
|
8911
|
+
"type": "string",
|
|
8912
|
+
"example": "1640995200000"
|
|
8641
8913
|
}
|
|
8642
8914
|
},
|
|
8643
8915
|
"title": "OrderBook",
|
|
@@ -8658,7 +8930,8 @@
|
|
|
8658
8930
|
"order_quote_limit",
|
|
8659
8931
|
"supported_size_decimals",
|
|
8660
8932
|
"supported_price_decimals",
|
|
8661
|
-
"supported_quote_decimals"
|
|
8933
|
+
"supported_quote_decimals",
|
|
8934
|
+
"created_at"
|
|
8662
8935
|
]
|
|
8663
8936
|
},
|
|
8664
8937
|
"OrderBookDepth": {
|
|
@@ -9041,6 +9314,14 @@
|
|
|
9041
9314
|
"type": "string",
|
|
9042
9315
|
"example": "3024.66"
|
|
9043
9316
|
},
|
|
9317
|
+
"best_ask_price": {
|
|
9318
|
+
"type": "string",
|
|
9319
|
+
"example": "3025.00"
|
|
9320
|
+
},
|
|
9321
|
+
"best_bid_price": {
|
|
9322
|
+
"type": "string",
|
|
9323
|
+
"example": "3024.00"
|
|
9324
|
+
},
|
|
9044
9325
|
"open_interest": {
|
|
9045
9326
|
"type": "string",
|
|
9046
9327
|
"example": "235.25"
|
|
@@ -9111,6 +9392,8 @@
|
|
|
9111
9392
|
"index_price",
|
|
9112
9393
|
"mark_price",
|
|
9113
9394
|
"mid_price",
|
|
9395
|
+
"best_ask_price",
|
|
9396
|
+
"best_bid_price",
|
|
9114
9397
|
"open_interest",
|
|
9115
9398
|
"open_interest_limit",
|
|
9116
9399
|
"funding_clamp_small",
|
|
@@ -9214,6 +9497,10 @@
|
|
|
9214
9497
|
"format": "uint8",
|
|
9215
9498
|
"example": "4"
|
|
9216
9499
|
},
|
|
9500
|
+
"created_at": {
|
|
9501
|
+
"type": "string",
|
|
9502
|
+
"example": "1640995200000"
|
|
9503
|
+
},
|
|
9217
9504
|
"size_decimals": {
|
|
9218
9505
|
"type": "integer",
|
|
9219
9506
|
"format": "uint8",
|
|
@@ -9336,6 +9623,7 @@
|
|
|
9336
9623
|
"supported_size_decimals",
|
|
9337
9624
|
"supported_price_decimals",
|
|
9338
9625
|
"supported_quote_decimals",
|
|
9626
|
+
"created_at",
|
|
9339
9627
|
"size_decimals",
|
|
9340
9628
|
"price_decimals",
|
|
9341
9629
|
"quote_multiplier",
|
|
@@ -10194,6 +10482,26 @@
|
|
|
10194
10482
|
"signature"
|
|
10195
10483
|
]
|
|
10196
10484
|
},
|
|
10485
|
+
"ReqCreateAtomicOrder": {
|
|
10486
|
+
"type": "object",
|
|
10487
|
+
"properties": {
|
|
10488
|
+
"auth": {
|
|
10489
|
+
"type": "string",
|
|
10490
|
+
"description": " made optional to support header auth clients"
|
|
10491
|
+
},
|
|
10492
|
+
"name": {
|
|
10493
|
+
"type": "string"
|
|
10494
|
+
},
|
|
10495
|
+
"legs": {
|
|
10496
|
+
"type": "string"
|
|
10497
|
+
}
|
|
10498
|
+
},
|
|
10499
|
+
"title": "ReqCreateAtomicOrder",
|
|
10500
|
+
"required": [
|
|
10501
|
+
"name",
|
|
10502
|
+
"legs"
|
|
10503
|
+
]
|
|
10504
|
+
},
|
|
10197
10505
|
"ReqCreateIntentAddress": {
|
|
10198
10506
|
"type": "object",
|
|
10199
10507
|
"properties": {
|
|
@@ -10269,6 +10577,23 @@
|
|
|
10269
10577
|
"account_index"
|
|
10270
10578
|
]
|
|
10271
10579
|
},
|
|
10580
|
+
"ReqDeleteAtomicOrder": {
|
|
10581
|
+
"type": "object",
|
|
10582
|
+
"properties": {
|
|
10583
|
+
"auth": {
|
|
10584
|
+
"type": "string",
|
|
10585
|
+
"description": " made optional to support header auth clients"
|
|
10586
|
+
},
|
|
10587
|
+
"id": {
|
|
10588
|
+
"type": "integer",
|
|
10589
|
+
"format": "int64"
|
|
10590
|
+
}
|
|
10591
|
+
},
|
|
10592
|
+
"title": "ReqDeleteAtomicOrder",
|
|
10593
|
+
"required": [
|
|
10594
|
+
"id"
|
|
10595
|
+
]
|
|
10596
|
+
},
|
|
10272
10597
|
"ReqDoFaucet": {
|
|
10273
10598
|
"type": "object",
|
|
10274
10599
|
"properties": {
|
|
@@ -10693,6 +11018,23 @@
|
|
|
10693
11018
|
},
|
|
10694
11019
|
"title": "ReqGetAssetDetails"
|
|
10695
11020
|
},
|
|
11021
|
+
"ReqGetAtomicOrder": {
|
|
11022
|
+
"type": "object",
|
|
11023
|
+
"properties": {
|
|
11024
|
+
"auth": {
|
|
11025
|
+
"type": "string",
|
|
11026
|
+
"description": " made optional to support header auth clients"
|
|
11027
|
+
},
|
|
11028
|
+
"id": {
|
|
11029
|
+
"type": "integer",
|
|
11030
|
+
"format": "int64"
|
|
11031
|
+
}
|
|
11032
|
+
},
|
|
11033
|
+
"title": "ReqGetAtomicOrder",
|
|
11034
|
+
"required": [
|
|
11035
|
+
"id"
|
|
11036
|
+
]
|
|
11037
|
+
},
|
|
10696
11038
|
"ReqGetBlock": {
|
|
10697
11039
|
"type": "object",
|
|
10698
11040
|
"properties": {
|
|
@@ -10781,8 +11123,7 @@
|
|
|
10781
11123
|
"1h",
|
|
10782
11124
|
"4h",
|
|
10783
11125
|
"12h",
|
|
10784
|
-
"1d"
|
|
10785
|
-
"1w"
|
|
11126
|
+
"1d"
|
|
10786
11127
|
]
|
|
10787
11128
|
},
|
|
10788
11129
|
"start_timestamp": {
|
|
@@ -11887,6 +12228,16 @@
|
|
|
11887
12228
|
"duration_days"
|
|
11888
12229
|
]
|
|
11889
12230
|
},
|
|
12231
|
+
"ReqListAtomicOrders": {
|
|
12232
|
+
"type": "object",
|
|
12233
|
+
"properties": {
|
|
12234
|
+
"auth": {
|
|
12235
|
+
"type": "string",
|
|
12236
|
+
"description": " made optional to support header auth clients"
|
|
12237
|
+
}
|
|
12238
|
+
},
|
|
12239
|
+
"title": "ReqListAtomicOrders"
|
|
12240
|
+
},
|
|
11890
12241
|
"ReqListRFQs": {
|
|
11891
12242
|
"type": "object",
|
|
11892
12243
|
"properties": {
|
|
@@ -12134,6 +12485,31 @@
|
|
|
12134
12485
|
"expo_token"
|
|
12135
12486
|
]
|
|
12136
12487
|
},
|
|
12488
|
+
"ReqUpdateAtomicOrder": {
|
|
12489
|
+
"type": "object",
|
|
12490
|
+
"properties": {
|
|
12491
|
+
"auth": {
|
|
12492
|
+
"type": "string",
|
|
12493
|
+
"description": " made optional to support header auth clients"
|
|
12494
|
+
},
|
|
12495
|
+
"id": {
|
|
12496
|
+
"type": "integer",
|
|
12497
|
+
"format": "int64"
|
|
12498
|
+
},
|
|
12499
|
+
"name": {
|
|
12500
|
+
"type": "string"
|
|
12501
|
+
},
|
|
12502
|
+
"legs": {
|
|
12503
|
+
"type": "string"
|
|
12504
|
+
}
|
|
12505
|
+
},
|
|
12506
|
+
"title": "ReqUpdateAtomicOrder",
|
|
12507
|
+
"required": [
|
|
12508
|
+
"id",
|
|
12509
|
+
"name",
|
|
12510
|
+
"legs"
|
|
12511
|
+
]
|
|
12512
|
+
},
|
|
12137
12513
|
"ReqUpdateKickback": {
|
|
12138
12514
|
"type": "object",
|
|
12139
12515
|
"properties": {
|
|
@@ -12263,6 +12639,51 @@
|
|
|
12263
12639
|
"x"
|
|
12264
12640
|
]
|
|
12265
12641
|
},
|
|
12642
|
+
"RespAtomicOrder": {
|
|
12643
|
+
"type": "object",
|
|
12644
|
+
"properties": {
|
|
12645
|
+
"code": {
|
|
12646
|
+
"type": "integer",
|
|
12647
|
+
"format": "int32",
|
|
12648
|
+
"example": "200"
|
|
12649
|
+
},
|
|
12650
|
+
"message": {
|
|
12651
|
+
"type": "string"
|
|
12652
|
+
},
|
|
12653
|
+
"atomic_order": {
|
|
12654
|
+
"$ref": "#/definitions/AtomicOrder"
|
|
12655
|
+
}
|
|
12656
|
+
},
|
|
12657
|
+
"title": "RespAtomicOrder",
|
|
12658
|
+
"required": [
|
|
12659
|
+
"code",
|
|
12660
|
+
"atomic_order"
|
|
12661
|
+
]
|
|
12662
|
+
},
|
|
12663
|
+
"RespAtomicOrderList": {
|
|
12664
|
+
"type": "object",
|
|
12665
|
+
"properties": {
|
|
12666
|
+
"code": {
|
|
12667
|
+
"type": "integer",
|
|
12668
|
+
"format": "int32",
|
|
12669
|
+
"example": "200"
|
|
12670
|
+
},
|
|
12671
|
+
"message": {
|
|
12672
|
+
"type": "string"
|
|
12673
|
+
},
|
|
12674
|
+
"atomic_orders": {
|
|
12675
|
+
"type": "array",
|
|
12676
|
+
"items": {
|
|
12677
|
+
"$ref": "#/definitions/AtomicOrder"
|
|
12678
|
+
}
|
|
12679
|
+
}
|
|
12680
|
+
},
|
|
12681
|
+
"title": "RespAtomicOrderList",
|
|
12682
|
+
"required": [
|
|
12683
|
+
"code",
|
|
12684
|
+
"atomic_orders"
|
|
12685
|
+
]
|
|
12686
|
+
},
|
|
12266
12687
|
"RespChangeAccountTier": {
|
|
12267
12688
|
"type": "object",
|
|
12268
12689
|
"properties": {
|
|
@@ -13516,6 +13937,14 @@
|
|
|
13516
13937
|
"type": "string",
|
|
13517
13938
|
"example": "3024.66"
|
|
13518
13939
|
},
|
|
13940
|
+
"best_ask_price": {
|
|
13941
|
+
"type": "string",
|
|
13942
|
+
"example": "3025.00"
|
|
13943
|
+
},
|
|
13944
|
+
"best_bid_price": {
|
|
13945
|
+
"type": "string",
|
|
13946
|
+
"example": "3024.00"
|
|
13947
|
+
},
|
|
13519
13948
|
"last_trade_price": {
|
|
13520
13949
|
"type": "string",
|
|
13521
13950
|
"example": "3024.66"
|
|
@@ -13552,6 +13981,8 @@
|
|
|
13552
13981
|
"market_id",
|
|
13553
13982
|
"index_price",
|
|
13554
13983
|
"mid_price",
|
|
13984
|
+
"best_ask_price",
|
|
13985
|
+
"best_bid_price",
|
|
13555
13986
|
"last_trade_price",
|
|
13556
13987
|
"daily_base_token_volume",
|
|
13557
13988
|
"daily_quote_token_volume",
|
|
@@ -13647,6 +14078,10 @@
|
|
|
13647
14078
|
"format": "uint8",
|
|
13648
14079
|
"example": "4"
|
|
13649
14080
|
},
|
|
14081
|
+
"created_at": {
|
|
14082
|
+
"type": "string",
|
|
14083
|
+
"example": "1640995200000"
|
|
14084
|
+
},
|
|
13650
14085
|
"size_decimals": {
|
|
13651
14086
|
"type": "integer",
|
|
13652
14087
|
"format": "uint8",
|
|
@@ -13720,6 +14155,7 @@
|
|
|
13720
14155
|
"supported_size_decimals",
|
|
13721
14156
|
"supported_price_decimals",
|
|
13722
14157
|
"supported_quote_decimals",
|
|
14158
|
+
"created_at",
|
|
13723
14159
|
"size_decimals",
|
|
13724
14160
|
"price_decimals",
|
|
13725
14161
|
"last_trade_price",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zklighter-perps",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.263",
|
|
4
4
|
"description": "Lighter Perps SDK",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"directories": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"test": "test"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"typecheck": "tsc --noEmit"
|
|
12
13
|
},
|
|
13
14
|
"repository": {
|
|
14
15
|
"type": "git",
|
|
@@ -19,5 +20,8 @@
|
|
|
19
20
|
"bugs": {
|
|
20
21
|
"url": "https://github.com/elliottech/zklighter-perps-ts/issues"
|
|
21
22
|
},
|
|
22
|
-
"homepage": "https://github.com/elliottech/zklighter-perps-ts#readme"
|
|
23
|
+
"homepage": "https://github.com/elliottech/zklighter-perps-ts#readme",
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"typescript": "5.9.3"
|
|
26
|
+
}
|
|
23
27
|
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
// Strict type-check config used by CI to guarantee the generated SDK source
|
|
3
|
+
// compiles under the same settings consumers (e.g. perps-fe) use to bundle it.
|
|
4
|
+
// We type-check from the package entry point (index.ts) so the program matches
|
|
5
|
+
// exactly what a consumer pulls in via `import ... from 'zklighter-perps'` and
|
|
6
|
+
// its re-exports. Files not reachable from index.ts (orphaned output left over
|
|
7
|
+
// from previous generations and no longer in .openapi-generator/FILES) are not
|
|
8
|
+
// part of the public API surface and are intentionally not checked.
|
|
9
|
+
"compilerOptions": {
|
|
10
|
+
"esModuleInterop": false,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
"target": "ESNext",
|
|
13
|
+
"allowJs": false,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"verbatimModuleSyntax": true,
|
|
17
|
+
"strict": true,
|
|
18
|
+
"noUncheckedIndexedAccess": true,
|
|
19
|
+
"noEmit": true,
|
|
20
|
+
"module": "ESNext",
|
|
21
|
+
"moduleResolution": "bundler",
|
|
22
|
+
"lib": [
|
|
23
|
+
"ESNext",
|
|
24
|
+
"DOM",
|
|
25
|
+
"DOM.Iterable"
|
|
26
|
+
],
|
|
27
|
+
"useDefineForClassFields": true,
|
|
28
|
+
"strictNullChecks": true,
|
|
29
|
+
"allowSyntheticDefaultImports": true,
|
|
30
|
+
"forceConsistentCasingInFileNames": true
|
|
31
|
+
},
|
|
32
|
+
"include": [
|
|
33
|
+
"index.ts"
|
|
34
|
+
]
|
|
35
|
+
}
|