No project description provided
Project description
sunny-order-splitter-python-sdk
安装
pip install sunny-order-splitter --upgrade
使用
from sunny_order_splitter.core import SunnyOrderSplitter
def main():
platform = "BINANCE"
base_url = "https://api.binance.com"
#base_url = "https://testnet.binance.vision"
api_key = "Q9TdT7Tl9KaoFBWaxJ6Rlt8N4fEurKYeBsYfUhXgTRSFMZWzbWa14kybz5vLebCk"
secret_key = "9UJ7Vx3SZRF6mvmmLGksR08UMChTiWZG3fyA4JdsyK4pWKsnuqXQwk7N3q8mBw43"
symbol = 'NOTUSDT'
#base_url 可不传,默认正式环境
bos = SunnyOrderSplitter(platform, symbol, api_key, secret_key, base_url)
params = {
"side": "BUY",
"orderAmount": 20, # USDT 金额
"totalAmount": 85, # USDT 金额
"interval": 5 #秒
}
"""
params = {
"side": "SELL",
"orderAmount": 1000, #NOT 数量
"totalAmount": 4100, #NOT 数量
"interval": 5
}
"""
bos.split_order(params)
if __name__ == "__main__":
main()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sunny_order_splitter-0.1.2.tar.gz
.
File metadata
- Download URL: sunny_order_splitter-0.1.2.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a885e4cbe8389ecf55a86b21aaac7c4ec04f117a9187471e5012031d07fa4586 |
|
MD5 | 5a81cfd67d0c9b0a29d562088f43ba04 |
|
BLAKE2b-256 | 436fa00cbf2ba8d16f1e70d55843ebad6ff1c5ef59fd35c8c0594063969181ff |
File details
Details for the file sunny_order_splitter-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sunny_order_splitter-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f3f5776ae4e48ab8007e166f8b7088d63d2bbfe9ee223888b9c0802dfb56ef8 |
|
MD5 | 815919e3f18607a61f275b5e6f765a1a |
|
BLAKE2b-256 | 8016cebf81a84745bd9a66b1c091626c1f51acc08d5db4f1c5c5686474b236e7 |