Skip to content

Commit fccd491

Browse files
author
github-actions
committed
[TRANSFER][BUILD][PUBLISH]
1 parent 94c0aee commit fccd491

File tree

3 files changed

+34
-15
lines changed

3 files changed

+34
-15
lines changed

build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class build {
148148
const otherStrings = {
149149
'__LINK_TO_OFFICIAL_EXCHANGE_DOCS__': 'https://ccxt.com',
150150
'__PYTHON_PACKAGE_NAME__': undefined,
151-
'__EXAMPLE_SYMBOL__': '"BTC/USDC"',
151+
'__EXAMPLE_SYMBOL__': 'BTC/USDC',
152152
};
153153
const exchangeConfig = this.globalConfigs['exchanges'][this.exchange];
154154
for (const key in otherStrings) {

build/pypi-packager.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,26 @@ class pypi {
4848
`build-backend = "hatchling.build"\n` +
4949
`\n` +
5050
`[tool.hatch.build.targets.wheel]\n` +
51-
`packages = ["src/${pypiPackageNameSanitized}"]\n` +
51+
`packages = ["src/${this.exchange}"]\n` +
5252
`\n` +
5353
`[project]\n` +
5454
`name = "${pypiPackageNameSanitized}"\n` +
5555
`version = "` + newVersion + `"\n` +
5656
`authors = [\n` +
57-
` { name="Example Author", email="author@example.com" },\n` +
57+
` { name="CCXT", email="info@ccxt.trade" },\n` +
5858
`]\n` +
59-
`description = "${this.exchange} exchange api client"\n` +
59+
`description = "${this.exchange} crypto exchange api client"\n` +
6060
`readme = "README.md"\n` +
6161
`requires-python = ">=3.8"\n` +
6262
`classifiers = [\n` +
6363
` "Programming Language :: Python :: 3",\n` +
6464
` "Operating System :: OS Independent",\n` +
65+
` "Intended Audience :: Developers",\n` +
66+
` "Intended Audience :: Financial and Insurance Industry",\n` +
67+
` "Intended Audience :: Information Technology",\n` +
68+
` "Topic :: Software Development :: Build Tools",\n` +
69+
` "Topic :: Office/Business :: Financial :: Investment",\n` +
70+
` "License :: OSI Approved :: MIT License",\n` +
6571
`]\n` +
6672
`license = {text = "MIT"}\n` +
6773
`\n` +

build/templates/README.md

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,35 @@ pip install __PYTHON_PACKAGE_NAME__
1616

1717
## Usage
1818

19-
### Async
19+
### Sync
2020

2121
```Python
22-
from __PYTHON_PACKAGE_KEY__ import __ExchangeName__Async
22+
from __PYTHON_PACKAGE_KEY__ import __ExchangeName__Sync
2323

24-
async def main():
25-
instance = __ExchangeName__Async({})
26-
order = await instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
24+
def main():
25+
instance = __ExchangeName__Sync({})
26+
ob = instance.fetch_order_book("__EXAMPLE_SYMBOL__")
27+
print(ob)
28+
#
29+
# balance = instance.fetch_balance()
30+
# order = instance.create_order("__EXAMPLE_SYMBOL__", "limit", "buy", 1, 100000)
2731
```
2832

29-
### Sync
33+
### Async
3034

3135
```Python
32-
from __PYTHON_PACKAGE_KEY__ import __ExchangeName__Sync
36+
import asyncio
37+
from __PYTHON_PACKAGE_KEY__ import __ExchangeName__Async
3338

34-
def main():
35-
instance = __ExchangeName__Sync({})
36-
order = instance.create_order(__EXAMPLE_SYMBOL__, "limit", "buy", 1, 100000)
39+
async def main():
40+
instance = __ExchangeName__Async({})
41+
ob = await instance.fetch_order_book("__EXAMPLE_SYMBOL__")
42+
print(ob)
43+
#
44+
# balance = await instance.fetch_balance()
45+
# order = await instance.create_order("__EXAMPLE_SYMBOL__", "limit", "buy", 1, 100000)
46+
47+
asyncio.run(main())
3748
```
3849

3950
### Websockets
@@ -44,6 +55,8 @@ from __PYTHON_PACKAGE_KEY__ import __ExchangeName__Ws
4455
async def main():
4556
instance = __ExchangeName__Ws({})
4657
while True:
47-
orders = await instance.watch_orders(__EXAMPLE_SYMBOL__)
58+
ob = await instance.watch_order_book("__EXAMPLE_SYMBOL__")
59+
print(ob)
60+
# orders = await instance.watch_orders("__EXAMPLE_SYMBOL__")
4861
```
4962

0 commit comments

Comments
 (0)