Skip to main content

Post New Ad

HTTP Request

POST /v5/p2p/item/create

Request Parameters

ParameterRequiredTypeComments
tokenIdtruestringtoken id. e.g. USDT,ETH,BTC
currencyIdtruestringcurrency id e.g HKD,USD,EUR
sidetruestringad for buying token or for selling token. 0: buy; 1: sell
priceTypetruestringAd pricing exchange rate model. 0: fixed rate; 1: floating rate
premiumtruestringFloating ratio with current exchange rate
pricetruestringads price
minAmounttruestringMin transaction amount
maxAmounttruestringMax transaction amount
remarktruestringTransaction Description(max=900)
tradingPreferenceSettrueObjectTrading Preferences
> hasUnPostAdfalseintegerWhether the counterparty must not have posted any advertisements. 0: not needed; 1: need
> isKycfalseintegerIs it necessary for the counterparty to complete identity authentication? 0: not needed; 1: need
> isEmailfalseintegerIs it necessary for the counterparty to bind an email address? 0: not needed; 1: need
> isMobilefalseintegerIs it necessary for the counterparty to bind an telphone? 0: not needed1: need
> hasRegisterTimefalseintegerIs the registration time required to be no less than {} days? 0: not needed; 1: need
> registerTimeThresholdfalseintegerRegistration time threshold(Unit: Day)
> orderFinishNumberDay30falseintegerLimit on number of completed orders in the last 30 days
> completeRateDay30falsestringCompletion rate limit in the last 30 days
> nationalLimitfalsestringRestricted KYC Countries;IOS 3 CODE
> hasOrderFinishNumberDay30falseintegerIs it necessary to have no less than {} orders in the last 30 days? 0: not needed; 1: need
> hasCompleteRateDay30falseintegerIs it necessary to have a completion rate of no less than {} in the last 30 days? 0: not needed; 1: need
> hasNationalLimitfalseintegerAre country restrictions required? 0: not needed; 1: need
paymentIdstruearray[string]Payment method type id(len<=5)
quantitytruestringNumber of ads
pricetruestringads price
paymentPeriodtruestringpayment duration
itemTypetruestringORIGIN: original P2P advertisement, generally refers to non-bulk advertisement;
BULK: bulk advertisement

Response Parameters

ParameterTypeComments
itemIdstringitem Id
securityRiskTokenstringsecurity risk token
riskTokenTypestringrisk token type
riskVersionstringrisk version
needSecurityRiskbooleanWhether security risk is necessary

Request Example

POST /v5/p2p/item/create HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
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",
"verificationOrderLabels":[],
"verificationOrderSwitch": false
},
"quantity":"20000",
"paymentPeriod":"15",
"itemType":"ORIGIN"
}

Response Example

{
"ret_code": 0,
"ret_msg": "SUCCESS",
"result": {
"itemId": "1899659847717838848",
"securityRiskToken": "",
"riskTokenType": "",
"riskVersion": "",
"needSecurityRisk": false
},
"ext_code": "",
"ext_info": {},
"ext_map": {},
"time_now": "1741749176.939208"
}