Skip to content

Conversation

@kolya5544
Copy link

No description provided.

Musthaq22

This comment was marked as off-topic.

@kolya5544 kolya5544 changed the title Made code PEP8-compliant and look neater Made example code compliant with appropriate code standards Jul 21, 2025
@kolya5544
Copy link
Author

Please do not merge. Working on refactoring the other examples.

Copy link

@Musthaq22 Musthaq22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please approve it

@kingmavis429-oss
Copy link

GET /v5/order/realtime?category=option&symbol=BTC-29JUL22-25000-C HTTP/1.1 Host: api-testnet.bybit.com -H 'X-BAPI-SIGN: XXXXXXXXXX' \ -H 'X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx' \ -H 'X-BAPI-TIMESTAMP: 1658384431891' \ -H 'X-BAPI-RECV-WINDOW: 5000'

@kingmavis429-oss
Copy link

POST /v5/order/create HTTP/1.1
Host: api-testnet.bybit.com
-H 'X-Referer: XXXXXXXXXX' \ [the header for broker users only]
-H 'X-BAPI-SIGN: XXXXXXXXXX'
-H 'X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx'
-H 'X-BAPI-TIMESTAMP: 1658385589135'
-H 'X-BAPI-RECV-WINDOW: 5000'
-H 'Content-Type: application/json'
-d '{"category": "option"}'

@kingmavis429-oss
Copy link

POST /v5/p2p/item/create HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1675866354698
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"tokenId": "USDT",
"currencyId":"EUR",
"side": "0",
"priceType":"0",
"premium":"",
"price":"0.92",
"minAmount":"20",
"maxAmount":"45000",
"paymentIds":["7110"],
"remark":"test",
"tradingPreferenceSet":{
"isKyc": "1",
"hasCompleteRateDay30": "1",
"completeRateDay30": "95",
"hasOrderFinishNumberDay30": "1",
"hasRegisterTime":"0",
"hasUnPostAd":"0",
"isEmail":"0",
"isMobile":"0",
"nationalLimit":"",
"orderFinishNumberDay30":"60",
"registerTimeThreshold": "0",
},
"quantity":"20000",
"paymentPeriod":"15",
"itemType":"ORIGIN"
}

@kingmavis429-oss
Copy link

POST /v5/p2p/item/online HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1675866354698
X-BAPI-RECV-WINDOW: 5000
Content-Type: application/json

{
"tokenId":"USDT",
"currencyId":"EUR",
"side":"0"
}

@julywarriorssohelrana-web

kolya5544:kolya_improvements

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants