API buy command