// CreateInstant makes an order in the Instant Exchange of CryptoMarket
// Returns an error if something goes wrong
//
// List of accepted Arguments:
//   - required: Market (string), Type (string), Amount (string)
//   - optional: none
// https://developers.cryptomkt.com/#crear-orden-2
CreateInstant makes an order in the Instant Exchange of CryptoMarket
Returns an error if something goes wrong


// CreateInstant makes an order in the Instant Exchange of CryptoMarket // Returns an error if something goes wrong // // List of accepted Arguments : // - required : Market ( string ) Type ( string ) Amount ( string ) // - optional : none // https : // developers . cryptomkt . com / #crear - orden - 2
func (client *Client) CreateInstant(arguments ...args.Argument) error {
	required := []string{"market", "type", "amount"}
	resp, err := client.postReq("orders/instant/create", "CreateInstant", required, arguments...)
	if err != nil {
		return fmt.Errorf("error making the request: %s", err)
	}
	var iResp InstantResponse
	json.Unmarshal(resp, &iResp)
	if iResp.Status == "error" {
		return fmt.Errorf("error from the server side: %s", iResp.Message)
	}
	return nil
}
func ( client * Client ) CreateInstant ( arguments ... args . Argument ) error { required := [ ] string { " " , " " , " " } resp , err := client . postReq ( " " , " " , required , arguments ... ) if err != nil { return fmt . Errorf ( " " , err ) } var iResp InstantResponse json . Unmarshal ( resp , & iResp ) if iResp . Status == " " { return fmt . Errorf ( " " , iResp . Message ) } return nil }
CreateInstant makes an order in the Instant Exchange of CryptoMarket
Returns an error if something goes wrong
CreateInstant makes an order in the Instant Exchange of CryptoMarket Returns an error if something goes wrong