-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathCargo.toml
176 lines (138 loc) · 4.83 KB
/
Cargo.toml
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
[workspace]
[package]
name = "crypto-botters"
version = "0.6.0"
authors = ["negi_grass"]
edition = "2021"
description = "A library for cryptocurrency exchange APIs."
license = "MIT"
readme = "README.md"
homepage = "https://github.com/negi-grass/crypto-botters"
documentation = "https://docs.rs/crypto-botters"
repository = "https://github.com/negi-grass/crypto-botters"
keywords = ["cryptocurrency", "finance", "trading", "client", "websocket"]
categories = ["api-bindings", "asynchronous", "cryptography::cryptocurrencies", "authentication"]
autoexamples = false
exclude = ["/.idea", "/.github"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["native-tls"]
full = ["binance", "bitflyer", "bybit", "coincheck"]
binance = ["dep:serde_urlencoded"]
bitflyer = ["dep:rand"]
bybit = ["dep:serde_urlencoded", "dep:rand"]
coincheck = ["dep:serde_urlencoded"]
native-tls = ["generic-api-client/native-tls"]
native-tls-vendored = ["generic-api-client/native-tls-vendored"]
rustls-tls-native-roots = ["generic-api-client/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["generic-api-client/rustls-tls-webpki-roots"]
[dependencies]
generic-api-client = { version = "0.3", path = "generic-api-client" }
serde = { version = "1.0.193", features = ["derive"] }
serde_json = "1.0.108"
hmac = "0.12.1"
sha2 = "0.10.8"
hex = "0.4.3"
log = "0.4.20"
serde_urlencoded = { version = "0.7.1", optional = true }
rand = { version = "0.8.5", optional = true }
[dev-dependencies]
crypto-botters = { path = ".", features = ["full"] }
tokio = { version = "1.34.0", features = ["rt-multi-thread", "macros"] }
rust_decimal = { version = "1.33.0", features = ["serde-with-str", "serde-with-float"] }
env_logger = "0.10.1"
[[example]]
name = "binance_http_private"
path = "examples/binance/binance_http_private.rs"
[[example]]
name = "binance_http_public"
path = "examples/binance/binance_http_public.rs"
[[example]]
name = "binance_websocket_private"
path = "examples/binance/binance_websocket_private.rs"
[[example]]
name = "binance_websocket_public"
path = "examples/binance/binance_websocket_public.rs"
[[example]]
name = "binance_spawn"
path = "examples/binance/binance_spawn.rs"
[[example]]
name = "bitflyer_http_private"
path = "examples/bitflyer/bitflyer_http_private.rs"
[[example]]
name = "bitflyer_http_public"
path = "examples/bitflyer/bitflyer_http_public.rs"
[[example]]
name = "bitflyer_websocket_private"
path = "examples/bitflyer/bitflyer_websocket_private.rs"
[[example]]
name = "bitflyer_websocket_public"
path = "examples/bitflyer/bitflyer_websocket_public.rs"
[[example]]
name = "bybit_unified_margin_v3"
path = "examples/bybit/v3/bybit_unified_margin_v3.rs"
[[example]]
name = "bybit_contract_v3"
path = "examples/bybit/v3/bybit_contract_v3.rs"
[[example]]
name = "bybit_inverse_perpetual_v2"
path = "examples/bybit/previous_version/bybit_inverse_perpetual_v2.rs"
[[example]]
name = "bybit_usdt_perpetual_v2"
path = "examples/bybit/previous_version/bybit_usdt_perpetual_v2.rs"
[[example]]
name = "bybit_inverse_futures_v2"
path = "examples/bybit/previous_version/bybit_inverse_futures_v2.rs"
[[example]]
name = "bybit_spot_v3"
path = "examples/bybit/v3/bybit_spot_v3.rs"
[[example]]
name = "bybit_spot_v1"
path = "examples/bybit/previous_version/bybit_spot_v1.rs"
[[example]]
name = "bybit_account_asset_v3"
path = "examples/bybit/v3/bybit_account_asset_v3.rs"
[[example]]
name = "bybit_account_asset_v1"
path = "examples/bybit/previous_version/bybit_account_asset_v1.rs"
[[example]]
name = "bybit_copy_trading_v3"
path = "examples/bybit/v3/bybit_copy_trading_v3.rs"
[[example]]
name = "bybit_usdc_option_v1"
path = "examples/bybit/previous_version/bybit_usdc_option_v1.rs"
[[example]]
name = "bybit_usdc_perpetual_v1"
path = "examples/bybit/previous_version/bybit_usdc_perpetual_v1.rs"
[[example]]
name = "bybit_usdt_contract_v3_websocket_public"
path = "examples/bybit/v3/bybit_usdt_contract_v3_websocket_public.rs"
[[example]]
name = "bybit_usdc_contract_v3_websocket_public"
path = "examples/bybit/v3/bybit_usdc_contract_v3_websocket_public.rs"
[[example]]
name = "bybit_spot_v3_websocket_public"
path = "examples/bybit/v3/bybit_spot_v3_websocket_public.rs"
[[example]]
name = "bybit_spot_v3_websocket_private"
path = "examples/bybit/v3/bybit_spot_v3_websocket_private.rs"
[[example]]
name = "bybit_v5"
path = "examples/bybit/v5/bybit_v5.rs"
[[example]]
name = "bybit_v5_websocket_public"
path = "examples/bybit/v5/bybit_v5_websocket_public.rs"
[[example]]
name = "bybit_v5_websocket_private"
path = "examples/bybit/v5/bybit_v5_websocket_private.rs"
[[example]]
name = "coincheck_http_public"
path = "examples/coincheck/coincheck_http_public.rs"
[[example]]
name = "coincheck_http_private"
path = "examples/coincheck/coincheck_http_private.rs"
[[example]]
name = "coincheck_websocket_public"
path = "examples/coincheck/coincheck_websocket_public.rs"