Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transfer from wallet to spot not work #2

Open
digidecor3d opened this issue Apr 14, 2021 · 0 comments
Open

transfer from wallet to spot not work #2

digidecor3d opened this issue Apr 14, 2021 · 0 comments

Comments

@digidecor3d
Copy link

def user_transfer(self,type,amount,symbol):
    """
    参数名称         是否必须  类型     描述  默认值   取值范围
    symbol	        true	string	交易对	----	EOS,BTC...
    amount	        true	double	转账金额	----	> 0
    type	        true	integer	转账类型	----	0钱包转币币; 1币币转钱包
    """
    params = [
        {
            'type': type,      # 划转方向
            'amount':amount,   # 划转数量
            'symbol': symbol   # 划转币种

        }
    ]

    request_path = self.__url + "/v2/assets/transfer/spot"
    return api_key_post(request_path, params, self.__access_key, self.__secret_key)
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

No branches or pull requests

1 participant