C2C SAPI v7.0

from binance.client import Client
from binance.enums import *

api_key = 'x'
api_secret = 'x'

client = Client(api_key, api_secret)

# Request user information
asset = input("Enter the currency you want to exchange: ")
trade_type = input("Enter the trade type (BUY/SELL): ")
price = float(input("Enter the price per unit of the VES coin: "))
min_trade = float(input("Enter the minimum amount you are willing to trade: "))
max_trade = float(input("Enter the maximum amount you are willing to trade: "))
payment_methods = input("Enter the payment methods you accept separated by commas: ")

# Create the ad
ad = {
    "asset": asset,
    "tradeType": trade_type,
    "price": price,
    "minTrade": min_trade,
    "maxTrade": max_trade,
    "paymentMethods": payment_methods,
    "advDetail": "Ad created automatically with Python"
}

# Post the ad
result = client.c2c_post_ad(ad)
print(result)

I have tried to run this bot to create p2p ads but it always gives me this error
AttributeError: Object ‘Customer’ has no attribute ‘p2p_post_ad’ and AttributeError: Object ‘Customer’ has no attribute ‘c2c_post_ad’

which library you are using? does it have this method?

python-binance
and I have used the information that binance sent me from the c2c sapi

https://upload-bnbstatic-com.s3.ap-northeast-1.amazonaws.com/file-center/haodesk-bi/S3/agent/7650/102465614/1679835452399_jc8xzug38glmdbv74v3vu92qbenql28u.pdf?X-Amz-Security-Token=IQoJb3JpZ2luX2VjEFEaDmFwLW5vcnRoZWFzdC0xIkgwRgIhAIggrQJ0iOPweD1c%2F8dRkUNRw974gAW8GZOLGPpmy3YFAiEA5L%2FkA9RffNFtZjiELa6S4jBIFtVzyWjplPfPi7caQnIqnAQIKhAAGgwzNjkwOTY0MTkxODYiDEKp7SsfgsCezx2ewCr5AwTrSbRqvBAic1YS5%2BnIRe1s0qZPy5RLCBwvC827UTHYl7s%2B6%2B7Aep%2Fu8Oj191S8ddmCNeld8Kb0eRJ1QC0Dc0JC391dEqpwi1bQotQkvmdErGDxwd2p9PA69OJfuXpwHBrQi5bOzzHgj%2Bx%2FHa1ciKaQIET%2FR93LXYRv96X89P4I5dzIXbWENkQcTTY4KnlgvpagZv8Kwl7GzoM1g6HBKdq54dD7ABhy%2BNFch4g9Ywgnt8BjL0Ca38K5J%2FtpXfpi7jM0cLgFhectrgPSf%2BxmdHr2Jno0wDtRD9uEGiKSy13nNiY0UElYgeGcsUOd6z4RzOmZu6bH4VBMbl8lAxIJ7y2LqfXwDKomHwoTBZT8TmtDhNeOgWYEYeUZzcy1IyQKCFUtNcdbgcq6vYIi8J2UpBgYYDCJSZEJKWRuJfsWeGwzev%2BZ17cqoc3kWPzC2x8by8ZWO6VplMDGsnB3sJHPBcmAAszxv7Q2GbJrZWpTmRIApm3csxZiIwCMUAoZrTWZC3PvBFCzhJKHAP5zAL8BXiwEiD42OQ4%2BTTEIt9FWrS81w1Oc12kZ5NlSHWt5hslbMkeGAl8c6U0MzzV6lq9%2BIf9rO4iN7mc%2BH95%2BhqM8BQCtNiWX2tBI7BxzCZEF0HxA0jBV%2BnySa1ABWHPzZAYegnURDvvYXLroo4EwwceFoQY6pQGsXopypQU4F09A9OIaCiuyoXdP0Gcs%2F6H0uVB1KH2CJ80q5pHe62gFrofjT5WCnCj5hwAQ7RVQLtM16a4OEm6FhFovG2cGqJTEe%2FjLVUcx1%2BrXZYa84xL5PzxtIVLOq7C%2ByAusvRauDlwE8VILsih%2F2rAe3vX4vBYN94esY%2B5tSGg9hP8geAqJrM92Ugumww6PvYf5o9DPM2C%2FR93q0hUCaWGFsc8%3D&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20230327T123141Z&X-Amz-SignedHeaders=host&X-Amz-Expires=60&X-Amz-Credential=ASIAVL364M5ZJ6RHMGLT%2F20230327%2Fap-northeast-1%2Fs3%2Faws4_request&X-Amz-Signature=eb47f29108d71c6f2c23216b87e128ed62fcbb8641e29325c7d2b684afa19c3e

Sorry, I’m not sure what is this.

Do you have documentation for the API? Could you give me a download link.